public class ExternalTaskActivityBehavior extends AbstractBpmnActivityBehavior implements MigrationObserverBehavior
AbstractBpmnActivityBehavior.ErrorDeclarationForProcessInstanceFinder, AbstractBpmnActivityBehavior.ErrorPropagationException
Modifier and Type | Field and Description |
---|---|
protected ParameterValueProvider |
priorityValueProvider |
protected String |
topicName |
LOG
bpmnActivityBehavior
Constructor and Description |
---|
ExternalTaskActivityBehavior(String topicName,
ParameterValueProvider paramValueProvider) |
Modifier and Type | Method and 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 |
propagateBpmnError(BpmnError error,
ActivityExecution execution)
Overrides the propagateBpmnError method to made it public.
|
void |
signal(ActivityExecution execution,
String signalName,
Object signalData) |
checkIfCauseOfExceptionIsBpmnError, createCompensateEventSubscription, doLeave, executeWithErrorPropagation, isCompensationEventSubprocess, isProcessEngineExceptionWithoutCause, isTransactionNotActive, propagateError, propagateException, propagateExceptionAsError, signalCompensationDone
leave, leaveIgnoreConditions
protected String topicName
protected ParameterValueProvider priorityValueProvider
public ExternalTaskActivityBehavior(String topicName, ParameterValueProvider paramValueProvider)
public void execute(ActivityExecution execution) throws Exception
FlowNodeActivityBehavior
execute
in interface CoreActivityBehavior<ActivityExecution>
execute
in interface ActivityBehavior
execute
in class FlowNodeActivityBehavior
Exception
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception
signal
in interface SignallableActivityBehavior
signal
in class AbstractBpmnActivityBehavior
Exception
public ParameterValueProvider getPriorityValueProvider()
public void propagateBpmnError(BpmnError error, ActivityExecution execution) throws Exception
propagateBpmnError
in class AbstractBpmnActivityBehavior
error
- the error which should be propagatedexecution
- the current activity executionException
- throwsn an exception if no handler was foundpublic void migrateScope(ActivityExecution scopeExecution)
MigrationObserverBehavior
migrateScope
in interface MigrationObserverBehavior
public void onParseMigratingInstance(MigratingInstanceParseContext parseContext, MigratingActivityInstance migratingInstance)
MigrationObserverBehavior
onParseMigratingInstance
in interface MigrationObserverBehavior
Copyright © 2017. All rights reserved.