Step 2: Add the review stages

The next step is to add the State machine action to create the review stages. The State machine action splits the review process into several states. At each state, the document is sent to a reviewer or author who assesses the document, and their response determines whether the workflow progresses to the next state, returns to the previous state, or exits the review.

In this solution we split the review process into two states. One state for Team A and another state for Team B and we set the State machine to start from Team A. The workflow which is configured to start when a new document is added to the Document library, will start the review process from Team A and will execute the actions inside the Team A state first.

1

Add the State machine action and open the Action configuration window

  1. Click the Logic and Flow category in the action toolbox, select the State machine action and drag it to the designer canvas.
  2. Do one of the following to open the Action configuration window.

    • Double-click the action.
    • Click on the action and then click Configure.

2

Configure the State machine action to add review stages

  1. Under Enter the possible state for the this state machine do the following:

    1. In the State 1 field, type Team A.
    2. In the State 2 field, type Team B.
  2. In Choose the state that this state machine will start in field, select Team A.

  3. Click Save.
Note: 
  • You can update this workflow solution to create as many states in the review process as you need. Just add + Add state in the State machine configuration to add another state.
  • You'll notice the Set next state actions have been added to each state. We're going to delete them for now because we're going to add them to task-related actions instead. This will be explained in our step-by-step solution.
    • To delete an action, click on the action you want to delete and then click Delete.

For more information about the State machine action and how it's used, see State machine.

Follow along

This is what your workflow looks like at this point in the solution:

Next step:

Step 3: Assign task to Team A to review the document