I have a workflow with a State Machine in it which i want to be able to restart in a different state in the state machine. (An instance when this would be needed is if a user sends the workflow to the wrong step, or if the workflow errors and needs to be restarted without going through all the steps it has already gone through.)
I am using a secondary workflow which has 3 actions in it,
- Terminate Workflow Instances, which stops the current workflow
- Update List Item, which is adds the State chosen in a variable with Initiation set to Yes, this should choose the state in which the workflow starts in.
- Start Workflow, to restart the workflow, hopefully in the state chosen previously.
The workflow works almost as intended, it stops the workflow and sets the state to restart in, and then restarts the workflow, but does not start it in the chosen state.
Someone who previously built a workflow on our site built this exact workflow and it does start it at the chosen state, but for some reason i can’t get it to start there.
The Start Workflow Action doesn’t seem to have any indicator as to where it should be started, which is most likely the issue, but the original i have doesn’t show where it specifies this state either.
Has anyone ever built something like this? I am willing to try any other ways of making this work.
Best answer by GarrettView original