org.camunda.bpm.engine.impl.bpmn.behavior
Class ScriptTaskActivityBehavior

java.lang.Object
  extended by org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
      extended by org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
          extended by org.camunda.bpm.engine.impl.bpmn.behavior.TaskActivityBehavior
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
protected  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
ScriptTaskActivityBehavior(ExecutableScript script, String resultVariable)
           
 
Method Summary
protected  BpmnError checkIfCauseOfExceptionIsBpmnError(Throwable e)
          Searches recursively through the exception to see if the exception itself or one of its causes is a BpmnError.
 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, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateBpmnError, propagateError, propagateException, propagateExceptionAsError, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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: TaskActivityBehavior
The method which should be overridden by the sub classes to perform an execution.

Overrides:
performExecution in class TaskActivityBehavior
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 a BpmnError.

Overrides:
checkIfCauseOfExceptionIsBpmnError in class AbstractBpmnActivityBehavior
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 © 2017 camunda services GmbH. All rights reserved.