public class ClassDelegate extends AbstractBpmnActivityBehavior implements TaskListener, ExecutionListener, TransactionDependentExecutionListener, TransactionDependentTaskListener, SubProcessActivityBehavior, CustomPropertiesResolver
| Modifier and Type | Field and Description |
|---|---|
protected ActivityBehavior |
activityBehaviorInstance |
protected String |
className |
protected CustomPropertiesResolver |
customPropertiesResolverInstance |
protected ExecutionListener |
executionListenerInstance |
protected List<FieldDeclaration> |
fieldDeclarations |
protected List<org.activiti.bpmn.model.MapExceptionEntry> |
mapExceptions |
protected String |
serviceTaskId |
protected Expression |
skipExpression |
protected TaskListener |
taskListenerInstance |
protected TransactionDependentExecutionListener |
transactionDependentExecutionListenerInstance |
protected TransactionDependentTaskListener |
transactionDependentTaskListenerInstance |
multiInstanceActivityBehaviorbpmnActivityBehaviorON_TRANSACTION_BEFORE_COMMIT, ON_TRANSACTION_COMMITTED, ON_TRANSACTION_ROLLED_BACKEVENTNAME_END, EVENTNAME_START, EVENTNAME_TAKEON_TRANSACTION_COMMITTED, ON_TRANSACTION_COMMITTING, ON_TRANSACTION_ROLLED_BACKEVENTNAME_ALL_EVENTS, EVENTNAME_ASSIGNMENT, EVENTNAME_COMPLETE, EVENTNAME_CREATE, EVENTNAME_DELETE| 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(FieldDeclaration declaration,
Object target,
boolean throwExceptionOnMissingField) |
static void |
applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations,
Object target) |
static void |
applyFieldDeclaration(List<FieldDeclaration> fieldDeclarations,
Object target,
boolean throwExceptionOnMissingField) |
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) |
void |
execute(DelegateExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
static boolean |
fieldTypeCompatible(FieldDeclaration declaration,
Field field) |
protected ActivityBehavior |
getActivityBehaviorInstance() |
String |
getClassName()
returns the class name this
ClassDelegate is configured to. |
Map<String,Object> |
getCustomPropertiesMap(DelegateExecution execution) |
protected CustomPropertiesResolver |
getCustomPropertiesResolverInstance() |
protected ExecutionListener |
getExecutionListenerInstance() |
protected TaskListener |
getTaskListenerInstance() |
protected TransactionDependentExecutionListener |
getTransactionDependentExecutionListenerInstance() |
protected TransactionDependentTaskListener |
getTransactionDependentTaskListenerInstance() |
protected Object |
instantiateDelegate(String className,
List<FieldDeclaration> fieldDeclarations) |
void |
notify(DelegateExecution execution) |
void |
notify(DelegateTask delegateTask) |
void |
notify(String processInstanceId,
String executionId,
org.activiti.bpmn.model.FlowElement flowElement,
Map<String,Object> executionVariables,
Map<String,Object> customPropertiesMap) |
void |
notify(String processInstanceId,
String executionId,
org.activiti.bpmn.model.Task task,
Map<String,Object> executionVariables,
Map<String,Object> customPropertiesMap) |
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 TransactionDependentExecutionListener transactionDependentExecutionListenerInstance
protected TaskListener taskListenerInstance
protected TransactionDependentTaskListener transactionDependentTaskListenerInstance
protected ActivityBehavior activityBehaviorInstance
protected Expression skipExpression
protected List<org.activiti.bpmn.model.MapExceptionEntry> mapExceptions
protected CustomPropertiesResolver customPropertiesResolverInstance
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 ExecutionListenerpublic void notify(String processInstanceId, String executionId, org.activiti.bpmn.model.FlowElement flowElement, Map<String,Object> executionVariables, Map<String,Object> customPropertiesMap)
notify in interface TransactionDependentExecutionListenerpublic Map<String,Object> getCustomPropertiesMap(DelegateExecution execution)
getCustomPropertiesMap in interface CustomPropertiesResolverpublic void notify(DelegateTask delegateTask)
notify in interface TaskListenerpublic void notify(String processInstanceId, String executionId, org.activiti.bpmn.model.Task task, Map<String,Object> executionVariables, Map<String,Object> customPropertiesMap)
notify in interface TransactionDependentTaskListenerprotected ExecutionListener getExecutionListenerInstance()
protected TransactionDependentExecutionListener getTransactionDependentExecutionListenerInstance()
protected CustomPropertiesResolver getCustomPropertiesResolverInstance()
protected TaskListener getTaskListenerInstance()
protected TransactionDependentTaskListener getTransactionDependentTaskListenerInstance()
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()
protected ActivityBehavior determineBehaviour(ActivityBehavior delegateInstance)
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(List<FieldDeclaration> fieldDeclarations, Object target, boolean throwExceptionOnMissingField)
public static void applyFieldDeclaration(FieldDeclaration declaration, Object target)
public static void applyFieldDeclaration(FieldDeclaration declaration, Object target, boolean throwExceptionOnMissingField)
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.