Tuesday, September 25, 2018

Use a Three-state workflow

Use a Three-state workflow

The Three-state workflow tracks the status of a list item through three states (phases). It can be used to manage business processes that require organizations to track a high volume of issues or items, such as customer support issues, sales leads, or project tasks. For example, the three states for a project task could be, Not Started, In Progress, and Finished.

In this article

How does the Three-state workflow work?

Set up a list to use with a Three-state workflow

Create an issue-tracking list

Create a custom list for use with a Three-state workflow

Customize a custom list for use with a Three-state workflow

Add a Three-state workflow to a list

Manually Start a Three-state workflow on an item

Complete a workflow task in a Three-state workflow

How does the Three-state workflow work?

The Three-state workflow supports business processes that require organizations to track the status of an issue or item through three states and two transitions between the states. With each transition between states, the workflow assigns a task to a person and sends that person an email alert about the task. When this task is completed, the workflow updates the status of the item and progresses to the next state. The Three-state workflow works with the Issue Tracking list template. However, it can be used with any list that is set up to contain a Choice column with three or more values. The values in this Choice column serve as the states that the workflow tracks.

A list can have more than one choice column and the choice column can have more than three values. However, the Three-state workflow can only be configured to use one of the choice columns and only three of the values in the selected choice column. When you add a Three-state workflow to a list or library, you select a choice column and three of the values provide by the column.

The Three-state workflow can be used to manage business processes that require organizations to track a high volume of issues or items, such as customer support issues, sales leads, or project tasks. For example, the employees at a small event planning company can use an issue-tracking list and a customized Three-state workflow to manage the many tasks related to events that they are planning. The workflow tracks the event-planning tasks through three states: Active, Ready for Review, and Complete. All of the event preparation tasks related to a specific event are compiled into an issue-tracking list that was created for that event and marked as Active. The event coordinator assigns individual tasks to her team members and then starts the workflow on these items to initiate work on the event task.

When the workflow starts, it creates a task for the designated person. When a team member receives a task, he or she performs the work that is required to complete the task. This may be work that occurs outside of the list or site where the issue-tracking list is located. For example, if a team member receives a workflow task to develop a catering plan, he or she contacts a catering company and then works with them to develop a plan. When the catering plan is drafted, the team member marks his or her workflow task as completed. At this point, the workflow updates the status of the event task in the issue-tracking list from Active to Ready for Review, and it creates a second task for the event coordinator to review the catering plan. After the event coordinator reviews and approves the catering plan, she marks her workflow task as complete, and the workflow updates the status of the task from Ready for Review to Complete.

Note:  A workflow participant can complete a workflow task in a Three-state workflow in two ways. A participant can edit the workflow task to mark it as complete, or a participant can change the status of the workflow item in the list (if the participant has permission to change this list). If a participant manually updates the status of the workflow item in the list, the workflow task is completed. If the participant edits the workflow task to mark it as complete, the status of the workflow item in the list is updated to Complete.

The actions in the Three-state workflow in the previous example use the following process:

Flow chart of example Three-state workflow

Top of Page

Set up a list to use with a Three-state workflow

Before you can use a Three-state workflow, you'll need to set up a list containing the items that you plan to track or manage with the workflow. The Issue Tracking list template works with the Three-state workflow. However, you can also create a custom list to use with these workflows. If you create a custom list, make sure that the list contains at least one Choice column that includes three or more choice values. When you set up your workflow for use with the list, specify the Choice column that contains the state values that the workflow will track.

Top of Page

Create an issue-tracking list

By default, you can use a Three-state workflow with any list that you create from the Issue Tracking list template.

  1. On the Settings menu Office 365 Settings button , click Add an app.

  2. In the Your Apps page, click Issue Tracking, and type a name for the list. The list name is required

  3. If you want to provide a description for the list, click Advanced Options.

    • In the Description box, type a description of the purpose of the list. The description is optional.

  4. Click Create.

Top of Page

Create a custom list for use with a Three-state workflow

If you want to create a custom list for use with a Three-state workflow, you must add at least one Choice column that contains at least three state values that the workflow will track.

  1. On the Settings menu Office 365 Settings button , click Add an app.

  2. In the Your Apps page, click Custom List, and type a name for the list. The list name is required.

  3. If you want to provide a description for the list click Advanced Options.

  4. In the Description box, type a description of the purpose of the list. The description is optional.

  5. Click Create.

Top of Page

Customize a custom list for use with a Three-state workflow

  1. Click the custom list that you created in the previous step.

  2. On the ribbon, click the List tab, and then in the Settings group, click List Settings.

  3. Under Columns, click Create Column.

  4. In the Name and Type section, under Column name, type the name of column that you want to use to specify the state values for the workflow. For example, you can enter the name as Workflow State.

  5. Under The type of information in this column is, select Choice (menu to choose from).

  6. In the Additional Column Settings section, under Description, type an optional description for the column.

  7. Under Require that this column contains information, click Yes.

  8. In the list box under Type each choice on a separate line, type three or more choice values that you want for this column. These values will become the states for the workflow. For example, you may enter Active, Ready for Review, and Complete as the three choices.

  9. Under Display choices using, select either Drop-Down Menu or Radio Buttons.

  10. Under Allow 'Fill-in' choices, click No.

  11. Specify whether you want a specific default value for this column or if you want to add it to the default view for the list.

  12. Click OK.

Top of Page

Add a Three-state workflow to a list

You must add a Three-state workflow to a list before you can use it on items in that list. When you add a Three-state workflow to a list, you specify which column in the list contains the state values that you want the workflow to track. You also specify information about what you want to occur at each stage of the workflow. For example, you can specify the subject and text for the email alerts that task recipients receive.

