spring boot jbpm project load .bpmn file and start proecess - spring-boot

Currently i am trying to Run JBPM with Spring boot with tomcat(Not jboss) using .bpmn file.
I am facing many issues. Could you please help me regarding the below points.
1- How load .BPMN file in spring boot.
2- what are the maven dependency required.
3- how start start process,human task etc.
It will be really helpful if any one able to share running code including below points
R

Related

how to add reference of one spring boot application to another spring boot app

I want to make a spring boot product base application.
In that I want to make a different spring application depends on each other by adding reference of one application to another application.
And make seperate jars of each and put it into tomcat
I would like to suggest you to start with simple hello-world application and later you can scale your application up.
Simple way is go to 'start.spring.io', add dependencies like spring boot starter web.
You can download the project after adding dependencies. Now, just import the project in your eclipse as 'import existing maven project'.
Spring boot has inbuilt tomcat, simply right click on the import project and select
run as --> java application
Your application will start on port 8080.
Now, you can create one more similar application and can run the application on port 8081 by adding a property server.port=8081 in your 2nd application.
You can call the api of 1st application from 2nd application.
If you are planning to create microservices, then please read about spring cloud.

how to write a code for database connection from eclipse using spring. This should be a simple spring maven project without using spring boot

I am new to spring. I am not able to figure out how to write a spring project for creating DB connection using maven , without using spring -boot or hibernate. it is supposed to be a simple spring maven project.
can you help me with few sample codes.
Install the Spring tools suite plugin for eclipse from the following link.
With spring tools suite, access the spring dashboard
Select the Import Reference App, this will provide several example applications from the Spring guides, choose the example and the example will be installed onto your eclipse workspace. These examples are well documented , with clear instructions on how to run the project. Hopefully this should help you get started with learning Spring framework.

Spring Boot and Continuous Delivery simple pipeline

I can't find any example or article how can the continuous delivery pipeline look like when we are using Spring Boot + Jenkins.
In Java EE I usually do it like this:
Push changes to repository
Jenkins checks for changes every 5 minutes
if there was a change, Jenkins pulls the sources and run maven build
using wildfly maven plugin I run redeploy on server
And generally I wonder what to do in last point when I'm using Spring Boot. Application is packaged into single JAR and run in separate process so in Spring Boot there is actually no such thing like redeploy. Do I have to write some script to kill old process first and then run the new artifact? Or maybe there is something like "spring boot cli" where I could manage all running spring boot apps?
You need to kill old process and run new process as a service.
It is all very well explained here Spring Boot application as a Service.
There is nice ssh plugin for jenkins that we use : https://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin
Copy jar to the server
Stop old service
Run new service
EDIT : Added Spring boot reference for running spring boot as a service - http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html #Vaelyr

Spring boot + Activiti explorer

Is it possible to integrate activiti explorer maven plugin with activiti Spring boot app?, so that we can make use of activit-explorer to view deployed process in activit-spring boot engine.
I know we can use rest-api over spring boot to query process engine, but I want to know if it is possible to run the explorer over spring boot by adding it as a maven plugin during deployment?Or can we tweak the activit-explorer.war somehow to point to spring-boot activiti engine?
activiti-explorer.war is standalone webapp by itself. I've write some guideline on how to manually to embed activiti-explorer to you own app. http://blog.canang.com.my/2016/05/12/embedding-activiti-explorer-to-your-application/
Most probably step 5 in my blog is your solution.
btw, there's reason why the name is 'default'. I can't recall it atm
I thought of answering my own question so that it will be useful for other developers with similar requirement. If you want to make an eco-system where activiti-rest, explorer and your custom end points co-exist, please refer this thread from activit forum. I have tried this and is working fine. link to thread
I would like to give my observation here. In order to avoid getting into pulling source and trying to build myself, I achieved partial success, by installing the activit-explorer as part of the usual standalone installation.Started the standalone activiti-explorer using Apache-Tomcat but I configured the database for Activiti as same as (MYSQL in my case) I used in my spring-boot application to hit the common ground.
But apparently the activiti version in my spring boot app was 5.19.0.0 and that for activiti-explorer was 5.22.0.0, which created some misalignment for spring boot application startup to fail. I am hopeful that with matching versions it might succeed. When I get some more time on me I will try and update. Since then may be someone can use this route.

Spring Boot 1.2.4.RELEASE cannot generate a simple Startup Project

I am using Spring Boot version 1.2.4.RELEASE to generate a simple web project. The full Url for creating this project is:
http://start.spring.io/starter.zip?name=demo3&groupId=org.test&artifactId=demo3&version=0.0.1-SNAPSHOT&description=Demo+project+for+Spring+Boot&packageName=demo3&type=maven-project&packaging=jar&javaVersion=1.7&language=java&bootVersion=1.2.4.RELEASE&dependencies=web
The download starter project opened in the STS 3.6.4.RELEASE with tons of errors: Missing artifact, ArtifactDescriptorException from the pom.xml file.
However, if I use version 1.1.12.RELEASE of the Spring Boot, I have no problem to create the startup project.
Is this a bug in the 1.2.4.RELEASE of the Spring Boot? I doubt it.
The project is OK.
Please to check your local env, specially connexion, maven configuration (setting.xml), ...etc
Good luck

Resources