{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":15245,"path":"field-service-management/work-order-management/state-flow-cleanup.md","title":"State flow cleanup","bundle":null,"doc_type":null,"release":"australia","body":"\n# State flow cleanup\n\nThe business rules, client scripts, and UI actions that the system creates automatically to perform custom transitions exist only while the state flow records that use them are present.\n\nWhen a state flow on a table are deleted, the system attempts to delete any unnecessary programming elements that were created on that table, using these criteria:\n\n<table id=\"table_jv1_zh2_dbc\"><thead><tr><th>\n\nElement\n\n</th><th>\n\nDeleted When\n\n</th></tr></thead><tbody><tr><td>\n\nUI action\n\n Business rule\n\n Dictionary override\n\n</td><td>\n\nThe state flow that created it is deleted.\n\n</td></tr><tr><td>\n\nBusiness rule that processes events triggered by a state flow\n\n</td><td>\n\nAll state flows for the table specified that have events configured are deleted.\n\n</td></tr><tr><td>\n\nClient script \\(onLoad\\)\n\n</td><td>\n\nAll state flows for the table are deleted.\n\n</td></tr><tr><td>\n\nClient script \\(onChange\\)\n\n</td><td>\n\nAll state flows with field controls are deleted.\n\n</td></tr><tr><td>\n\nWork notes business rule\n\n</td><td>\n\nAll state flows with field controls or work notes are deleted.\n\n</td></tr></tbody>\n</table>"}}