Search code examples
workflow-foundation-4state-machine

State Machine persistence


How does the persistence work for state machines? More specifically, I would like to know how triggers are persisted.

I would like to understand if it is possible to put long running logic into triggers' actions, or if I should create a "transitional" state with that logic.

Thanks


Solution

  • Persistence for state machines is no different than for other workflows. Whenever the workflow is idle it's state can be persisted. If you are using bookmarks in you workflow, either yourself or indirectly through a Receive activity, they will be persisted as part of your workflow state.