Routing work to users
Archived
4 Tasks
15 mins
Scenario
The MyTown 311 application allows residents to submit service requests. Specific members of the city government perform assignments in the Service Request case type. The services coordinator has identified three assignments that must be routed during case processing: Schedule repair, Review repair, and Perform repair. The Schedule repair and Review repair assignments must be routed to the municipal services coordinator. The Perform repair assignment should be routed to the appropriate operator based on the department responsible for the reported issue.
The services coordinator provides the following table that lists the conditions that determine how to route the Perform repair assignment.
Route to | Value | Field | Comparator | Value |
---|---|---|---|---|
Operator | parksmgr@mytown | Assigned Department | is equal to | "Parks and Recreation" |
Operator | dpwmgr@mytown | Assigned Department | is equal to | "Public Works" |
Operator | trafficmgr@mytown | Assigned Department | is equal to | "Traffic Management" |
The following table provides the credentials you need to complete the challenge.
Role | User name | Password |
---|---|---|
Application Developer | author@mytown | pega123! |
Challenge Walkthrough
Detailed Tasks
1 Route an assignment to a specific user
- In the App Studio navigation pane, click Case types > Service Request to display the case life cycle.
- In the Service Request case life cycle, click the Schedule repair step to display the configuration pane on the right.
- On the General tab, from the Route to drop-down, select Specific user, and verify the drop-down-list that follows defaults to User name.
- In the field under User name, enter servicecoordinator@mytown to route the Schedule repair task to the specific user.
Note: Pressing the Down arrow in this field reveals the list of users available to work in the application.
- Click the Review repair step to display the configuration pane on the right.
- On the General tab, verify the Route to field defaults to Specific user, and the following field defaults to User name.
- In the field under User name, enter servicecoordinator@mytown to route the Review repair task to the specific user.
2 Create a text property and configure as a calculated field
- In the Service Request case type, click the Data model tab.
- Click Add field and verify the Type drop-down defaults to Text (single line) to create a new text property.
- In the Name field, enter Assigned Department.
- To the right, click the Gear icon to open the property configuration window.
- In the window, expand the Advanced section to display the advanced configuration options.
- In the Advanced section, select the This is a calculated field (read-only) check box to display a new Calculation field.
- In the Calculation field, enter .RequestType.Department to calculate the value of the Assigned department as the value of the .RequestType.Department field.
- Click OK to complete the property configuration. Assigned Department is displayed as a calculated, read-only text property.
3 Route the assignment using business logic
- Click the Workflow tab to return to the Service Request case life cycle.
- Click the Perform repair step to display the configuration pane on the right.
- On the General tab of the configuration pane, from the Route to drop-down, select Use business logic.
- To the right of the Route to drop-down, click the Gear icon to display the Business logic configuration window.
- In the configuration window, to the right of the circled 1 icon, verify that the Route to drop-down is set to Operator.
Note: The Route to drop-down defaults to Operator. For this exercise, verify the default persists for each condition.
- In the Value field, enter parksmgr@mytown as the operator.
- In the second row, from the Field drop-down, select Assigned Department and verify the Comparator drop-down to the right defaults to is equal to.
Note: For this exercise, the business logic remains as the default is equal to condition.
- To the left of the Select values link, in the Value field, enter Parks and Recreation to set the value to compare in the condition. The first condition is now set to route to parksmgr@mytown when the condition is true.
Note: You can include quotation marks when you enter the condition value; otherwise, the system adds quotation marks automatically. For example, if you enter Parks and Recreation, the system adds the quotation marks, as shown in the following image.
- Click Add Condition to set the conditions for the dpwmgr@mytown and trafficmgr@mytown operators.
- For each condition-operator pairing, repeat steps 5-8 to route the Perform repair assignment to the appropriate operator by using business logic.
Route to Value Field Comparator Value Operator dpwmgr@mytown Assigned Department is equal to "Public Works" Operator trafficmgr@mytown Assigned Department is equal to "Traffic Management" - Under Add condition, to the right of otherwise, verify the Route to drop-down is set to Operator.
- To the right of the Route to drop-down, in the Value field, enter servicecoordinator@mytown to set the operator for the otherwise condition.
- In the lower right of the Business logic window, click Submit to route work for the Perform repair step based on these conditions.
4 Confirm your work (section not graded)
Note: Run the case with every type of service request to verify that each assignment is routed correctly based on the configured conditions.
- In App Studio, in the Service Request case life cycle, click Save and run to run a new case.
- In the New: Service Request view, complete any required fields before advancing the case.
- In the Report problem view, from the Type drop-down, select Road debris.
- Click Continue to advance to the next view.
- In the Identify location view, in the Address field, enter the address of the issue location.
- In the Identify submitter view, click Continue to advance to the next view.
- In the Request update view, click Finish to advance to the next view.
- At the top, in the Service Request case navigation bar, click Actions > Schedule repair to display the Schedule repair view.
- To the right, under Open assignments, verify that the assignment is now routed to Municipal Services Coordinator.
- In the Due date calendar control, enter tomorrow’s date and click Submit to advance to the next step.
- Click Actions > Perform repair to display the Perform repair view.
- To the right, under Open assignments, verify the assignment is now routed to DPW Manager.
- Complete the required fields, and then click Submit to advance to the next view.
- Click Actions > Approval to display the Approval view.
- To the right, under Open assignments, verify the assignment is now routed to Municipal Services Coordinator.
- Click Approve to resolve the Service Request case.