Jbpm language Overview: Java business process management, it is an open-source, flexible, and scalable executable process language framework covering business process management, workflows, service collaboration, and other fields. Is an open-source project that complies with the ASL (APACHE license version2.0) and EULA (JBoss End User License Agreement) protocols.
I. Development Environment deployment
1. Go to the official website to download the jbpm4 compressed package and Eclipse IDE J2EE javasloeor and install the GPD plug-in.
2. Environment configuration: add the jbpm dependency jar package and add the configuration file. (Jbpm4 files are included in the sample)
3. Basic example: compile a helloword. jbpm. xml file (process definition file) using the GPD language ). Similar to this figure, start ------ Step1 -----------> end;
4. Write a JUnit unit test class, as shown below. first declare a variable
Peocessingengine processingengline;
Instantiate processingengline = configuration. getprocessingengline ();
Obtain the repositoryservice processingengine. getrepositoryservice ();
Publish a process definition and return the string deploymentid = repositoryservice. createdeployment (). addresourcefromclasspath ("file name"). Deploy ();
View the definition process: List list = repositoryservice. createprocessdefinitionquery (). List ();
You can use the cascade deletion method to delete a defined process based on the process ID:
Repositiryservice. deletedeploymentcascade (deploymentid );
Jbpm4 instance tutorial