Starting
Instances of a workflow are started by one or more messages. When one of these types of messages are received a new workflow state is created and execution of the workflow begins.
Declare a handler for the message that starts your workflow, and then map it using the WorkflowMapper.
In this case, when a ItemPurchased event is received, it will start a new workflow and dispatch the message to the shipItem handler.
Last updated