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 |
multiInstanceActivityBehavior
bpmnActivityBehavior
EVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE
EVENTNAME_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(ActivityExecution 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,
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() |
protected 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
protected ExecutionListener executionListenerInstance
protected TaskListener taskListenerInstance
protected ActivityBehavior activityBehaviorInstance
protected Expression skipExpression
protected List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions
protected String serviceTaskId
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) 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
public void completing(DelegateExecution execution, DelegateExecution subProcessInstance) throws Exception
SubProcessActivityBehavior
completing
in interface SubProcessActivityBehavior
Exception
public void completed(ActivityExecution execution) throws Exception
SubProcessActivityBehavior
completed
in interface SubProcessActivityBehavior
Exception
protected ActivityBehavior getActivityBehaviorInstance(ActivityExecution execution)
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance, ActivityExecution 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 © 2016 Alfresco. All rights reserved.