Class CatchEventBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.common.CatchEventBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionCatchEventBehavior(ProcessingState processingState, KeyGenerator keyGenerator, ExpressionProcessor expressionProcessor, SubscriptionCommandSender subscriptionCommandSender, StateWriter stateWriter, SideEffectWriter sideEffectWriter, DueDateTimerChecker timerChecker, int partitionsCount) -
Method Summary
Modifier and TypeMethodDescriptionsubscribeToEvents(BpmnElementContext context, ExecutableCatchEventSupplier supplier) voidsubscribeToTimerEvent(long elementInstanceKey, long processInstanceKey, long processDefinitionKey, org.agrona.DirectBuffer handlerNodeId, String tenantId, Timer timer) voidUnsubscribe from all event subprocesses in the scope of the element instance.voidunsubscribeFromEvents(long elementInstanceKey) Unsubscribe from all events in the scope of the element instance.void
-
Constructor Details
-
CatchEventBehavior
public CatchEventBehavior(ProcessingState processingState, KeyGenerator keyGenerator, ExpressionProcessor expressionProcessor, SubscriptionCommandSender subscriptionCommandSender, StateWriter stateWriter, SideEffectWriter sideEffectWriter, DueDateTimerChecker timerChecker, int partitionsCount)
-
-
Method Details
-
unsubscribeFromEvents
public void unsubscribeFromEvents(long elementInstanceKey) Unsubscribe from all events in the scope of the element instance.- Parameters:
elementInstanceKey- the element instance key to subscript from
-
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 from
-
subscribeToEvents
public Either<Failure,Void> subscribeToEvents(BpmnElementContext context, ExecutableCatchEventSupplier supplier) - Returns:
- either a failure or nothing
-
subscribeToTimerEvent
-
unsubscribeFromTimerEvent
-