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, signalCompensationDoneleaveIgnoreConditionsprotected ExecutableScript script
protected String resultVariable
public ScriptTaskActivityBehavior(ExecutableScript script, String resultVariable)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehaviorexecute in interface CoreActivityBehavior<ActivityExecution>execute in interface ActivityBehaviorexecute in class FlowNodeActivityBehaviorExceptionprotected BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
BpmnError.checkIfCauseOfExceptionIsBpmnError in class AbstractBpmnActivityBehaviore - the exception to checkpublic ExecutableScript getScript()
Copyright © 2018. All rights reserved.