Skip to main content

Configuring cascading approvals with an authority matrix

3 Tasks

10 mins

Visible to: All users
Beginner Pega Platform 8.7 Case Management English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

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.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create the authority matrix data structure

  1. In the Dev Studio navigation pane, click Data types.
  2. In the Data types pane, click Options, and then Add data type.
    Create new data type pane
  3. In the Add data type window, in the Label field, enter Vendor approvals.
  4. In the Description field, keep the default value as Vendor approvals, and then click Submit.
  5. In the Vendor approvals data type, click Add field.
  6. In the Field name field, enter Approver ID.
  7. In the Type list, keep the default value as Text (single line), and then click Submit.
  8. Click Save to save the Vendor approvals data type.
    Vendor data type
  9. In the navigation pane, click Case types > New vendor to open the New vendor case type.
  10. Click the Data model tab, and then click Add field.
  11. In the Field name field, enter Vendor approvals.
  12. In the Type list, select Embedded data.
  13. In the Data object list, select Vendor approvals
  14. In the Options field, select List of records.
  15. Click Submit to create the Vendor approvals data relationship.
  16. Click Save to save the changes to the New vendor case type data model.
    New vendor data model

2 Configure the Approve vendor step

  1. In the New vendor case type, click the Workflow tab. 
  2. In the Approval process, click Step > Approve/Reject.
  3. Name the step Approve vendor.
  4. Click and drag the Approve vendor step to precede the Save data page step.
    Approve vendor step in the Approval stage of the New Vendor case type
  5. With the Approve vendor step selected, on the General tab of the properties pane, in the Approval flow type list, select Cascading.
  6. In the Approval based on list, select Authority matrix.
  7. In the Page list property field, enter or select .VendorApprovals as the page list property to hold the list of approvers.
  8. In the Approver property field, enter or select .ApproverID as an element of the page list to identify each approver in the list.
  9. In the Decision table for matrix field, enter VendorApprovals as the decision table that determines the conditions for populating the page list.
  10. To the right of the Decision table for matrix field, click the Open icon to open and configure the decision table.
    Approve vendor

3 Configure the VendorApprovals decision table

  1. On the Create Decision Table form, click Create and open.
  2. Click the Results tab.
  3. In the Delegation options section, select the Evaluate all rows check box.
    Decision table Results tab with Evaluate all rows option selected
  4. Click the Table tab.
  5. In the Conditions column, click the first cell heading to display the Select a Property dialog box.
    First heading cell in the decision table
  6. In the Property field, enter or select .NewVendor.Name to specify the condition property.
  7. In the Label field, enter Vendor name.
  8. Keep the default operator as =.
  9. Click Save to finish configuring the condition.
    Select a condition for the condition heading in a decision table
  10. Under Actions, click the cell heading to specify the condition property as .VendorApprovals(<APPEND>).ApproverID.
  11. In the Label field, enter Vendor Approvals.

  12. Keep the default operator as =.
  13. Click Save to finish configuring the condition.
    Configuration of the Actions header in the Vendor Approvals decision table
  14. Click an empty cell in the table, and then click the Insert Row after icon to insert two additional rows.
    Insert row after button
  15. Click each cell in the decision table, and then enter the following values:
    Vendor approvals decision table configured
  16. Click Save to save the decision table.
  17. Return to the New vendor case type, and then click Save to save the changes to the workflow.

Confirm your work

  1. On the New vendor case type, click Save and run to create a case instance.
    1. In the Collect vendor information step, in the Name field, enter TAA.
    2. Click Submit.
    3. In the To do section of the case, to the right of Get Approval, click Go to display the first approval.
    4. In the Approval view, hover over the user icon to verify that the open assignment is assigned to the Manager.
      First approval routed to Manager
    5. Click Approve.
    6. In the To do section of the case, to the right of Get Approval, click Go to display the second approval.
    7. In the Approval view, verify that the open assignment is assigned to the Compliance Officer.
      Second approval routed to the Compliance Officer
  2. Create a New vendor case instance.
    1. In the Collect vendor information step, in the Name field, enter Pega Towing.
    2. Click Submit.
    3. In the To do section of the case, to the right of Get Approval, click Go to display the first approval.
    4. In the Approval view, verify that the open assignment is assigned to the Manager.
      First approval routed to Manager
    5. Click Approve.
    6. In the To do section of the case, to the right of Get Approval, click Go to display the second approval.
    7. In the Approval view, verify that the open assignment is assigned to the Director.
      Second approval routed to 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.

Did you find this content helpful?

100% found this content useful

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice