org.camunda.bpm.engine.impl.bpmn.behavior
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
| Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior |
createCompensateEventSubscription, getCompensationHandler, getCurrentFlowScope, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateBpmnError, propagateError, propagateExceptionAsError, signal, signalCompensationDone |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
script
protected ExecutableScript script
resultVariable
protected String resultVariable
ScriptTaskActivityBehavior
public ScriptTaskActivityBehavior(ExecutableScript script,
String resultVariable)
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
checkIfCauseOfExceptionIsBpmnError
protected BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
- Searches recursively through the exception to see if the exception itself
or one of its causes is a
BpmnError.
- 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()
Copyright © 2015 camunda services GmbH. All rights reserved.