--- title: Create a state flow description: Creating State Flows. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/servicenow-platform/t\_CreateAStateFlow.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 6 breadcrumb: [Use state flows, State flows, Exploring Service Administration, Service Administration, Manage service capabilities, Extend ServiceNow AI Platform capabilities] --- # Create a state flow Creating State Flows. ## Before you begin Role required: none ## Procedure 1. Navigate to **All** > **State Flows** > **State Flows** and click **New**. 2. Fill in the fields, as appropriate. The system enforces the field controls with the same client script that filters the choice list for the State field.
| Field | Description |
|---|---|
| Number | Automatically generated record number |
| Table | \[Required\] Table on which the state flow record runs. Only tables that extend the Task `[task]` table are available in the list. |
| Starting state | Name of the state at the beginning of the transition. The selections in this field are filtered by the possible states for the table selected. |
| Ending state | Name of the state at the end of the transition. The selections in this field are filtered by the possible states for the table selected. |
| Client script | Client script to run for this transition. The client script controls the available states you can select by limiting the contents of the State choice list to valid states. This client script also controls specific field behavior configured for state changes in the Field Controls section of the form. |
| Event | Name of an existing event to trigger when this transition occurs. See [evernts triggered on state changes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_StateFlows.md) for more information. |
| Name | Name of this record. Make sure the name is descriptive of the state transition or the processing that the record is performing. This name does not have to be unique. |
| Roles | Not used for any processing. |
| Active | Enables or disables this state flow record. |
| Class | Defines the state flow class for this record. The system selects the appropriate class from these options:- State Flow: Records created for state flows in all task-based tables except those in work management. - Work Order Flow: Records created for state flows in the Work Order `[wm_order]` table. This class is available when work management is activated. - Work Task Flow: Records created for state flows in the Work Order Task `[wm_task]` table. This class is available when work management is activated. |
| Dictionary override | Sets the starting value for the State field on all new records for the table named in the state flow record. See [dictionary overrides](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_StateFlows.md) for configuration procedures. |
| Work notes | Noteworthy comments about this state flow transition. For details about how these notes are used, see [Work Notes](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_WorkNotes.md). |
| Comment | Details about the customized record. |
| Manual \(Runs scripts from a UI action that require the user to click a button or related link.\) | |
| Manual condition string | Conditions for enabling a UI action that cannot be defined with the condition builder. For example, you can use this string to define UI actions for mobile devices. This condition has an \[and\] relationship with the condition in the Manual condition field. |
| Manual condition | Conditions for enabling a UI action that can be defined for fields in the target table. This condition has an \[and\] relationship with the condition in the Manual condition string field. |
| Manual script | Script that defines what the UI action does when the conditions are true. This script runs when the user clicks a button or a related link. |
| UI action | \[Read Only\] Name of the button that the system creates to enable this transition. The system creates the label using the same name as the state flow record that created it. |
| Automatic \(Runs a business rule automatically when a task record is changed and updated.\) | |
| Automatic condition string | Conditions for running the business rule that cannot be defined with the condition builder, such as evaluating if the proposed transition is a valid flow. This condition has an \[and\] relationship with the condition in the Automatic condition field. |
| Automatic condition | Conditions for running the business rule that can be defined for fields in the target table. This condition has an \[and\] relationship with the condition in the Automatic condition string field. |
| Automatic script | Script that performs additional work when the condition is true. This script can do tasks such as update the date and time the transition occurred or notify someone using email when a specific state change occurs. Automatic state transitions occur when changes are made to the task record. |
| Business rule | Name of the business rule created for this transition. Two conditions must be satisfied before this business rule can run. The task must be on a specific starting state, and the Automatic condition must be true. If both of these conditions are satisfied, the business rule performs the transition requested, using the starting and ending states from the State Flow form. |
| Field Controls \(Determines [field properties](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/c_StateFlows.md) when a record transitions between states or reaches a specific end state.\) | |
| Mandatory fields | Makes the selected fields required when this transition occurs, or when the end state is the current state. |
| Read only fields | Prevents the selected fields from being edited when this transition occurs, or when the end state is the current state. |
| Visible fields | Displays the selected fields when this transition occurs, or when the end state is the current state. |
| Not mandatory | Makes the selected fields optional when this transition occurs, or when the end state is the current state. |
| Not read only | Makes the selected fields editable when this transition occurs, or when the end state is the current state. |
| Not visible | Hides the selected fields when this transition occurs, or when the end state is the current state. |