The Three-state workflow is enabled by default on most types of sites. However, a site collection administrator can disable the feature. If the Three-state workflow is not available, contact your site collection administrator.

Important:  You must have the Manage Lists permission to add a workflow to a list.

  1. Open the list to which you want to add a Three-state workflow.

  2. Click the List tab> List Settings, or click the settings for the type of library that you are opening. For example, in a document library, click Document Library Settings.

  3. Under Permissions and Management, click Workflow settings.

  4. On the Workflow Settings page, click Add a workflow.

  5. On the Add a Workflow page, in the Workflow section, under Select a workflow template, click Three-state.

  6. In the Name section, type a unique name for the workflow.

  7. In the Task List section, specify a task list to use with the workflow.

    Note: 

    • You can use the default Tasks list or you can create a new one. If you use the default Tasks list, workflow participants will be able to find and view their workflow tasks easily by using the My Tasks view of the Tasks list.

    • Create a new tasks list if the tasks for this workflow will reveal sensitive or confidential data that you want to keep separate from the general Tasks list.

    • Create a new tasks list if your organization will have many workflows or if workflows will involve many tasks. In this case, you might want to create tasks lists for each workflow.

  8. In the History List section, select a history list to use with this workflow. The history list displays all of the events that occur during each instance of the workflow.

    Note:  You can use the default History list or you can create a new one. If your organization will have many workflows, you might want to create a separate history list for each workflow.

  9. In the Start Options section, do either of the following:

    • If you want to allow the workflow to be started manually, select the Allow this workflow to be manually started by an authenticated user with Participate permissions check box. Select the Require Manage Lists permissions to start the workflow check box if you want to require additional permissions to start the workflow.

    • If you want the workflow to start automatically when new items are created, select the Start this workflow when a new item is created check box.

  10. Click Next.

  11. In the Workflow states section, under Select a 'Choice' field, select the Choice column from the list that contains the values that you want to use for the states in your workflow, and then select the column values that you want for the Initial state, Middle state, and Final state of the workflow.

  12. In the two sections Specify what you want to happen when a workflow is initiated (options for the first task in the workflow) and Specify what you want to happen when a workflow changes to its middle state (options for the second task in the workflow) specify the following information:

    Task Details

Field

Description

Task Title:

You can optionally modify the message title that will appear in the task when the workflow is initiated or reaches the middle state. If you select the Include list field check box, the field that you select is added to the end of the message.

Task Description:

Type any information that you want to include in the description of the task. If you select the Include list field check box, the field that you select is added to the end of the message. If you select the Insert link to List item check box, a link to the list item is included in the description.

Task Due Date:

If you want to specify a due date for the task, select the Include list field check box, and then select the date column from the list that contains the date information that you want to use for the due date.

Task Assigned To:

To assign the task to a person who is specified in the list, click Include list field, and then select the column from the list that contains the user information that you want to use. When this workflow is started, the first task is assigned to the person whose name appears in this column for the workflow item.

To assign this task in all instances of this workflow to a person that you specify, click Custom, and then type or select the name of the person to whom you want to assign the task.

  1. Select the Send e-mail message check box if you want the workflow participants to receive email alerts about their workflow tasks.

    Note:  If you want to make sure that workflow participants receive email alerts and reminders about their workflow tasks after workflows are started, contact your site collection administrator to verify that email is enabled for your site.

    E-mail Message Details

Field

Description

To

Type the name of the person to whom you want an email alert about the workflow task to be sent. Select the Include Task Assigned To check box if you want to send the email alert to the task owner.

Subject

Type the subject line that you want to use for the email alert. Select the Use Task Title check box if you want to add the Task title to the subject line of the email message.

Body

Type the information that you want to appear in the message body of the email alert. Select the Insert link to List item check box if you want to include a link to the list item in the message.

  1. Click OK.

Top of Page

Manually Start a Three-state workflow on an item

A Three-state workflow first must be added to a list to make it available for use on items in that list. See the previous sections for more information.

A Three-state workflow can be configured to start automatically when new items are added to a list, or it can be configured to allow users who have specific permissions to start the workflow manually. Some workflows could allow both options.

To manually start a Three-state workflow on a list item, follow these steps. You must have Edit Items permission for the list. Some workflows may require you to have the Manage Lists permission.

Note:  If you want to make sure that workflow participants receive email alerts and reminders about their workflow tasks after you start a workflow, contact your site collection administrator to verify that email is enabled for your site.

  1. Open the list that contains the item on which you want to start a Three-state workflow.

  2. Click the ellipsis next to the item on which you want to start a workflow, and in the menu that appears, click Workflows.

    Note:  The Workflows command is available only when the item is in a list or library that has at least one workflow associated with it.

  3. On the Settings menu Office 365 Settings button , click View All Site Content.

  4. Under Start a New Workflow, click the name of the Three-state workflow that you want to start.

    The workflow starts immediately.

Top of Page

Complete a workflow task in a Three-state workflow

To complete a workflow task in a Three-state workflow you must have at least the Edit Items permission for the tasks lists where the workflow tasks are recorded.

  1. Open the Tasks list for the site, and then select My Tasks on the View menu to locate your workflow task.

    Note:  If the workflow does not use the default site Tasks list, your workflow task may not appear in the Tasks list. To locate your workflow task, go to the list or library where the workflow item is saved. Point to the name of the item that you want to complete, click the arrow that appears, and then click Workflows. On the Workflow Status page, under Running Workflows, click the name of the workflow in which you are a participant. Under Tasks, click on the workflow task, and then skip to Step 3.

  2. Open the list that contains the item on which you want to mark as complete.

  3. Point to the name of the task that you want to complete, click the arrow that appears, and then click Edit Item.

  4. In the Tasks dialog box, type or select the information that is requested to complete the task and then click Save.

Top of Page

No comments:

Post a Comment