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 ParameterValueProvider
priorityValueProvider
protected ParameterValueProvider
topicNameValueProvider
-
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 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
signal(ActivityExecution execution, java.lang.String signalName, java.lang.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 java.lang.Exception
Description copied from class:FlowNodeActivityBehavior
Default behaviour: just leave the activity with no extra functionality.- Specified by:
execute
in interfaceActivityBehavior
- Specified by:
execute
in interfaceCoreActivityBehavior<ActivityExecution>
- Overrides:
execute
in classFlowNodeActivityBehavior
- Throws:
java.lang.Exception
-
signal
public void signal(ActivityExecution execution, java.lang.String signalName, java.lang.Object signalData) throws java.lang.Exception
- Specified by:
signal
in interfaceSignallableActivityBehavior
- Overrides:
signal
in classAbstractBpmnActivityBehavior
- Throws:
java.lang.Exception
-
getPriorityValueProvider
public ParameterValueProvider getPriorityValueProvider()
-
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 interfaceMigrationObserverBehavior
-
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 interfaceMigrationObserverBehavior
-
-