vars : An optional object to pass input variables into the workflow.
The API primarily revolves around three key server-side classes: servicenow-workflow-api
: Terminates all active workflow contexts associated with a specific record. vars : An optional object to pass input
Developers use these methods within Script Includes or Business Rules to automate workflow behavior: servicenow-workflow-api
: When triggering workflows via API, consider using Asynchronous triggers to prevent UI lag for the end-user. REST API trigger - ServiceNow
: The main class used to initiate and manage workflow instances.
: Used to access definitions and configurations of specific workflows.