When does a Windows workflow process go to sleep?

When does a Windows workflow process go to sleep?

Does this wait a certain amount of time? (can I change this time?)

Or does it just run when the activity is blocked / listened?

+1


a source to share


1 answer


A workflow instance is idle when:

  • waits for external event (ReceiveActivity

    / WCF or ListenActivity

    / ExternaDataExchange)
  • a DelayActivity

    performs


Next, the workflow instance is saved when:

  • it is in a waiting state (see above)
  • completed or completed
  • a TransactionScopeActivity

    or CompensatableTransactionScopeActivity

    completes
  • execution of the custom action marked with the attribute PersistOnClose

    completed
  • Unload () (or TryUnload) is called
+5


a source







All Articles