Class TaskActivityBehavior
- java.lang.Object
-
- org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
-
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>
,ActivityBehavior
,SignallableActivityBehavior
- Direct Known Subclasses:
ManualTaskActivityBehavior
,ReceiveTaskActivityBehavior
,ScriptTaskActivityBehavior
,ServiceTaskConnectorActivityBehavior
,ServiceTaskDelegateExpressionActivityBehavior
,ServiceTaskExpressionActivityBehavior
,ServiceTaskJavaDelegateActivityBehavior
,UserTaskActivityBehavior
public class TaskActivityBehavior extends AbstractBpmnActivityBehavior
Parent class for all BPMN 2.0 task types such as ServiceTask, ScriptTask, UserTask, etc. When used on its own, it behaves just as a pass-through activity.- Author:
- Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityInstanceId
Activity instance id before execution.-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
LOG
-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description TaskActivityBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ActivityExecution execution)
Default behaviour: just leave the activity with no extra functionality.protected void
performExecution(ActivityExecution execution)
The method which should be overridden by the sub classes to perform an execution.protected void
postExecution(ActivityExecution execution)
The method which will be called after performing the execution.protected void
preExecution(ActivityExecution execution)
The method which will be called before the execution is performed.-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signal, signalCompensationDone
-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
-
-
-
Method Detail
-
preExecution
protected void preExecution(ActivityExecution execution) throws java.lang.Exception
The method which will be called before the execution is performed.- Parameters:
execution
- the execution which is used during execution- Throws:
java.lang.Exception
-
performExecution
protected void performExecution(ActivityExecution execution) throws java.lang.Exception
The method which should be overridden by the sub classes to perform an execution.- Parameters:
execution
- the execution which is used during performing the execution- Throws:
java.lang.Exception
-
postExecution
protected void postExecution(ActivityExecution execution) throws java.lang.Exception
The method which will be called after performing the execution.- Parameters:
execution
- the execution- Throws:
java.lang.Exception
-
execute
public void execute(ActivityExecution execution) throws java.lang.Exception
Description copied from class:FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.- Specified by:
execute
in interfaceActivityBehavior
- Specified by:
execute
in interfaceCoreActivityBehavior<ActivityExecution>
- Overrides:
execute
in classFlowNodeActivityBehavior
- Throws:
java.lang.Exception
-
-