Class ServiceTaskExpressionActivityBehavior
- 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
-
- org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior
-
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>
,ActivityBehavior
,SignallableActivityBehavior
public class ServiceTaskExpressionActivityBehavior extends TaskActivityBehavior
ActivityBehavior that evaluates an expression when executed. Optionally, it sets the result of the expression as a variable on the execution.- Author:
- Tom Baeyens, Christian Stettler, Frederik Heremans, Slawomir Wojtasiak (Patch for ACT-1159), Falko Menge
-
-
Field Summary
Fields Modifier and Type Field Description protected Expression
expression
protected java.lang.String
resultVariable
-
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
activityInstanceId
-
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 ServiceTaskExpressionActivityBehavior(Expression expression, java.lang.String resultVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
performExecution(ActivityExecution execution)
The method which should be overridden by the sub classes to perform an execution.-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
execute, postExecution, preExecution
-
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
-
-
-
-
Field Detail
-
expression
protected Expression expression
-
resultVariable
protected java.lang.String resultVariable
-
-
Constructor Detail
-
ServiceTaskExpressionActivityBehavior
public ServiceTaskExpressionActivityBehavior(Expression expression, java.lang.String resultVariable)
-
-
Method Detail
-
performExecution
public void performExecution(ActivityExecution execution) throws java.lang.Exception
Description copied from class:TaskActivityBehavior
The method which should be overridden by the sub classes to perform an execution.- Overrides:
performExecution
in classTaskActivityBehavior
- Parameters:
execution
- the execution which is used during performing the execution- Throws:
java.lang.Exception
-
-