Defining a workflow in the web client
A state transition model, commonly referred to as a workflow, defines the states that a work item can be in and the actions that users take to move the work item from one state to another. Typically, a state transition model starts with an open or submitted state and ends with a state that reflects the final disposition of the work item, such as Resolved or Closed.
Before you begin
For a description of the predefined process templates and associated workflows that are included with the Change and Configuration Management (CCM) application, see the Process Description page for a project area that is based on the template.
About this task
You can modify a workflow, create a workflow, or create a workflow that is based on an existing workflow.
- In the project's work item customization pages, open
the Workflows page. Attention: To avoid losing unsaved changes, do not use your browser's back and forward buttons to navigate among work item pages. If you leave the Workflows page to edit elements on another page, click the Workflows link in the Work Items page menu to continue editing.
- In the Choose the Workflow to edit section, click Add.
- In the Add Workflow dialog box, enter a name for the new workflow in
the ID field and click OK. By default, the Name field is populated with the same value that you enter in the ID field.
- Optional: In the Details section, You can edit the
Name field value and enter a description for the workflow.
Note: You must select a start action to save the workflow. However, you can select a start action for the workflow only after you add states and actions. Complete the following steps before you select a start action.
- Add a state:
Repeat this process to define all states in the workflow.
- In the States section, click Add.
- Enter a name and brief description for the state.
- Optional: Select a group that is appropriate
for the state. For example, the open group would be appropriate for the Submitted state. If none of the available state groups are appropriate, you can use the Eclipse client to modify an existing state group or to add a state group in the State Groups section of the Workflows page.Note: For work items in a state group that is mapped to the Closed category, summary information displays with strikethrough formatting in plans and on the Links tab of related work items.
- You can select one of the existing icons that is included with the process template. Alternatively, if you want an icon that is not in the list, click Browse and navigate to a graphics file to use as the icon.
- Click OK.
- To add an action, complete the following steps:
- In the Actions section, click Add.
- Enter a name and description for the action.
- Select a target state from the Target State list
- Optional: Select an icon for the target state.
- Click OK.
- In the Transitions section, a matrix illustrates the state
transition model. The row headings contain the From state, and the column headings contain the
Target state. The intersecting cells contain the actions that users take to move the work item from
the From state to the Target state. To add an action, complete the next steps.
Continue to add actions necessary to support your state transition model. At a minimum, provide actions to enable users to move the work item from its original state to its final state.
- Set the main workflow actions in the Details section:
- In the Start action field, select the action that is used to
place the work item in its initial state. Note: You must select a valid start action to save your changes to the project area.
- In the Resolve action field, select the action that is used to move the work item to a resolved state.
- In the Reopen action field, select the action that is used to reopen a work item that is in a resolved state.
- In the Start action field, select the action that is used to place the work item in its initial state.
- Add a resolution:
Repeat this process to define all resolutions in the workflow.
- In the Resolutions section, click Add.
- Enter a name and brief description for the manner in
which a work item can be resolved. For example, you might define resolutions such as Fixed, Fixed indirectly, and Not a bug.
- Select or add an icon for the resolution, then click OK.
Important: When defining workflow in IBM Engineering Workflow Management project area, you see the option Duplicate Resolution, with a list of values such as None, Fixed, Duplicate, and so on. If you use the Set Duplicate Of link action to indicate that a work item is a duplicate of another item, the state of the source work item is changed to Resolved, and its resolution is changed to Duplicate. If you use the Add Duplicated By link action to indicate that another work item is duplicate of the current item, the state and resolution fields of the target work item are changed to Resolved and Duplicate respectively.
- Click Save to save your changes.
- To associate a type category with the new workflow:
Attention: If you change the workflow association for a type category, all work item types that are associated with that category also adopt the new workflow.
- Click Types and Attributes in the Work Items page menu.
- Select a type that is associated with the type category for which you want to designate the new workflow.
- Select the new workflow, then click Save to save your changes.