public class ClassDelegate extends AbstractBpmnActivityBehavior implements TaskListener, ExecutionListener, SubProcessActivityBehavior
| Modifier and Type | Field and Description |
|---|---|
protected ActivityBehavior |
activityBehaviorInstance |
protected String |
className |
protected ExecutionListener |
executionListenerInstance |
protected List<FieldDeclaration> |
fieldDeclarations |
protected List<org.activiti.bpmn.model.MapExceptionEntry> |
mapExceptions |
protected String |
serviceTaskId |
protected Expression |
skipExpression |
protected TaskListener |
taskListenerInstance |
multiInstanceActivityBehaviorbpmnActivityBehaviorEVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETEEVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKE| Constructor and Description |
|---|
ClassDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations) |
ClassDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations,
Expression skipExpression) |
ClassDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
ClassDelegate(String className,
List<FieldDeclaration> fieldDeclarations,
Expression skipExpression) |
ClassDelegate(String id,
String className,
List<FieldDeclaration> fieldDeclarations,
Expression skipExpression,
List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions) |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyFieldDeclaration(FieldDeclaration declaration,
Object target) |
static void |
applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations,
Object target) |
void |
completed(DelegateExecution execution)
called after the process instance is destroyed for this activity to perform its outgoing control flow logic.
|
void |
completing(DelegateExecution execution,
DelegateExecution subProcessInstance)
called before the process instance is destroyed to allow this activity to extract data from the sub process instance.
|
static Object |
defaultInstantiateDelegate(Class<?> clazz,
List<FieldDeclaration> fieldDeclarations) |
static Object |
defaultInstantiateDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
protected ActivityBehavior |
determineBehaviour(ActivityBehavior delegateInstance,
DelegateExecution execution) |
void |
execute(DelegateExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
static boolean |
fieldTypeCompatible(FieldDeclaration declaration,
Field field) |
protected ActivityBehavior |
getActivityBehaviorInstance(DelegateExecution execution) |
String |
getClassName()
returns the class name this
ClassDelegate is configured to. |
protected ExecutionListener |
getExecutionListenerInstance() |
protected TaskListener |
getTaskListenerInstance() |
protected Object |
instantiateDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
void |
notify(DelegateExecution execution) |
void |
notify(DelegateTask delegateTask) |
void |
trigger(DelegateExecution execution,
String signalName,
Object signalData) |
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehaviorleaveIgnoreConditions, parseActivityTypeprotected String serviceTaskId
protected String className
protected List<FieldDeclaration> fieldDeclarations
protected ExecutionListener executionListenerInstance
protected TaskListener taskListenerInstance
protected ActivityBehavior activityBehaviorInstance
protected Expression skipExpression
protected List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions
public ClassDelegate(String className, List<FieldDeclaration> fieldDeclarations, Expression skipExpression)
public ClassDelegate(String id, String className, List<FieldDeclaration> fieldDeclarations, Expression skipExpression, List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions)
public ClassDelegate(String className, List<FieldDeclaration> fieldDeclarations)
public ClassDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
public ClassDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations, Expression skipExpression)
public void notify(DelegateExecution execution)
notify in interface ExecutionListenerprotected ExecutionListener getExecutionListenerInstance()
public void notify(DelegateTask delegateTask)
notify in interface TaskListenerprotected TaskListener getTaskListenerInstance()
public void execute(DelegateExecution execution)
FlowNodeActivityBehaviorexecute in interface ActivityBehaviorexecute in class FlowNodeActivityBehaviorpublic void trigger(DelegateExecution execution, String signalName, Object signalData)
trigger in interface TriggerableActivityBehaviortrigger in class FlowNodeActivityBehaviorpublic void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception
SubProcessActivityBehaviorcompleting in interface SubProcessActivityBehaviorExceptionpublic void completed(DelegateExecution execution) throws Exception
SubProcessActivityBehaviorcompleted in interface SubProcessActivityBehaviorExceptionprotected ActivityBehavior getActivityBehaviorInstance(DelegateExecution execution)
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance, DelegateExecution execution)
protected Object instantiateDelegate(String className, List<FieldDeclaration> fieldDeclarations)
public static Object defaultInstantiateDelegate(Class<?> clazz, List<FieldDeclaration> fieldDeclarations)
public static Object defaultInstantiateDelegate(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 Alfresco. All rights reserved.