JBPM Spring Integration

The goal of this project was to:

  • To be able to use a JBPM Process from a Spring component and to be able to start the process.
  • For JBPM to be able to use Spring components in it's process.
  • To be able to run tests from Maven with an embedded HSQLDB.
  • Easy lookup of latest or specific process versions.

I updated the project version so it's equal to the version of JBPM with which it is compatible.

See my last blogpost about JBPM 4.3 and Spring and my first look at JBPM and Spring integration for more info about this JBPM-Spring integration project and how to use it.

This project uses JBPM 4.3 and Spring 3.0.
This version is NOT compatible with JBPM 4.2 because of numerous changes to the Spring components in JBPM 4.3.
For JBPM 4.2 use version 0.1.1 of this project.

Usage

Adding this project to your project pom will also get the required JBPM resources.

Add this to your Spring context to automatically start JBPM and give you all components without your context:

  <context:component-scan base-package="eu.diversit.jbpm.spring" />

Import the hsqldbEmbeddedDataSourceContext.xml to use an embedded HSQL database.

ProcessBean (since 0.1.1)

Add this to your context to automatically deploy a process:

        <bean id="testProcess" class="eu.diversit.jbpm.spring.JbpmProcessBean">
                <property name="resourceName" value="org/jbpm/examples/java/process.jpdl.xml" />
        </bean>

ProcessLookup (since in 4.3.1)

Add this to lookup a process by a key:

        <bean id="testLookup" class="eu.diversit.jbpm.spring.JbpmProcessLookup">
                <property name="processKey" value="JavaKey"/>
        </bean>