Skip to content

Workflow instance creation by Event State seems strange #510

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

You must be logged in to vote

Good point. Will work on clarifying this section.

To give you an idea, it is really up to the runtime how to do this, and the spec doc should not make this assumption (will fix asap!).

There are really two ways a runtime can handle this:

  1. Like you mentioned, create instance of a workflow and then send the event that triggers the starting event state. Some runtimes provide like a "eventWithStart" functionality which creates workflow instance and then immediately sends the event to it that triggers exec.
  2. Have an event-consumer that triggers workflow instance creating when the appropriate event arrives. This means that runtime keeps track of deployed workflow definitions and knows to map inc…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@globalflea
Comment options

@tsurdilo
Comment options

@tsurdilo
Comment options

@tsurdilo
Comment options

Answer selected by globalflea
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