--- title: "Add Expected State" slug: "add-expected-state" updated: 2023-01-18T20:59:10Z published: 2023-01-18T20:59:11Z canonical: "documentation.decisions.com/add-expected-state" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Add Expected State | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 7.12.0 | | **Location** | Process | The **Add Expected State** step adds for a new state to a Process folder. This state can then be reached using the [Set State](/step-library/docs/set-state-steps) steps found under the same toolbox category. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Color | The color for the state as it will appear in the Process folder | DesignerColor | | State Name | The name of the state | Int32 | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1674075147697.png) --- ## Common Errors ### Missing Process Folder The step requires the use of a Process Folder within a Flow. If the following error is thrown, ensure that the Flow utilizes a Process Folder. #### Exception Message: ```cpp Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Add Expected State 1[AddExpectedState] in flow [Testing Flow]: Exception invoking method AddExpectedState on class InfrastructureStepMethods ---> DecisionsFramework.LoggedException: Exception invoking method AddExpectedState on class InfrastructureStepMethods ---> DecisionsFramework.LoggedException: Cannot use step on flows without a process folder at DecisionsFramework.Design.Flow.CoreSteps.InfrastructureStepMethods.AddExpectedState(String stateName, DesignerColor color) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` --- Related Information Articles: [Creating a Process Folder](https://documentation.decisions.com/docs/creating-a-process-folder) [Using Process Folders](https://documentation.decisions.com/docs/using-process-folders) Example Labs: [Add Comment to Process Folder](https://documentation.decisions.com/projects/docs/add-comment-to-process-folder) [Adding New Data To A Process](https://documentation.decisions.com/projects/docs/adding-new-data-to-a-process) [Using a Flow Step Trigger to Remove the Complete Comment in Process Folders](https://documentation.decisions.com/projects/docs/using-a-flow-step-trigger-to-remove-the-complete-comment-in-process-folders) [Adding Line Spaces in Process Folder Comments](https://documentation.decisions.com/projects/docs/adding-line-spaces-in-process-folder-comments) [Saving Data Repeater Items in a Process Folder](https://documentation.decisions.com/projects/docs/saving-data-repeater-items-in-a-process-folder) Forum Posts: [Stuck On Process Folders And Data](https://support.decisions.com/forum/topic2190-stuck-on-process-folders-and-data.aspx) [System Comments In Process Folders](https://support.decisions.com/forum/topic2605-system-comments-in-process-folders.aspx)