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
ActivityBehavior
implementation 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 java.lang.String
resultVariable
protected ExecutableScript
script
-
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, java.lang.String resultVariable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BpmnError
checkIfCauseOfExceptionIsBpmnError(java.lang.Throwable e)
Searches recursively through the exception to see if the exception itself or one of its causes is aBpmnError
.ExecutableScript
getScript()
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
-
script
protected ExecutableScript script
-
resultVariable
protected java.lang.String resultVariable
-
-
Constructor Detail
-
ScriptTaskActivityBehavior
public ScriptTaskActivityBehavior(ExecutableScript script, 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
-
checkIfCauseOfExceptionIsBpmnError
protected BpmnError checkIfCauseOfExceptionIsBpmnError(java.lang.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()
-
-