Class EventTriggerBehavior
java.lang.Object
io.camunda.zeebe.engine.processing.common.EventTriggerBehavior
-
Constructor Summary
ConstructorsConstructorDescriptionEventTriggerBehavior(KeyGenerator keyGenerator, CatchEventBehavior catchEventBehavior, Writers writers, ProcessingState processingState) -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateTriggeredEvent(long processEventKey, ExecutableFlowElement triggeredEvent, long eventScopeKey, long flowScopeKey, ProcessInstanceRecord elementRecord, org.agrona.DirectBuffer variables) voidprocessEventTriggered(long eventTriggerKey, long processDefinitionKey, long processInstanceKey, long eventScopeKey, org.agrona.DirectBuffer catchEventId) Marks a process to be triggered by updating the state with a newProcessEventIntent.TRIGGEREDevent.voidtriggerEventSubProcess(ExecutableStartEvent startEvent, long flowScopeElementInstanceKey, ProcessInstanceRecord recordValue, org.agrona.DirectBuffer variables) longtriggeringProcessEvent(long processDefinitionKey, long processInstanceKey, long eventScopeKey, org.agrona.DirectBuffer catchEventId, org.agrona.DirectBuffer variables) Triggers a process by updating the state with a newProcessEventIntent.TRIGGERINGevent.
-
Constructor Details
-
EventTriggerBehavior
public EventTriggerBehavior(KeyGenerator keyGenerator, CatchEventBehavior catchEventBehavior, Writers writers, ProcessingState processingState)
-
-
Method Details
-
triggerEventSubProcess
public void triggerEventSubProcess(ExecutableStartEvent startEvent, long flowScopeElementInstanceKey, ProcessInstanceRecord recordValue, org.agrona.DirectBuffer variables) -
triggeringProcessEvent
public long triggeringProcessEvent(long processDefinitionKey, long processInstanceKey, long eventScopeKey, org.agrona.DirectBuffer catchEventId, org.agrona.DirectBuffer variables) Triggers a process by updating the state with a newProcessEventIntent.TRIGGERINGevent.NOTE: this method assumes that the caller already verified that the target can accept new events!
- Parameters:
processDefinitionKey- the event's corresponding process definition keyprocessInstanceKey- the event's corresponding process instance keyeventScopeKey- the event's scope key, which used to index the trigger inEventScopeInstanceStatecatchEventId- the ID of the element which should be triggered by the eventvariables- the variables/payload of the event (can be empty)- Returns:
- the key of the process event
-
processEventTriggered
public void processEventTriggered(long eventTriggerKey, long processDefinitionKey, long processInstanceKey, long eventScopeKey, org.agrona.DirectBuffer catchEventId) Marks a process to be triggered by updating the state with a newProcessEventIntent.TRIGGEREDevent.- Parameters:
processInstanceKey- the process instance key of the event triggerprocessDefinitionKey- the process instance key of the event triggereventScopeKey- the event's scope key, which is used as identifier for the event triggercatchEventId- the ID of the element which was triggered by the event
-
activateTriggeredEvent
public void activateTriggeredEvent(long processEventKey, ExecutableFlowElement triggeredEvent, long eventScopeKey, long flowScopeKey, ProcessInstanceRecord elementRecord, org.agrona.DirectBuffer variables)
-