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

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.ServiceTaskExpressionActivityBehavior
All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>, ActivityBehavior, SignallableActivityBehavior

public class ServiceTaskExpressionActivityBehavior
extends TaskActivityBehavior

ActivityBehavior that evaluates an expression when executed. Optionally, it sets the result of the expression as a variable on the execution.

Author:
Tom Baeyens, Christian Stettler, Frederik Heremans, Slawomir Wojtasiak (Patch for ACT-1159), Falko Menge

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
protected  Expression expression
           
protected  String resultVariable
           
 
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
ServiceTaskExpressionActivityBehavior(Expression expression, String resultVariable)
           
 
Method Summary
 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
checkIfCauseOfExceptionIsBpmnError, 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

expression

protected Expression expression

resultVariable

protected String resultVariable
Constructor Detail

ServiceTaskExpressionActivityBehavior

public ServiceTaskExpressionActivityBehavior(Expression expression,
                                             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


Copyright © 2017 camunda services GmbH. All rights reserved.