Note that you can also use a for bootstrapping instead of XML.

Configure an Application-Managed Process Engine

The ProcessEngine can be configured as a regular Spring bean. The starting point of the integration is the class . That bean takes a process engine configuration and creates the process engine. This means that the creation and configuration of properties for Spring is the same as documented in the configuration section. For Spring integration the configuration and engine beans will look like this:

Configure a Container-Managed Process Engine as a Spring Bean

If you want the process engine to be registered with the BPM platform ProcessEngineService, you must use instead of the ProcessEngineFactoryBean shown in the example above. You will also need to ensure:

  • That your server.xml contains JNDI entries for the ‘ProcessEngineService’ and ‘ProcessApplicationService’ as below:

Configure a Process Engine Plugin

In Spring you can configure a process engine plugin by setting a list value to the property of the bean:

Using Spring JavaConfig

In addition to the Spring application context XML file, you can bootstrap the process engine using Spring JavaConfig. The configuration class can look like this: