Configure an Application-Managed Process Engine
The ProcessEngine can be configured as a regular Spring bean. The starting point of the integration is the classorg.camunda.bpm.engine.spring.ProcessEngineFactoryBean. 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 ASEE Flow ProcessEngineService, you must useorg.camunda.bpm.engine.spring.container.ManagedProcessEngineFactoryBean instead of the ProcessEngineFactoryBean shown in the example above. You will also need to ensure:
- That none of your webapps include camunda-webapp*.jar within their own lib folder, this should be at a shared level.
- 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 theprocessEnginePlugins property of the processEngineConfiguration bean: