org.camunda.bpm.engine.impl.bpmn.behavior
Class TaskActivityBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
          extended by org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, SignallableActivityBehavior
Direct Known Subclasses:
ManualTaskActivityBehavior, ReceiveTaskActivityBehavior, ScriptTaskActivityBehavior, 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
protected  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
TaskActivityBehavior()
           
 
Method Summary
 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
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

activityInstanceId

protected String activityInstanceId
Activity instance id before execution.

Constructor Detail

TaskActivityBehavior

public TaskActivityBehavior()
Method Detail

preExecution

protected void preExecution(ActivityExecution execution)
                     throws Exception
The method which will be called before the execution is performed.

Parameters:
execution - the execution which is used during execution
Throws:
Exception

performExecution

protected void performExecution(ActivityExecution execution)
                         throws 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:
Exception

postExecution

protected void postExecution(ActivityExecution execution)
                      throws Exception
The method which will be called after performing the execution.

Parameters:
execution - the execution
Throws:
Exception

execute

public void execute(ActivityExecution execution)
             throws Exception
Description copied from class: FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.

Specified by:
execute in interface CoreActivityBehavior<ActivityExecution>
Specified by:
execute in interface ActivityBehavior
Overrides:
execute in class FlowNodeActivityBehavior
Throws:
Exception


Copyright © 2017 camunda services GmbH. All rights reserved.