Starting a machine process process in any state

I am looking into creating a new State Machine Workflow - usually with our other flowchart workflows that we have set up so that we can restart them after an upgrade by running them in a future "state" - is there an easy way to start a state machine workflow in any given state, or would you need to piece it together so the initial state can transition to any of the other states and output logic and transitions programmatically?


source to share

2 answers

The only way to do this is to explicitly add a state transition to the workflow and trigger it with some additional parameter, so the logic gets triggered.



Call the SetState method of StateMachineWorkflowInstance and pass either a string representation of the state or an instance of the StateActivity class to start with.



All Articles