org.camunda.bpm.engine.spring.annotations
Annotation Type ProcessEngineComponent
@Target(value=TYPE)
@Retention(value=RUNTIME)
@Documented
public @interface ProcessEngineComponent
Indicates that the given bean is an Activiti handler. An activiti handler is a bean
that is so annotated to respond to events ("states") in an Activiti BPM process.
Generically, it is a class that has been adapted to be usable in an Activiti process
For example, suppose we have registered a BPMN process that has
the following declaration:
<service-task activiti:expression = "myBean" id = "confirm-receipt" />
This is a state that will be entered from Activiti and execution will flow through to the bean
registered in the context as "myBean." To subscribe to that, a POJO need only implement
(optionally) ProcessEngineComponent and, on a method, add
State to indicate that the method in particular is
tasked with responding to a state. If applied to a bean and there are no ProcessEngineComponent.ActivitiComponent
annotations present, then one option might be to automatically enlist all public methods
as handlers for states whose IDs or names are inferred from the method name:
public void confirmReceipt(..) would be treated the same as
@State( "confirm-receipt") public void confirmReceipt (..),
- Since:
- 1.0
- Author:
- Josh Long
processKey
public abstract String processKey
- Default:
- ""
Copyright © 2015 camunda services GmbH. All rights reserved.