public class ScriptTaskActivityBehavior extends TaskActivityBehavior
ActivityBehavior
implementation of the BPMN 2.0 script task.
AbstractBpmnActivityBehavior.ErrorDeclarationFinder, AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.LeafExecutionHierarchyWalker, AbstractBpmnActivityBehavior.ProcessInstanceCollector
Modifier and Type | Field and Description |
---|---|
protected String |
resultVariable |
protected ExecutableScript |
script |
bpmnActivityBehavior
Constructor and Description |
---|
ScriptTaskActivityBehavior(ExecutableScript script,
String resultVariable) |
Modifier and Type | Method and Description |
---|---|
protected BpmnError |
checkIfCauseOfExceptionIsBpmnError(Throwable e)
Searches recursively through the exception to see if the exception itself
or one of its causes is a
BpmnError . |
void |
execute(ActivityExecution execution)
Default behaviour: just leave the activity with no extra functionality.
|
ExecutableScript |
getScript() |
createCompensateEventSubscription, executeWithErrorPropagation, getCompensationHandler, getCurrentFlowScope, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
leaveIgnoreConditions
protected ExecutableScript script
protected String resultVariable
public ScriptTaskActivityBehavior(ExecutableScript script, String resultVariable)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehavior
execute
in interface CoreActivityBehavior<ActivityExecution>
execute
in interface ActivityBehavior
execute
in class FlowNodeActivityBehavior
Exception
protected BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
BpmnError
.checkIfCauseOfExceptionIsBpmnError
in class AbstractBpmnActivityBehavior
e
- the exception to checkpublic ExecutableScript getScript()
Copyright © 2018. All rights reserved.