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

Field Summary
protected  ScriptInvocationHandler invocationHandler
           
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
multiInstanceActivityBehavior
 
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
 
Constructor Summary
ScriptTaskActivityBehavior(String script, String language, String resultVariable)
           
 
Method Summary
protected  ScriptInvocationHandler createInvocationHandler(String script, String language, String resultVariable)
          Creates an instance of the ScriptInvocationHandler.
 void execute(ActivityExecution execution)
          Default behaviour: just leave the activity with no extra functionality.
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, getMultiInstanceActivityBehavior, hasCompensationHandler, hasLoopCharacteristics, hasMultiInstanceCharacteristics, leave, setMultiInstanceActivityBehavior, signal, signalCompensationDone
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leaveIgnoreConditions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invocationHandler

protected ScriptInvocationHandler invocationHandler
Constructor Detail

ScriptTaskActivityBehavior

public ScriptTaskActivityBehavior(String script,
                                  String language,
                                  String resultVariable)
Method Detail

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

createInvocationHandler

protected ScriptInvocationHandler createInvocationHandler(String script,
                                                          String language,
                                                          String resultVariable)
Creates an instance of the ScriptInvocationHandler.

Parameters:
script - source code of the script
language - the language used
resultVariable - the variable name under which the result of the script invocation (if any) should be stored
Returns:
the invocation handler instance


Copyright © 2014 camunda services GmbH. All Rights Reserved.