Servicenow-workflow-api Online

: Manages the runtime state and execution details of a specific workflow instance. Key API Methods

: Adding a "Restart Workflow" button on a form that uses script to cancel and re-trigger a process. Best Practices servicenow-workflow-api

The API primarily revolves around three key server-side classes: : Manages the runtime state and execution details

vars : An optional object to pass input variables into the workflow. servicenow-workflow-api

Developers use these methods within Script Includes or Business Rules to automate workflow behavior:

: Triggers a specific workflow. workflowId : The sys_id of the workflow definition. current : The GlideRecord the workflow will run against.