views:

20

answers:

0

For a state machine workflow, it is a common pattern to raise events from the presentation layer and these events are handled on the workflow layer. Most commonly, the workflow performs different kinds of updates.

Is there a nice way to return data from the workflow layer to the presentation layer?

For example, user clicks on a button "Process Order". An event is raised passing the order details to the workflow. The workflow in turn, updates the database. In such a scenario, can the workflow return the updated order details in the same transaction?