This is the scenario:
I have a State Machine Workflow using ManualWorkflowScheduler. Say there are 2 states: State1 and State2. State1 contains an EventDrivenActivity1 that has a SetStateActivity1 moving the workflow from State1 to State2. State1 also has a StateFinalizationActivity1.
So my question is:
When an event is raised and SetStateActivity1 executes and changes the state of the workflow to State2, is StateFinalizationActivity1 executed on the same thread (as part of the call) as the method that raised the event causing state change (meaning - does the caller method have to wait until both sequences of EventDrivenActivity1 and StateFinalizationActivity1 executes, or it will return after EventDrivenActivity1 is executed and StateFinalizationActivity1 is going to be executed after the return)?