- The ProcessEngine as well as the services are available for injection: ProcessEngine, RepositoryService, TaskService, …
- A specific named ProcessEngine and its services can be injected by adding the qualifier @ProcessEngineName('someEngine')
- The current business key can be injected: @BusinessKey String businessKey,
In order to reference process variables using EL, we have similar options:
- @BusinessProcessScoped beans can be referenced directly,
To implement resolution from contextual data, the producer bean must be extended. The following code implements a contextual resolution of the engine by the currently authenticated user. Note that which contextual data is used and how it is accessed is entirely up to you.