org.camunda.bpm.engine.impl.bpmn.behavior
Class ExternalTaskActivityBehavior
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
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
| Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior |
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateError, propagateException, propagateExceptionAsError, signalCompensationDone |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
topicName
protected String topicName
priorityValueProvider
protected ParameterValueProvider priorityValueProvider
ExternalTaskActivityBehavior
public ExternalTaskActivityBehavior(String topicName,
ParameterValueProvider paramValueProvider)
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 propagatedexecution - 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 © 2017 camunda services GmbH. All rights reserved.