Routing work to users
Archived
3 Tasks
10 mins
Scenario
Specific members of the city government perform assignments on service request cases. The services coordinator identifies three assignments that must be routed during case processing: Schedule repair, Review repair, and Perform repair. The Schedule repair and Review repair assignments are routed to the municipal services coordinator. The Perform repair assignment is routed to the appropriate operator based on the department responsible for the reported issue.
The services coordinator provides the following table listing the conditions that determine how to route the Perform repair assignment.
Route to | Value | Field | Comparator | Value |
---|---|---|---|---|
Operator | parksmgr@mytown | Department | is equal to | "Parks and Recreation" |
Operator | dpwmgr@mytown | Department | is equal to | "Public Works" |
Operator | trafficmgr@mytown | 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 the Schedule repair and Review repair steps to a specified user
- In the navigation pane of App Studio, 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 of the configuration pane, in the Route to drop-down, select Specific user.
- In the drop-down under Specific user, verify that the value defaults to User name.
- In the field under User name, enter or select 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 that the Route to drop-down defaults to Specific user.
- In the drop-down under Specific user, verify that the value defaults to User name.
- In the field under User name, enter or select servicecoordinator@mytown to route the Review repair task to the specific user.
2 Route the Perform repair step using business logic
- Click the Perform repair step to display the configuration pane on the right.
- On the General tab of the configuration pane, in 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 window.
- In the Business logic window, to the right of the 1 label, verify that the Route to drop-down is set to Operator.
Note: The Route to drop-down defaults to Operator. For this exercise, verify that the default persists for each condition.
- In the Value field, enter or select parksmgr@mytown as the operator.
- In the second row, in the Select drop-down, select Fields > Request type > Department.
- In the Comparator drop-down, verify that the value defaults to is equal to.
Note: For this exercise, the business logic remains as the default is equal to condition.
- In the empty field to the right of the Comparator drop-down, 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.Tip: You can also click the Gear icon to choose from a list of existing values for the Department field. - Click Add Condition to set the conditions for the dpwmgr@mytown and trafficmgr@mytown operators.
- For each condition-operator pairing, repeat steps 4-8 to route the Perform repair assignment to the appropriate operator using business logic.
Route to Value Field Comparator Value Operator dpwmgr@mytown Department is equal to "Public Works" Operator trafficmgr@mytown Department is equal to "Traffic Management" - Under Add condition, to the right of otherwise, verify that the Route to drop-down is set to Operator.
- To the right of the Route to drop-down, in the Value field, enter or select 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.
- Click Save to complete configuration of routing for the case type.
3 Confirm your work (section not graded)
Note: Repeat the steps in this section for each type of request to verify that the Perform Repair assignment is routed according to the following table.
Request type | Department | Department manager | Initials |
---|---|---|---|
Park maintenance | Parks and Recreation | parksmgr@mytown | PM |
Pothole | Public Works | dpwmgr@mytown | DM |
Road debris | Public Works | dpwmgr@mytown | DM |
Traffic signal | Traffic Management | trafficmgr@mytown | TM |
- In App Studio, in the Service Request case life cycle, click Save and run to run a new case.
- In the Report problem view, in the Request type section, in the Type drop-down, select Road debris.
- Click Continue to advance to the next step.
- In the Identify location view, in the Address field, enter the address of the issue location if one is not provided automatically.
- Click Continue to advance to the next step.
- In the Identify submitter view, click Continue to advance to the next step.
- In the Request updates view, click Create to advance to the next step.
- In the To do section, verify that the case has advanced to the Schedule repair step and is routed to the Municipal Services Coordinator, as indicated by the initials MC.
Note: Pega Platform™ indicates the user to whom a task is routed by the use of an avatar. By default, the avatar for a user consists of the initials of that user.Tip: Click the avatar to display information about the assigned user, including the name of the user.
- Click Go to open the Schedule repair view.
- In the Due date calendar control, enter tomorrow’s date, and then click Submit to advance to the next step.
- In the To do section, verify that the case has advanced to the Perform repair step and is routed to the DPW Manager, as indicated by the initials DM.
- Click Go to open the Perform repair view.
- Complete the required fields, and then click Submit to advance to the next step.
- In the To do section, verify that the case has advanced to the Approve repair step and is routed to the Municipal Services Coordinator, as indicated by the initials MC.
- Click Go to display the Approve repair view.
- Click Approve to resolve the Service Request case.