Issue:
Users tend to start a new run opposed to continuing a run that was previously started. The workflow needs to prompt to remind them to Continue the run if it previously exists. For people who count steps completed vs steps not run this will help in the reporting process.
Solution:
In ActionCanExecute:
If ActionName = "act_run" Then
strRunStatus = TestSetTest_Fields("TC_STATUS").Value
'If the Test Instance has any value OTHER than No Run, then execute
If Not(strRunStatus = "No Run") Then
strInput = msgbox("Do you want to continue a previous run?", 3)
If strInput = 6 Then
'Set to false, so the run_act action will not finish
Template_ActionCanExecute = False
'Call action to continue previous run
Actions.Action("act_continue_man_run").Execute
ElseIf strInput = 7 Then 'Start new run
Template_ActionCanExecute = DefaultRes
ElseIf strInput = 2 Then
'Then they canceled and do nothing.
Template_ActionCanExecute = False
Else
Template_ActionCanExecute = DefaultRes
End If
Else
Template_ActionCanExecute = DefaultRes
End If
Else
Template_ActionCanExecute = DefaultRes
End If