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, TypedCommandWriter commandWriter) voidsubscribeToTimerEvent(long elementInstanceKey, long processInstanceKey, long processDefinitionKey, org.agrona.DirectBuffer handlerNodeId, Timer timer, TypedCommandWriter commandWriter, SideEffects sideEffects) voidunsubscribeEventSubprocesses(BpmnElementContext context, TypedCommandWriter commandWriter, SideEffects sideEffects) Unsubscribe from all event subprocesses in the scope of the context.voidunsubscribeFromEvents(BpmnElementContext context, TypedCommandWriter commandWriter, SideEffects sideEffects) Unsubscribe from all events in the scope of the context.voidunsubscribeFromTimerEvent(TimerInstance timer, TypedCommandWriter commandWriter)
-
Constructor Details
-
CatchEventBehavior
public CatchEventBehavior(ZeebeState zeebeState, KeyGenerator keyGenerator, ExpressionProcessor expressionProcessor, SubscriptionCommandSender subscriptionCommandSender, StateWriter stateWriter, DueDateTimerChecker timerChecker, int partitionsCount)
-
-
Method Details
-
unsubscribeFromEvents
public void unsubscribeFromEvents(BpmnElementContext context, TypedCommandWriter commandWriter, SideEffects sideEffects) Unsubscribe from all events in the scope of the context.- Parameters:
context- the context to subscript fromcommandWriter- the writer for unsubscribe commandssideEffects- the side effects for unsubscribe actions
-
unsubscribeEventSubprocesses
public void unsubscribeEventSubprocesses(BpmnElementContext context, TypedCommandWriter commandWriter, SideEffects sideEffects) Unsubscribe from all event subprocesses in the scope of the context. Ignores other event subscriptions in the scope.- Parameters:
context- the context to subscript fromcommandWriter- the writer for unsubscribe commandssideEffects- the side effects for unsubscribe actions
-
subscribeToEvents
public Either<Failure,Void> subscribeToEvents(BpmnElementContext context, ExecutableCatchEventSupplier supplier, SideEffects sideEffects, TypedCommandWriter commandWriter) - Returns:
- either a failure or nothing
-
subscribeToTimerEvent
public void subscribeToTimerEvent(long elementInstanceKey, long processInstanceKey, long processDefinitionKey, org.agrona.DirectBuffer handlerNodeId, Timer timer, TypedCommandWriter commandWriter, SideEffects sideEffects) -
unsubscribeFromTimerEvent
-