Servicenow-workflow-api Guide

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

: Sends a signal to a running workflow to trigger a specific activity or transition.

: Terminates all active workflow contexts associated with a specific record. servicenow-workflow-api

: A critical GlideRecord method that determines if database actions should trigger associated business rules and workflows. Common Use Cases

: Always check for existing Workflow Contexts before starting a new one to avoid duplicate executions on the same record. : Triggers a specific workflow

The is a collection of server-side classes and methods used to programmatically interact with workflows on the ServiceNow platform. While modern automation often utilizes Flow Designer , the legacy Workflow API remains essential for managing complex, multi-state processes in older applications. Core Components

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

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