So if I understand you correctly, once a step fails you would like the user to be prompted with a dialog box with three buttons. Depending on what button the user selects the sequence will either continue stepping, terminate the sequence, or repeat the step that failed.
You should be able to achieve these features by adding a SequenceFilePostStepFailure callback. This callback sequence will run every time a step in the sequence file fails.
- Add a Message Popup with the buttons you mentioned
- Implement an if/if else/else-statement and identify what button has been pressed as Captain_Jack suggests
- Then add action steps for each case
- The RunState.Execution Object has multiple methods for you to explore. See Execution for a detailed list.
- For instance you can call the method Execution.terminate to terminate the sequence, or Execution.resume to continue the stepping.
The KnowledgeBase Article I linked before is good as a reference:
Programmatically Abort Execution upon Step Failure
Cheers!
//Marcus Bengths