Defining a chain of approvals for tasks
A chain of approvals or chaining refers to a series of approvals. In chaining, an approval is run based on the outcome of a previous approval. Chaining is required when multiple approvers must approve a task. To create an approval chain in BMC Helix Business Workflows, a case business analyst can create a new approval process or reuse the default sample process that is provided in BMC Helix Innovation Studio. A case business analyst can configure chaining for both types of approval flow—level up approval and general approval.
A case business analyst must complete the following steps to configure a chain of approvals:
- Define a process for a flow group.
- In an approval flow, associate the process with an approval flow.
When the outcome of the process is achieved, the selected approval process is run.
Sample process for tasks
A sample process called Task - Sample Chaining Approval is provided out of the box to configure a chain of approvals. You cannot modify the sample process.
The following table lists the process variables in the sample process that are used in the approval process:
Process variable type | Process variable name | Variable ID | Description |
---|---|---|---|
Input | Task Record | 57000 | Current task record |
Approval Status | 57020 | Current status of the task | |
Output variable | Final Status | 57030 | Status that the task moves to |
To create a copy of the sample process
- Log in to BMC Helix Innovation Studio as a case business analyst, and navigate to the Workspace tab.
- Open Task Management Service.
- Click Processes.
- Select Task - Sample Chaining Approval, and click Copy.
In the new process, the process variables are automatically added. - From Palette, drag the Approval Process element to the canvas, and perform the following steps in Element Properties:
- Under Record, click Click to build an expression.
- In Edit Expression, from Process Variables, add Task Record, and click OK.
- In Flow Group Name, click Select.
- In Select From Approval Flows, select the flow group that you want the process to call, and click Use Selected Flow Group.
- (Optional) Use any other elements in the process based on how you want to configure the process.
The following image shows an example of adding an element in which the approval process triggers an approval from a different flow group.
Learn more information about elements in Process designer elements. - Click Save.
After the process is created, an administrator must associate it with an approval expression.
To create a new chain of approval process
If you do not want to use the default approval process, you can create a new process in BMC Helix Innovation Studio.
- Log in to BMC Helix Innovation Studio and navigate to the Workspace tab.
- Select Task Management Service.
- Click Processes.
- Click New.
In the new process, the process variables are automatically added. - Specify the Name of the process.
- Click Add/Remove Variables.
- Specify Task Record and Approval Status as the Input Variable.
- Specify Final Status as the Output Variable.
- From Palette, drag the Approval Process element to the canvas, and perform the following steps in Element Properties:
- Under Record, click Click to build an expression.
- In Edit Expression, from Process Variables, add Task Record, and click OK.
- In Flow Group Name, click Select.
- In Select From Approval Flows, select the flow group that you want the process to call, and click Use Selected Flow Group.
- (Optional) Use any other elements in the process based on how you want to configure the process.
Learn more information about elements in Process designer elements. - Provide the appropriate permissions for users.
- Save the process.
After the process is created, an administrator must associate it with an approval flow.
Associating the approval process with an approval flow
- Log in to BMC Helix Business Workflows as a case business analyst.
- Click Application Settings
.
The Settings page opens in a new browser tab. - Click Approvals > Approval Configuration.
- To open the default approval process, click com.bmc.dsm.task-lib:Task, or open the approval process that you created.
- Click Approval Flows, and select one of the following options:
- To use the default flow group, expand Default Task Approval Flow Group.
- To create a new approval group, click New Flow Group.
- Specify the Flow group name, and click Add.
- Click New general flow or New level up flow.
- If you choose to create a general flow, complete the following steps:
- Specify the Flow name.
- To build the Qualification, click Click to build an expression.
- Add the Foundation entities manually, and click OK.
- To add Approvers, click Edit.
- Select the approvers, and click Save.
- To add conditions for approvers, click Click to build an expression for Qualify approvers.
- If you select multiple approvers, select one of the options for If Multiple Approvers.
- Select the process to be invoked on approval, rejection, or error.
- If you choose to create a level up flow, complete the following steps:
- Specify the Flow name.
- Specify the No. of Levels and Qualification.
- For General Approval Flow, select the Approvers.
- To build the Qualification, click Click to build an expression.
- Add the Foundation entities manually, and click OK.
- To add conditions for approvers, click Click to build an expression for Qualify approvers.
- Select the process to be invoked on approval, rejection, or error.
- Click Save and Close.
Where to go from here
Mapping-task-status-to-approvals
Related topic