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

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

public class ExternalTaskActivityBehavior
extends AbstractBpmnActivityBehavior
implements MigrationObserverBehavior

Implements behavior of external task activities, i.e. all service-task-like activities that have camunda:type="external".

Author:
Thorben Lindhauer, Christopher Zell

Nested Class Summary
 
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
 
Field Summary
protected  ParameterValueProvider priorityValueProvider
           
protected  String topicName
           
 
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
ExternalTaskActivityBehavior(String topicName, ParameterValueProvider paramValueProvider)
           
 
Method Summary
 void execute(ActivityExecution execution)
          Default behaviour: just leave the activity with no extra functionality.
 ParameterValueProvider getPriorityValueProvider()
           
 void migrateScope(ActivityExecution scopeExecution)
          Implement to perform activity-specific migration behavior that is not covered by the regular migration procedure.
 void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)
          Callback to implement behavior specific parsing (e.g.
 void propagateBpmnError(BpmnError error, ActivityExecution execution)
          Overrides the propagateBpmnError method to made it public.
 void signal(ActivityExecution execution, String signalName, Object signalData)
           
 
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, leave, propagateError, propagateException, propagateExceptionAsError, 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

topicName

protected String topicName

priorityValueProvider

protected ParameterValueProvider priorityValueProvider
Constructor Detail

ExternalTaskActivityBehavior

public ExternalTaskActivityBehavior(String topicName,
                                    ParameterValueProvider paramValueProvider)
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

signal

public void signal(ActivityExecution execution,
                   String signalName,
                   Object signalData)
            throws Exception
Specified by:
signal in interface SignallableActivityBehavior
Overrides:
signal in class AbstractBpmnActivityBehavior
Throws:
Exception

getPriorityValueProvider

public ParameterValueProvider getPriorityValueProvider()

propagateBpmnError

public void propagateBpmnError(BpmnError error,
                               ActivityExecution execution)
                        throws Exception
Overrides the propagateBpmnError method to made it public. Is used to propagate the bpmn error from an external task.

Overrides:
propagateBpmnError in class AbstractBpmnActivityBehavior
Parameters:
error - the error which should be propagated
execution - the current activity execution
Throws:
Exception - throwsn an exception if no handler was found

migrateScope

public void migrateScope(ActivityExecution scopeExecution)
Description copied from interface: MigrationObserverBehavior
Implement to perform activity-specific migration behavior that is not covered by the regular migration procedure. Called after the scope execution and any ancestor executions have been migrated to their target activities and process definition.

Specified by:
migrateScope in interface MigrationObserverBehavior

onParseMigratingInstance

public void onParseMigratingInstance(MigratingInstanceParseContext parseContext,
                                     MigratingActivityInstance migratingInstance)
Description copied from interface: MigrationObserverBehavior
Callback to implement behavior specific parsing (e.g. adding additional dependent entities).

Specified by:
onParseMigratingInstance in interface MigrationObserverBehavior


Copyright © 2016 camunda services GmbH. All rights reserved.