Skip to content

Event State multiple event handling #512

Closed Answered by tsurdilo
globalflea asked this question in Q&A
Discussion options

You must be logged in to vote

Another good question, thank you.

In the Event State, it is supposed to wait for All events (or expected events) to be received before transitioning to the next state.

This depends on the "exclusive" param set on the event state (see docs).

E.g in your example, what happens if the state receives multiple Event B? How do i handle this?

If you have a workflow definition which has a starting event state that waits for event B, without looking at event correlation at this time, each consume of event B should trigger a new instance of that workflow.
If event correlation is considered (see docs on how to define correlation on event definitions)
then the runtime must be able to use this corr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cdavernas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants