Class AbstractBpmnActivityBehavior
java.lang.Object
org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior
- All Implemented Interfaces:
CoreActivityBehavior<ActivityExecution>
,ActivityBehavior
,SignallableActivityBehavior
- Direct Known Subclasses:
CallableElementActivityBehavior
,CancelEndEventActivityBehavior
,ClassDelegateActivityBehavior
,DmnBusinessRuleTaskActivityBehavior
,ErrorEndEventActivityBehavior
,ExternalTaskActivityBehavior
,IntermediateCatchEventActivityBehavior
,IntermediateCatchLinkEventActivityBehavior
,MailActivityBehavior
,MultiInstanceActivityBehavior
,ShellActivityBehavior
,SubProcessActivityBehavior
,TaskActivityBehavior
,ThrowEscalationEventActivityBehavior
,ThrowSignalEventActivityBehavior
Denotes an 'activity' in the sense of BPMN 2.0:
a parent class for all tasks, subprocess and callActivity.
- Author:
- Joram Barrez, Daniel Meyer, Thorben Lindhauer
-
Field Summary
Fields inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
bpmnActivityBehavior
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
createCompensateEventSubscription
(ActivityExecution execution, ActivityImpl compensationHandler) void
doLeave
(ActivityExecution execution) Subclasses that call leave() will first pass through this method, before the regularFlowNodeActivityBehavior.leave(ActivityExecution)
is called.protected void
executeWithErrorPropagation
(ActivityExecution execution, Callable<Void> toExecute) Takes anActivityExecution
and anCallable
and wraps the call to the Callable with the proper error propagation.protected boolean
isCompensationEventSubprocess
(ActivityImpl activity) void
signal
(ActivityExecution execution, String signalName, Object signalData) protected void
signalCompensationDone
(ActivityExecution execution) Methods inherited from class org.camunda.bpm.engine.impl.bpmn.behavior.FlowNodeActivityBehavior
execute, leave, leaveIgnoreConditions
-
Field Details
-
LOG
-
-
Constructor Details
-
AbstractBpmnActivityBehavior
public AbstractBpmnActivityBehavior()
-
-
Method Details
-
doLeave
Subclasses that call leave() will first pass through this method, before the regularFlowNodeActivityBehavior.leave(ActivityExecution)
is called.- Overrides:
doLeave
in classFlowNodeActivityBehavior
-
isCompensationEventSubprocess
-
createCompensateEventSubscription
protected void createCompensateEventSubscription(ActivityExecution execution, ActivityImpl compensationHandler) -
executeWithErrorPropagation
protected void executeWithErrorPropagation(ActivityExecution execution, Callable<Void> toExecute) throws Exception Takes anActivityExecution
and anCallable
and wraps the call to the Callable with the proper error propagation. This method also makes sure that exceptions not caught by following activities in the process will be thrown and not propagated.- Parameters:
execution
-toExecute
-- Throws:
Exception
-
signal
public void signal(ActivityExecution execution, String signalName, Object signalData) throws Exception - Specified by:
signal
in interfaceSignallableActivityBehavior
- Overrides:
signal
in classFlowNodeActivityBehavior
- Throws:
Exception
-
signalCompensationDone
-