Servicenow-workflow-api
: Manages the runtime state and execution details of a specific workflow instance. Key API Methods
: Always check for existing Workflow Contexts before starting a new one to avoid duplicate executions on the same record.
: Terminates all active workflow contexts associated with a specific record. servicenow-workflow-api
: Used to access definitions and configurations of specific workflows.
: The main class used to initiate and manage workflow instances. : Manages the runtime state and execution details
: Programmatically starting workflows for a batch of records after an import.
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 : Used to access definitions and configurations of
: Triggers a specific workflow. workflowId : The sys_id of the workflow definition. current : The GlideRecord the workflow will run against.