Class ScriptTaskActivityBehavior
- 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.ScriptTaskActivityBehavior
-
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>,ActivityBehavior,SignallableActivityBehavior
public class ScriptTaskActivityBehavior extends TaskActivityBehavior
ActivityBehaviorimplementation of the BPMN 2.0 script task.- Author:
- Joram Barrez, Christian Stettler, Falko Menge, Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description protected StringresultVariableprotected ExecutableScriptscript-
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 ScriptTaskActivityBehavior(ExecutableScript script, String resultVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BpmnErrorcheckIfCauseOfExceptionIsBpmnError(Throwable e)Searches recursively through the exception to see if the exception itself or one of its causes is aBpmnError.ExecutableScriptgetScript()voidperformExecution(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
-
script
protected ExecutableScript script
-
resultVariable
protected String resultVariable
-
-
Constructor Detail
-
ScriptTaskActivityBehavior
public ScriptTaskActivityBehavior(ExecutableScript script, String resultVariable)
-
-
Method Detail
-
performExecution
public void performExecution(ActivityExecution execution) throws Exception
Description copied from class:TaskActivityBehaviorThe method which should be overridden by the sub classes to perform an execution.- Overrides:
performExecutionin classTaskActivityBehavior- Parameters:
execution- the execution which is used during performing the execution- Throws:
Exception
-
checkIfCauseOfExceptionIsBpmnError
protected BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
Searches recursively through the exception to see if the exception itself or one of its causes is aBpmnError.- Parameters:
e- the exception to check- Returns:
- the BpmnError that was the cause of this exception or null if no BpmnError was found
-
getScript
public ExecutableScript getScript()
-
-