{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":48716,"path":"servicenow-platform/r_InstalledWithStateFlows.md","title":"Installed with state flows","bundle":null,"doc_type":null,"release":"australia","body":"\n# Installed with state flows\n\nSeveral types of components are installed with state flows.\n\n**Parent Topic:**[State flows](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_StateFlows.md)\n\n## Tables installed with state flows\n\nTables are added with state flows.\n\n|Table|Description|\n|-----|-----------|\n|State Flow \\[sf\\_state\\_flow\\]|Contains state flow definitions. This table contains all state flow definitions, including those for work orders and work order tasks.|\n|Work Order Flow \\[sf\\_work\\_order\\]|Contains state flow definitions for work orders. This table is installed when Field Service Management is activated.|\n|Work Task Flow \\[sf\\_work\\_task\\]|Contains state flow definitions for work order tasks. This table is installed when Field Service Management is activated.|\n\n## Business rules installed with state flows\n\nBusiness rules are added with state flows.\n\n<table id=\"table_BusinessRules\"><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\nAssert Field Uniqueness in State Flow\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nEnsures that business rules and UI actions are not accidentally copied to new state flows.\n\n</td></tr><tr><td>\n\nCheck Client Script\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nAdds a client script to new records.\n\n</td></tr><tr><td>\n\nCheck Event Rule\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nAdds or deletes event rules, as the event field is updated.\n\n</td></tr><tr><td>\n\nCheck Work Notes Rule\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nAdds or deletes work note rules, as the work notes for a state flow are updated.\n\n</td></tr><tr><td>\n\nCreate Business Rule\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nAutomatically creates a business rule when automatic conditions or script are present.\n\n</td></tr><tr><td>\n\nCreate script for Field controls\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nCreate scripts for field controls, when they are in use.\n\n</td></tr><tr><td>\n\nCreate UI Action\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nAutomatically creates a UI action when manual conditions or script are filled in.\n\n</td></tr><tr><td>\n\nDelete Related Elements\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nWhen state flows are deleted, delete all related client scripts, business rules, UI actions and overrides.\n\n</td></tr><tr><td>\n\nRemove script for Field controls\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nIf all field controls are disabled, see if any of the client scripts should be removed.\n\n</td></tr><tr><td>\n\nState Change\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nGet the correct state choice value when the state is changed.\n\n</td></tr><tr><td>\n\nUpdate dependent records\n\n</td><td>\n\nState Flow \\[sf\\_state\\_flow\\]\n\n</td><td>\n\nWhen a state flow is made active or inactive, ensure the business rule and UI actions are made active or inactive as well.\n\n</td></tr></tbody>\n</table>## Script includes installed with state flows\n\nScript includes are added with state flows.\n\n|Script include|Description|\n|--------------|-----------|\n|StateFlow|Implements state flows and supports creation of state flow elements, such as business rules, UI actions, dictionary overrides, and client scripts.|\n|StateFlowAJAX|Allows access to state flow functionality from client scripts.|\n\n"}}