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
-
-
Field Summary
Fields Modifier and Type Field Description protected ParameterValueProviderpriorityValueProviderprotected ParameterValueProvidertopicNameValueProvider-
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
Constructors Constructor Description ExternalTaskActivityBehavior(ParameterValueProvider topicName, ParameterValueProvider paramValueProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ActivityExecution execution)Default behaviour: just leave the activity with no extra functionality.ParameterValueProvidergetPriorityValueProvider()voidmigrateScope(ActivityExecution scopeExecution)Implement to perform activity-specific migration behavior that is not covered by the regular migration procedure.voidonParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)Callback to implement behavior specific parsing (e.g.voidsignal(ActivityExecution execution, String signalName, Object signalData)-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, signalCompensationDone
-
Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
leave, leaveIgnoreConditions
-
-
-
-
Field Detail
-
topicNameValueProvider
protected ParameterValueProvider topicNameValueProvider
-
priorityValueProvider
protected ParameterValueProvider priorityValueProvider
-
-
Constructor Detail
-
ExternalTaskActivityBehavior
public ExternalTaskActivityBehavior(ParameterValueProvider topicName, ParameterValueProvider paramValueProvider)
-
-
Method Detail
-
execute
public void execute(ActivityExecution execution) throws Exception
Description copied from class:FlowNodeActivityBehaviorDefault behaviour: just leave the activity with no extra functionality.- Specified by:
executein interfaceActivityBehavior- Specified by:
executein interfaceCoreActivityBehavior<ActivityExecution>- Overrides:
executein classFlowNodeActivityBehavior- Throws:
Exception
-
signal
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception
- Specified by:
signalin interfaceSignallableActivityBehavior- Overrides:
signalin classAbstractBpmnActivityBehavior- Throws:
Exception
-
getPriorityValueProvider
public ParameterValueProvider getPriorityValueProvider()
-
migrateScope
public void migrateScope(ActivityExecution scopeExecution)
Description copied from interface:MigrationObserverBehaviorImplement 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:
migrateScopein interfaceMigrationObserverBehavior
-
onParseMigratingInstance
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)
Description copied from interface:MigrationObserverBehaviorCallback to implement behavior specific parsing (e.g. adding additional dependent entities).- Specified by:
onParseMigratingInstancein interfaceMigrationObserverBehavior
-
-