Class CatchEventBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.common.CatchEventBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionCatchEventBehavior(ZeebeState zeebeState, KeyGenerator keyGenerator, ExpressionProcessor expressionProcessor, SubscriptionCommandSender subscriptionCommandSender, StateWriter stateWriter, DueDateTimerChecker timerChecker, int partitionsCount) -
Method Summary
Modifier and TypeMethodDescriptionsubscribeToEvents(BpmnElementContext context, ExecutableCatchEventSupplier supplier, SideEffects sideEffects) voidsubscribeToTimerEvent(long elementInstanceKey, long processInstanceKey, long processDefinitionKey, org.agrona.DirectBuffer handlerNodeId, Timer timer, SideEffects sideEffects) voidunsubscribeEventSubprocesses(BpmnElementContext context, SideEffects sideEffects) Unsubscribe from all event subprocesses in the scope of the element instance.voidunsubscribeFromEvents(long elementInstanceKey, SideEffects sideEffects) Unsubscribe from all events in the scope of the element instance.void
-
Constructor Details
-
CatchEventBehavior
public CatchEventBehavior(ZeebeState zeebeState, KeyGenerator keyGenerator, ExpressionProcessor expressionProcessor, SubscriptionCommandSender subscriptionCommandSender, StateWriter stateWriter, DueDateTimerChecker timerChecker, int partitionsCount)
-
-
Method Details
-
unsubscribeFromEvents
Unsubscribe from all events in the scope of the element instance.- Parameters:
elementInstanceKey- the element instance key to subscript fromsideEffects- the side effects for unsubscribe actions
-
unsubscribeEventSubprocesses
Unsubscribe from all event subprocesses in the scope of the element instance. Ignores other event subscriptions in the scope.- Parameters:
context- the context to subscript fromsideEffects- the side effects for unsubscribe actions
-
subscribeToEvents
public Either<Failure,Void> subscribeToEvents(BpmnElementContext context, ExecutableCatchEventSupplier supplier, SideEffects sideEffects) - Returns:
- either a failure or nothing
-
subscribeToTimerEvent
public void subscribeToTimerEvent(long elementInstanceKey, long processInstanceKey, long processDefinitionKey, org.agrona.DirectBuffer handlerNodeId, Timer timer, SideEffects sideEffects) -
unsubscribeFromTimerEvent
-