{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":39631,"path":"platform-administration/state-management/installed-state-model.md","title":"Installed with State Model","bundle":null,"doc_type":null,"release":"australia","body":"\n# Installed with State Model\n\nSeveral types of components are installed with the State Model.\n\n## Tables installed with State Model\n\nState Model adds the following tables.\n\n<table id=\"table_xhy_hv4_2bb\"><thead><tr><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nState Model\\[sys\\_state\\_model\\]\n\n</td><td>\n\nDefines the name of the state model and which table the state model targets. Also defines the condition for applying the state model to records and any common condition for moving from any state to any other state.\n\n</td></tr><tr><td>\n\nState Transition\\[sys\\_state\\_transition\\]\n\n</td><td>\n\nDefines how each record in the target table transitions to \\(the enter condition\\) and/or from \\(the exit condition\\) each state predefined for that table.\n\n</td></tr></tbody>\n</table>## Roles installed with State Model\n\nState Model adds the following role.\n\nTo learn more about managing subscriptions, see [Managing per-user subscriptions in Subscription Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/managing-user-subscriptions-v2.md) and contact your account representative.\n\n|State Model Administrator|Description|Contains roles|\n|-------------------------|-----------|--------------|\n|\\[state\\_model\\_admin\\]|Allows users to add, modify, and delete state models for task tables.|None|\n\n### State model Administrator \\[state\\_model\\_admin\\]\n\nAdd, modify, and delete state models for task tables.\n\n#### Contains Roles\n\nList of roles contained within the role.\n\nNone.\n\n#### Groups\n\nList of groups this role is assigned to by default.\n\nNone.\n\n#### Special considerations\n\n**Note:** Avoid granting an admin role when more specialized roles are available.\n\n## Script includes installed with State Model\n\nState Model adds the following script include.\n\n|Script include|Description|\n|--------------|-----------|\n|TableChoiceUtils|Utility class to get the choice list of a table field.|\n\n## Client scripts installed with State Model\n\nState Model adds the following client script.\n\n<table id=\"table_rgt_ys4_2bb\"><thead><tr><th>\n\nClient script\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nPopulate State Choices\n\n</td><td>\n\nState Transition\\[sys\\_state\\_transition\\]\n\n</td><td>\n\nPopulates the **State** field choices in the targeted record.\n\n</td></tr></tbody>\n</table>## Business rules installed with State Model\n\nState Model adds the following business rules.\n\n<table><thead><tr><th>\n\nBusiness rule\n\n</th><th>\n\nTable\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nSet the display value for state\n\n</td><td>\n\nState Transition \\[sys\\_state\\_transition\\]\n\n</td><td>\n\nSets the **State** field value based on the state model for the table.\n\n</td></tr><tr><td>\n\nSet the table to pick choices\n\n</td><td>\n\nState Transition\\[sys\\_state\\_transition\\]\n\n</td><td>\n\nCaches the **State** field value from the first table in the hierarchy for further rule processing.\n\n</td></tr></tbody>\n</table>"}}