
システムオブレコードへのデータ保存
Archived
3 タスク
10 分
初級
Pega Platform
データ統合
日本語
シナリオ
あるロードサイドアシスタンスサービスのプログラムマネージャーは、未加入のユーザーを自動的に拒否するのではなく、ユーザーがサービスを要請した際に加入できるオプションを提供したいと考えています。 顧客がロードサイドアシスタンスプログラムに加入することを決定した場合は、顧客レコードの会員ステータスを更新するために「Approval Rejection」プロセスを設定します。 データトランスフォームを作成して、顧客レコードを保存可能なデータページにコピーし、会員ステータスとカバレッジレベルを更新します。 次に、「Save data page」ステップを追加して、データベースの顧客レコードを更新します。
以下の表は、チャレンジに必要なログイン情報をまとめたものです。
ロール | オペレーター ID | パスワード |
---|---|---|
アプリケーションデベロッパー | author@gogoroad | pega123! |
チャレンジ ウォークスルー
詳細なタスク
1 Create an Update customer enrollment data transform
- In Dev Studio, from the Navigation pane, click Data types.
- Expand Customer and click Savable Customer to open the Savable Customer data page.
- In the Data Sources section, in the Response Data Transform field, enter UpdateCustomerEnrollment.
- To the right of the Response Data Transform field, click the crosshairs icon to open the Create Data Transform field.
- Click Create and open to create the data transform.
- Delete any existing rows.
- In the first row, keep the default Action value as Set.
- In the Target field, enter or select Primary.Enrollment.
ヒント: Use Primary to explicitly set the context for the step to the data page that called the data transform.
- In the Source field, enter or select true.
- Click Add a row.
- Keep the default Action value as Set.
- In the Target field, enter or select Primary.CoverageLevel.
- In the Source field, enter or select pyWorkPage.CoverageLevelElected.
- Click the Pages & Classes tab.
- In the Page name field, enter pyWorkPage.
- In the Class field, enter or select GoGo-GoGoRoad-Work-AssistanceRequest.
- Click Save to save the data transform.
- Return to the Savable Customer data page.
- Click Save to save the data page.
2 Add a Save data page automation to the Approval Rejection process
- From the Navigation pane, click Case types.
- Click Assistance Request to open the Assistance Request case type.
- In the Approval Rejection process, click Configure process.
- Click Add a flow shape > Automations > Save data page.
- With the Save data page automation selected, in the properties pane, enter or select D_CustomerSavable.
- In the Parameters section, in the pyGUID field, enter or select .CustomerID.pyGUID to pass the unique identifier for the current customer record to the savable data page.
- Click and drag the Collect enrollment information connector to the Save data page automation.
- Hover over the Save data page automation and drag the connector to the Change to a specific stage step.
- Click Save to save the Approval Rejection process.
- Click Stages & steps to return to the Assistance Request case type.
3 Confirm your work
- In the Navigation pane, click Data types.
- Click the Record icon to the right of Customer to open the records of the Customer data type.
- For testing, identify a Customer record that is unenrolled.
- Click the Assistance Request tab to return to the Assistance Request case type.
- Click Save and run.
- Advance past the Create view.
- In the Enter customer information view, select the Account ID of the unenrolled customer you identified.
- Advance the case to the Approval view.
- Click Reject. The Prompt for enrollment view is displayed.
- In the Prompt for enrollment view, click Yes, I want to enroll, then click Submit.
- In the Collect enrollment information view, select a coverage level, then click Submit.
- Click the GoGo-GoGoRoad-Data-Customer tab to return to the list of Customer records.
- Click Actions > Refresh to refresh the information.
- Verify the customer is enrolled with the coverage level you selected.