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 TypeMethodDescriptionvoid
activateTriggeredEvent
(long processEventKey, ExecutableFlowElement triggeredEvent, long eventScopeKey, long flowScopeKey, ProcessInstanceRecord elementRecord, org.agrona.DirectBuffer variables) void
processEventTriggered
(long eventTriggerKey, long processDefinitionKey, long processInstanceKey, String tenantId, long eventScopeKey, org.agrona.DirectBuffer catchEventId) Marks a process to be triggered by updating the state with a newProcessEventIntent.TRIGGERED
event.void
triggerEventSubProcess
(ExecutableStartEvent startEvent, long flowScopeElementInstanceKey, ProcessInstanceRecord recordValue, org.agrona.DirectBuffer variables) long
triggeringProcessEvent
(long processDefinitionKey, long processInstanceKey, String tenantId, long eventScopeKey, org.agrona.DirectBuffer catchEventId, org.agrona.DirectBuffer variables) Triggers a process by updating the state with a newProcessEventIntent.TRIGGERING
event.
-
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, String tenantId, long eventScopeKey, org.agrona.DirectBuffer catchEventId, org.agrona.DirectBuffer variables) Triggers a process by updating the state with a newProcessEventIntent.TRIGGERING
event.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 inEventScopeInstanceState
catchEventId
- 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, String tenantId, long eventScopeKey, org.agrona.DirectBuffer catchEventId) Marks a process to be triggered by updating the state with a newProcessEventIntent.TRIGGERED
event.- Parameters:
processDefinitionKey
- the process instance key of the event triggerprocessInstanceKey
- 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)
-