Working with Workflow Instances
8 min
if a business object is part of a workflow (usually involving the approval process or a status progression), then a workflow appears under the workflow instance tab of a record or in the workflow instance workspace viewing the workflow instance docid\ uyae8z1xcnbsxjkmao7e9about adding a workflow instance docid\ uyae8z1xcnbsxjkmao7e9modifying a workflow instance docid\ uyae8z1xcnbsxjkmao7e9about deleting a workflow instance docid\ uyae8z1xcnbsxjkmao7e9rerunning a workflow docid\ uyae8z1xcnbsxjkmao7e9aborting, pausing, and resuming a workflow instance docid\ uyae8z1xcnbsxjkmao7e9 viewing a workflow instance log into the service desk console open a workspace open a record select the workflow instance tab any workflows associated with the record are listed open a workflow item from the list or highlight one and click go to the system displays the edit workflow instance window edit workflow instance window click view instance the workflow appears in a new window about adding a workflow instance workflow instances are created in two ways automatically, according to the workflows and business rules set up by the administrator by rerunning a workflow see rerunning a workflow docid\ uyae8z1xcnbsxjkmao7e9 modifying a workflow instance log into the service desk console open a workspace open a record click the workflow instance tab any workflows associated with the record are listed double click a workflow item from the list or highlight one and click go to the system displays the edit workflow instance window modify the workflow as needed see using workflows docid\ p4kb1hcf81wnxmoqhbcjs for more information about deleting a workflow instance you cannot delete workflow instances from within a record you can, however, cancel or stop the workflow see example canceling a workflow that is awaiting approval docid 0fvbwindlffgusss3tscn rerunning a workflow about rerunning a workflow docid\ uyae8z1xcnbsxjkmao7e9rerunning a workflow from a workspace docid\ uyae8z1xcnbsxjkmao7e9rerunning a workflow from the workflow instance workspace docid\ uyae8z1xcnbsxjkmao7e9 about rerunning a workflow workflows usually run when a trigger condition is met however, there can be times when a workflow does not run as expected, due to various reasons for example, the workflow engine could be stuck or not running, there could be a content conflict that causes unreachable conditions, or a process might have skipped a business rule in prior releases, when this happened, you could not rerun the workflow because the trigger condition had passed make sure that you understand the impact of rerunning a workflow when you rerun a workflow, you are rerunning it again irrespective of the previous success or failure status of the workflow instance rerunning the workflow does not undo the previous workflow execution use this feature with caution, as you cannot stop it and it cannot be undone if the workflow has already run as expected, and you rerun it, you may not get correct results because the conditions associated with the workflow may not be correct anymore rerunning the workflow can duplicate data or cause other problems rerunning a workflow from a workspace this is equivalent to running the execute workflow quick action see execute workflow action docid\ pe5az0d1ggdbdswwplgyi you can also create a triggered action that uses the execute workflow quick action, to run the workflow on an event to rerun a workflow from a workspace, follow these steps log into the service desk console open any workspace from the action menu drop down list, click view workflow the item might be listed under a specific category, such as form actions in this example if view workflow does not appear under the action menu, then it has not been set up for this workspace the system displays the view workflow definition and instance dialog box view workflow definition and instance dialog box click re run workflow to rerun the workflow the system displays a cautionary message rerun workflow cautionary message click ok to proceed rerunning a workflow from the workflow instance workspace you can rerun a workflow only if the status is set to completed, failed, or aborted to rerun a workflow from the workflow instance workspace, follow these steps log into the service desk console open the workflow instance workspace workflow instance workspace highlight one or more items click re run from the top menu the system displays a cautionary message click yes to rerun the workflow to verify that the workflow reran correctly, open the item in its parent by clicking open in parent from the workflow instance workspace the system opens the item in its parent workspace click the workflow instance tab and view the dates and times associated with the workflows aborting, pausing, and resuming a workflow instance you can abort, pause, and resume a workflow instance if it is in the waiting state abort a workflow instance to stop it completely pause a workflow instance if you need to fix or investigate the business object, and then resume it when you are finished log into the service desk console do one of the following open the workflow instance workspace go to a workspace, open a record, and click the workflow instance tab find a workflow instance that has a status of waiting do one of the following to abort the workflow instance, click abort to pause a workflow instance that is running, click pause to resume a paused workflow instance, click resume
