Class ServiceTaskExpressionActivityBehavior
- java.lang.Object
-
- org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
-
- org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
-
- org.flowable.engine.impl.bpmn.behavior.TaskActivityBehavior
-
- org.flowable.engine.impl.bpmn.behavior.ServiceTaskExpressionActivityBehavior
-
- All Implemented Interfaces:
Serializable,ActivityBehavior,TriggerableActivityBehavior
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, Filip Hrisafov
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classServiceTaskExpressionActivityBehavior.FutureCompleteAction
-
Field Summary
Fields Modifier and Type Field Description protected Expressionexpressionprotected List<org.flowable.bpmn.model.MapExceptionEntry>mapExceptionsprotected StringresultVariableprotected StringserviceTaskIdprotected ExpressionskipExpressionprotected booleanstoreResultVariableAsTransientprotected booleantriggerableprotected booleanuseLocalScopeForResultVariable-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior
-
Fields inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
-
Constructor Summary
Constructors Constructor Description ServiceTaskExpressionActivityBehavior(org.flowable.bpmn.model.ServiceTask serviceTask, Expression expression, Expression skipExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(DelegateExecution execution)Default behaviour: just leave the activity with no extra functionality.protected voidhandleException(Throwable exc, DelegateExecution execution)protected voidsetExecutionVariableValue(Object value, DelegateExecution execution)voidtrigger(DelegateExecution execution, String signalName, Object signalData)-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.TaskActivityBehavior
getActiveValueList
-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
executeCompensateBoundaryEvents, findBoundaryEventsForFlowNode, getMultiInstanceActivityBehavior, getProcessDefinition, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior
-
Methods inherited from class org.flowable.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions, parseActivityType
-
-
-
-
Field Detail
-
serviceTaskId
protected String serviceTaskId
-
expression
protected Expression expression
-
skipExpression
protected Expression skipExpression
-
resultVariable
protected String resultVariable
-
mapExceptions
protected List<org.flowable.bpmn.model.MapExceptionEntry> mapExceptions
-
useLocalScopeForResultVariable
protected boolean useLocalScopeForResultVariable
-
triggerable
protected boolean triggerable
-
storeResultVariableAsTransient
protected boolean storeResultVariableAsTransient
-
-
Constructor Detail
-
ServiceTaskExpressionActivityBehavior
public ServiceTaskExpressionActivityBehavior(org.flowable.bpmn.model.ServiceTask serviceTask, Expression expression, Expression skipExpression)
-
-
Method Detail
-
execute
public void execute(DelegateExecution execution)
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Overrides:
executein classFlowNodeActivityBehavior
-
handleException
protected void handleException(Throwable exc, DelegateExecution execution)
-
setExecutionVariableValue
protected void setExecutionVariableValue(Object value, DelegateExecution execution)
-
trigger
public void trigger(DelegateExecution execution, String signalName, Object signalData)
- Specified by:
triggerin interfaceTriggerableActivityBehavior- Overrides:
triggerin classFlowNodeActivityBehavior
-
-