There are many reasons why an object may need to be removed from a workflow. A few of the reasons for removing an object from a workflow are:
No matter the reason for removing an object from a workflow, objects can be removed, i.e., taken out of workflows, in several different ways.
If a user wants to remove a single object from a workflow, and they have the 'Remove Items from STEP Workflow' privilege, this can be accomplished via the Remove from STEP Workflow context menu option on the object.
To do so, right-click on an object, or product, and select Remove from STEP Workflow.
If a user needs to remove all objects from a workflow, and they have the 'Remove Items from STEP Workflow' privilege, this is possible via the workflow context menu option Remove items from STEP Workflow.
Navigate to System Setup, right-click on the workflow that needs all items removed, and select Remove items from STEP Workflow.
Should a user want to remove all objects from one state in a workflow, they can do so using Bulk Updates if they have the ability to search the STEP Workflow tab, and they have the 'Perform Bulk Update' privilege.
As objects by default stay in the final states of the workflow until explicitly removed, it is highly recommended to automatically take the objects out of the workflow when reaching a final state on the outer level. This can be done one of two ways: use the 'Remove object from STEP Workflow' business action or use an 'Execute JavaScript' business action. It is important to note that both business actions can be used on states other than the final state, however, the information described below is the most typical scenario in which these actions are used.
Remove object from STEP Workflow Business Action
Execute JavaScript Business Action
If below script is entered in a business action configured 'On Entry' to the final state, once objects enter the state, they will be removed from the workflow and the supplied process note posted to the State Log if one was entered.
node.getWorkflowInstance(workflow).delete("Object automatically removed from Workflow");
2020, Stibo Systems – Confidential