
チャレンジ
ユーザーへのワークのルーティング
4 タスク
15 分
シナリオ
MyTown 311アプリケーションでは、住民がサービスリクエストを提出できます。 市政の特定のメンバーが、サービスリクエストケースタイプでアサインメントを実行します。 サービスコーディネータは、ケース処理中にルーティングする必要がある3つのアサインメント、Schedule repair、Review repair、Perform repairを識別しました。 Schedule repairとReview repairのアサインメントは、地方自治体サービスコーディネータにルーティングする必要があります。 Perform repairのアサインメントは、報告された問題を担当している部門に基づいて、適切なオペレータにルーティングする必要があります。
サービスコーディネータは、Perform repairのアサインメントをルーティングする方法を決定する条件を列挙する以下の表を提供しています。
転送先 | 値 | フィールド | 比較演算子 | 値 |
---|---|---|---|---|
オペレータ | parksmgr@mytown | Assigned Department | 等しい | "Parks and Recreation" |
オペレータ | dpwmgr@mytown | Assigned Department | 等しい | "Public Works" |
オペレータ | trafficmgr@mytown | Assigned Department | 等しい | "Traffic Management" |
以下の表は、チャレンジに必要なログイン情報をまとめたものです。
ロール | ユーザー名 | パスワード |
---|---|---|
アプリケーションデベロッパー | author@mytown | pega123! |
チャレンジ ウォークスルー
詳細なタスク
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.
補足: 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.
補足: 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.
補足: 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.
補足: 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)
補足: 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.
下記のミッションにも含まれています。
トレーニングを受講中に何か問題がありましたら、こちらをご覧ください:
Pega Academy サポートのよくある質問 (FAQ) .