Jbpm4 instance tutorial

Source: Internet
Author: User
Tags jbpm

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.