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).