Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

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.

FieldDescription
NumberAutomatically 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 stateName 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 stateName 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 scriptClient 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.
EventName of an existing event to trigger when this transition occurs. See evernts triggered on state changes for more information.
NameName 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.
RolesNot used for any processing.
ActiveEnables or disables this state flow record.
ClassDefines 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 overrideSets the starting value for the State field on all new records for the table named in the state flow record. See dictionary overrides for configuration procedures.
Work notesNoteworthy comments about this state flow transition. For details about how these notes are used, see Work Notes.
CommentDetails about the customized record.
Manual \(Runs scripts from a UI action that require the user to click a button or related link.\)
Manual condition stringConditions 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 conditionConditions 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 scriptScript 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 stringConditions 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 conditionConditions 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 scriptScript 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 ruleName 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 when a record transitions between states or reaches a specific end state.\)
Mandatory fieldsMakes the selected fields required when this transition occurs, or when the end state is the current state.
Read only fieldsPrevents the selected fields from being edited when this transition occurs, or when the end state is the current state.
Visible fieldsDisplays the selected fields when this transition occurs, or when the end state is the current state.
Not mandatoryMakes the selected fields optional when this transition occurs, or when the end state is the current state.
Not read onlyMakes the selected fields editable when this transition occurs, or when the end state is the current state.
Not visibleHides the selected fields when this transition occurs, or when the end state is the current state.
  1. Determine if you want the state transition method to be manual or automatic and open the appropriate section on the form.

    • Manual: Click Create UI Action to create a button on the task form that enables users to execute the transition manually. The system uses the value in the Name field as the label for the UI action. The UI action executes the script in the Manual Script field when the conditions are true. For example, a manual transition can create an Activate button when an incident is in the New state that enables a user to mark the incident as active.
    • Automatic: Click Create Business Rule to create the business rule. The business rule executes the script in the Automatic Script field when the conditions are true. For example, a business rule created by the system can set an incident state to Assigned when theAssigned to field is populated. Business rules are automatically deleted when the state flow record is deleted. For more information, see Business rules.
    • Click Create Client Script to create the script that limits the values offered in a task record's State field to valid states for that transition.
  2. Configure the fields in the Field Controls section to control how specific fields display when a task record changes states.

Parent Topic:Use state flows

Related topics

Use state flows