public class ClassDelegate extends AbstractBpmnActivityBehavior implements TaskListener, ExecutionListener
Modifier and Type | Field and Description |
---|---|
protected String |
className |
protected List<FieldDeclaration> |
fieldDeclarations |
multiInstanceActivityBehavior
bpmnActivityBehavior
EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE
EVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE
Constructor and Description |
---|
ClassDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations) |
ClassDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
Modifier and Type | Method and Description |
---|---|
static void |
applyFieldDeclaration(FieldDeclaration declaration,
Object target) |
static void |
applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations,
Object target) |
protected ActivityBehavior |
determineBehaviour(ActivityBehavior delegateInstance,
ActivityExecution execution) |
void |
execute(ActivityExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
static boolean |
fieldTypeCompatible(FieldDeclaration declaration,
Field field) |
protected ActivityBehavior |
getActivityBehaviorInstance(ActivityExecution execution) |
String |
getClassName()
returns the class name this
ClassDelegate is configured to. |
protected ExecutionListener |
getExecutionListenerInstance() |
protected TaskListener |
getTaskListenerInstance() |
static Object |
instantiateDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations) |
static Object |
instantiateDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
void |
notify(DelegateExecution execution) |
void |
notify(DelegateTask delegateTask) |
void |
signal(ActivityExecution execution,
String signalName,
Object signalData) |
createCompensateEventSubscription, getMultiInstanceActivityBehavior, hasCompensationHandler, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, signalCompensationDone
leaveIgnoreConditions
protected String className
protected List<FieldDeclaration> fieldDeclarations
public ClassDelegate(String className, List<FieldDeclaration> fieldDeclarations)
public ClassDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
public void notify(DelegateExecution execution) throws Exception
notify
in interface ExecutionListener
Exception
protected ExecutionListener getExecutionListenerInstance()
public void notify(DelegateTask delegateTask)
notify
in interface TaskListener
protected TaskListener getTaskListenerInstance()
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehavior
execute
in interface ActivityBehavior
execute
in class FlowNodeActivityBehavior
Exception
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception
signal
in interface SignallableActivityBehavior
signal
in class AbstractBpmnActivityBehavior
Exception
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance, ActivityExecution execution)
public static Object instantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
public static Object instantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations)
public static void applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations, Object target)
public static void applyFieldDeclaration(FieldDeclaration declaration, Object target)
public static boolean fieldTypeCompatible(FieldDeclaration declaration, Field field)
public String getClassName()
ClassDelegate
is configured to. Comes in handy if you want to
check which delegates you already have e.g. in a list of listenersCopyright © 2015. All rights reserved.