Skip to content

jeetemplates/jbpm6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedding jBPM 6 into a Java EE application

Official documentation : http://docs.jboss.org/jbpm/v6.2/userguide/
Used http://docs.jboss.org/jbpm/v6.2/userguide/jBPMIntegration.html to do this template


About : - jBPM 6.2.0.Final : workflow engine - Java EE 6.0 environment - JBoss AS 7.1.1 - JPA 2.0 (jBPM dependency for persistence) - CDI 1.0 (Container environment for jBPM integration with CDI) - JTA 1.1 (Container environment for jBPM transactions) - H2 database (embedded in container) - Hibernate 4.0.1.Final (jBPM/Container dependency)

Build & Deployment & Run :

  • This application is a webapp. Build it with Maven.
  • Declaring datasource in JBoss AS : add datasource in $JBOSS_HOME/standalone/configuration/standalone.xml from jbpm6/container/standalone.xml (or using default java:jboss/datasources/ExampleDS)
  • mvn clean install
  • Drop war in container
  • Start container
  • Go to http://localhost:8080/jbpm6-web and follow the instructions

/!\ Important notes /!\

  • jBPM editor is not enough to create BPMN 2.0 processes (Does not provide all BPMN2 activities). Use http://www.eclipse.org/bpmn2-modeler/
  • Look in the code of Handler (e.g. ServiceTaskHandler, ReceiveTaskHandler) for modelisation or develop your own handlers
  • Knowledge session execute command is synchronized
  • Custom UserGroupCallback. Validates user and groups and is declared in RuntimeEnvironment.
  • Use ProcessManagerBean (custom singleton EJB) and only this class to manage runtime and processes. Implement all calls to jBPM API here (for transactions).
  • This example does not check if jBPM processes restart if server restarts
  • Using kjars to deploy processes. Modular architecture. Kjars are automatically scanned by Drools when embedded in war.

Useful links :

About

Embedding jBPM 6 into a Java EE application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages