In the workflow, there are four different release statuses.
Suspended
- In suspended status, no new instances of the workflow are created, and no existing instances of the workflow are executed.
- If the workflow includes scheduled workflows, transitions, or actions, none of them will be executed.
- When an active released workflow is suspended, all the active instances of the workflow will be suspended and will no longer work. For example, if it is an approval process, even if the approval process is not completed, it will stop when the workflow is suspended.
- It is not possible to initiate a suspended workflow from SuiteScript, or by using the Initiate Workflow or Mass Update actions in SuiteFlow.
- To resume a suspended workflow, change the Release Status of the workflow to a different release status than Suspended. For example, if the status is changed to released, the suspended workflow will be started from which state it was suspended and will not need to restart the approval process from the start. It will resume from where it was suspended.
- Use case: Use when you want a workflow to stop executing but you do not want to delete the workflow.
Not Initiating
- New instances of the workflow do not initiate but already running instances of the workflow will continue to run. The workflow still appears on the Workflow list page.
- It is similar to inactivating a workflow.
- It is used when you do not want any new instances of the workflow initiated but you still want existing instances of the workflow to execute.
- Use case: When we want the existing workflow to stop working and do not want to affect the record on which this workflow has already started to execute.
Testing
- A workflow instance only initiates for the owner of the workflow.
- However, any user accessing the record will see changes made to the record by the workflow. Workflow actions execute for the user even though the workflow instance was not initiated by the user.
- Scheduled workflows do not execute when the workflow is in the testing mode.
- This is the default Release Status option when you create new workflows.
- Use case: Use when you want to test a workflow. In testing mode, the workflow execution log appears for each state on the Workflow History subtab for any record in a workflow.
Released
- An instance of the workflow initiates for any user with access to the base record type of the workflow definition.
- Scheduled workflows, actions, and transitions only execute when the workflow is in released mode.
- Enable logging on the workflow definition if you want to continue generating workflow execution logs.
- Use case: Use when you want the workflow to run for all users without any restriction.