A state is a step in the lifecycle of an object where the object flows from one state to the next. This transition is triggered by an event or operation. A State flow may be defined as the movement from the first step to the last that is triggered by specific events or actions. All these states, transitions, and actions happen to be finite as they can be defined by the user while storing the status of a job at any given time.
Sitecore Content Hub supports state flows for all types of content. This blog will list down the steps involved in implementing and using State flows. Additionally, there are also images associated with each step making it easier for you to follow and implement the entire process:
Navigate State Flow
To access the State flows management page:
- On the menu bar, click Manage.
- On the Manage page, click State flows:

Create a State Flow
To create a state flow:
- On the State flows page, click + State flow.

- In the State flow dialog box, configure the following properties:
|
Field |
Type |
Description |
Value |
Mandatory/Optional |
|
Target definition |
Drop-down list |
The target definition is to associate with the state flow. |
None / M.Project.Block / M. /M.PCM.Product / M.ContentCollection |
Mandatory |
|
Name |
Text box |
Name to display on the target definition detail page when selecting from a list of available state flows. Use a label that reflects the intent of the flow. |
String |
Mandatory |
|
Detail page |
Text box / Add button |
State flow assignees receive a notification if the content is ready for their input. This option adds a redirection link to a detail page within the notification. |
Multiple |
Optional |
|
Email template |
Text box / Add button |
State flow assignees receive an email if the content is ready for their input. This option lets you select a template for the email. |
Multiple |
Optional |

- To create the new state flow, click Save, as shown below:

Edit a State Flow
On the State flows page, click the state flow you want to edit.
How to Add a State
- On the state flow detail page, on the States tab, click + State.
- In the State dialog box, enter a name (mandatory) and a description (optional).
- In the Update assignees field, select an option from the drop-down list.
- Click Save. .


How to Edit a State
- On the state flow detail page, click the state name or click Edit.
- In the dialog box, make the necessary changes to the properties.
- Click Save.

How to Add a State Flow Transition
- On the state flow detail page, next to the state you want to modify, click Edit transitions.

- In the dialog box, click + Transition.

- In the Transition dialog box, configure the following properties:
|
Field |
Type |
Description |
Value |
Mandatory/Optional |
|
Name |
Text box |
The name of the transition. |
String |
Mandatory |
|
Description |
Text box |
The description of the transition. |
String |
Optional |
|
Icon |
Dialog box |
The icon you want to use for representing the transition. |
Icon image |
Mandatory |
|
Ask for confirmation |
Toggle switch |
Whether the user triggering the transition should get a confirmation message before executing the transition. |
Enable/Disable |
Optional |
|
Next state |
Text box / Add button |
The destination state of the transition. The origin state is the current state. |
Depends on the defined states in the state flow. |
Optional |
|
Redirection |
Code box |
Determines the page to redirect users to upon transition to the next state. |
Custom code |
Optional |
|
Index |
Text box |
Determines the ascending order of the state transition. The lower the index value, the earlier the transition is placed. |
Integer |
Optional |
- To confirm your changes, click Save.
How to Edit a State Flow Transition
- On the state flow detail page, next to the desired state, click Edit transition.
- In the dialog box, next to the desired transition, click Edit.
- In the dialog box, make the necessary changes to the properties.
- To confirm your changes, click Save.

Conclusion
With Sitecore Content Hub’s State Flow functionality, creating and designing digital logic within the overall content creation process is not only possible but also fairly simple, as has been showcased in the above-mentioned chronological process.
Reach out to us with any queries or concerns that you may have and be sure to receive consultation and implementation from our certified experts.