Skip to main content

2 docs tagged with "StateModel"

View all tags

State Models

Guide for creating ServiceNow State Models using the Fluent API. A State Model defines the states a record can be in, the valid transitions between them, and the conditions that gate each transition — for example, blocking a Change from "Assess" to "Authorize" until an approval condition is met. A single StateModel() call creates the model record plus all of its state, transition, and condition records.

StateModel

Creates a State Model that defines states, transitions, and gating conditions for a table. A single StateModel() call produces the model record plus all of its state, transition, and condition records. The plugin auto-detects the model table from the target table (changerequest → chgmodel, problem → prbmodel, problemtask → prbtaskmodel, any other table → the base sttrm_model).