Configuring cascading approvals with an authority matrix
3 Tasks
10 mins
Scenario
As the repair service grows, GoGoRoad stakeholders want to allow Territory Managers to submit new vendors as service providers for approval. If the vendor is The Automobile Association (TAA), which has an existing relationship with GoGoRoad, the New vendor Case is routed to the Manager of the Territory Manager for approval. The Case is then routed to a Compliance Officer, who ensures the request adheres to the agreement between TAA and GoGoRoad. If the vendor is not TAA, the New vendor Case is routed to the Manager, and then the Director for approval. Create a Decision table to ensure the approval is routed appropriately. Add an Approval Step to the New vendor Case Type to support the described behavior.
The following table provides the credentials you need to complete the challenge.
Role | User name | Password |
---|---|---|
Application Developer | author@gogoroad | pega123! |
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.
Challenge Walkthrough
Detailed Tasks
1 Create the authority matrix data structure
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter author@gogoroad.
- In the Password field, enter pega123!.
- In the Dev Studio navigation pane, click Data types.
- In the Data types pane, click Options, and then Add data type.
- In the Add data type window, in the Label field, enter Vendor approvals.
- In the Description field, keep the default value as Vendor approvals, and then click Submit.
- In the Vendor approvals data type, click Add field.
- In the Field name field, enter Approver ID.
- In the Type list, keep the default value as Text (single line), and then click Submit.
- Click Save to save the Vendor approvals data type.
- In the navigation pane, click Case Types > New vendor to open the New vendor Case Type.
- Click the Data Model tab, and then click Add field.
- In the Field name field, enter Vendor approvals.
- In the Type list, select Embedded Data.
- In the Data object list, select Vendor approvals.
- In the Options field, select List of records.
- Click Submit to create the Vendor approvals data relationship.
- Click Save to save the changes to the New vendor Case Type Data Model.
2 Configure the Approve vendor Step
- In the New vendor Case Type, click the Workflow tab.
- In the Approval Process, click Step > Approve/Reject.
- Name the Step Approve vendor.
- Click and drag the Approve vendor Step to precede the Save Data Page Step.
- With the Approve vendor Step selected, on the General tab of the properties pane, in the Approval flow type list, select Cascading.
- In the Approval based on list, select Authority matrix.
- In the Page list property field, enter or select .VendorApprovals as the page list property to hold the list of approvers.
- In the Approver property field, enter or select .ApproverID as an element of the page list to identify each approver in the list.
- In the Decision table for matrix field, enter VendorApprovals as the Decision table that determines the Conditions for populating the page list.
- To the right of the Decision table for matrix field, click the Open icon to open and configure the Decision table.
3 Configure the VendorApprovals Decision table
- On the Create Decision Table form, click Create and open.
- Click the Results tab.
- In the Delegation options section, select the Evaluate all rows check box.
- Click the Table tab.
- In the Conditions column, click the first cell heading to display the Select a Property dialog box.
- In the Property field, enter or select .NewVendor.Name to specify the Condition property.
- In the Label field, enter Vendor name.
- Keep the default operator as =.
- Click Save to finish configuring the Condition.
- Under Actions, click the cell heading to specify the Condition property as .VendorApprovals(<APPEND>).ApproverID.
-
In the Label field, enter Vendor approvals.
- Keep the default operator as =.
- Click Save to finish configuring the Condition.
- Click an empty cell in the table, and then click the Insert Row after icon to insert two additional rows.
- Click each cell in the Decision table, and then enter the following values:
Vendor name Vendor approvals When "manager@gogoroad" When !=TAA "director@gogoroad" When TAA "complianceofficer@gogoroad" Otherwise "" - Click Save to save the Decision table.
- Return to the New Vendor Case Type, and then click Save to save the changes to the workflow.
Confirm your work
- On the New vendor Case Type, click Save and run to create a Case instance.
- In the Collect vendor information Step, in the Name field, enter TAA.
- Click Submit.
- In the To do section of the Case, to the right of Get Approval, click Go to display the first approval.
- In the Approval View, hover over the user icon to verify that the open Assignment is assigned to the Manager.
- Click Approve.
- In the To do section of the Case, to the right of Get Approval, click Go to display the second approval.
- In the Approval View, verify that the open Assignment is assigned to the Compliance Officer.
- Create a New vendor Case instance.
- In the Collect vendor information Step, in the Name field, enter Pega Towing.
- Click Submit.
- In the To do section of the Case, to the right of Get Approval, click Go to display the first approval.
- In the Approval View, verify that the open Assignment is assigned to the Manager.
- Click Approve.
- In the To do section of the Case, to the right of Get Approval, click Go to display the second approval.
- In the Approval View, verify that the open Assignment is assigned to the Director.
This Challenge is to practice what you learned in the following Module:
Available in the following mission:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?