Skip to main content

外部データソースのシミュレーション

4 タスク

10 分

Visible to: All users
初級 Pega Platform 8.4 データ統合 日本語
バージョンタグがご希望のコンテンツと一致しているかご確認ください。 または、最新バージョンをご利用ください。

シナリオ

ロードサイドアシスタンスのサービスプロバイダは、簡単な修理を行います。 ロードサイドアシスタンスのリクエストでは、サービスプロバイダがサービス依頼に対応できるように、車両を識別する必要があります。 たとえば、特定の車両には、平台牽引トラックやハイオク混合燃料が必要になる可能性があります。

サービスプロバイダが依頼に対応できるように、関係者はユーザーによって車両のメーカー、モデル、年式が適正な組み合わせでのみ入力されるようにしたいと考えています。 アプリケーションの初回リリースの一環として、車両モデルの一覧は外部システムから収集します。 外部ソースの構成とテストに先駆けて、関係者は車両の年式、メーカー、モデルの提供プロセスをシミュレーションしたいと考えています。

車両モデルデータのシミュレーションデータソースを構成して、「Identify vehicle」ビューを検証してください。 このビューのレイアウトと動作は、別のデベロッパーによって構成済みです。 データソースを備えた外部システムの構成とテストができるまでは、車両モデルのドロップダウンリスト用のデータソースをシミュレーションで作成したものを使います。

補足: この演習でビューをテストするには、車両モデルが2つあれば十分です。 モデルのリストは、年式とメーカーに基づいてフィルタリングします。

以下の表は、チャレンジに必要なログイン情報をまとめたものです。

ロール オペレーター ID パスワード
アプリケーションデベロッパー author@gogoroad pega123!

このチャレンジを完了するには、Pegaインスタンスを起動する必要があります。

起動には5分ほどかかることがありますので、しばらくお待ちください。

チャレンジ ウォークスルー

詳細なタスク

1 Simulate a data source to the data object

  1. In App Studio, click Data > Data objects and integrations to open the Data objects and integrations landing page.
  2. From the Data objects and integrations landing page, click the Vehicle Models data object to configure a simulated data source.
  3. Click the Data views tab.
  4. Click Create simulated sources to add a simulated data source to the data object. The Rule generation status dialog box is displayed.
  5. In the Rule generation status dialog box, click OK to acknowledge that a set of data views with simulated sources is successfully created. The updated Data views with simulated data sources are listed.
    Two data views with simulated data sources defined for a data object

2 Add simulated data to the data object

  1. In the Vehicle models data object, click the Records tab to add data records to the data object.
  2. Click Add record to add a row to the list of data records.
  3. In the empty row, in the Vehicle type field, enter Truck.
  4. In the Model field, enter Ridgeline.
  5. In the Make field, enter Honda.
  6. Repeat steps 2-5 to add a second record to the data object, using the information in the following table.
    Field Value
    Vehicle type Passenger car
    Model Accord
    Make Honda
  7. Click Save to complete the configuration of the simulated data source.
    Sample data defined for the simulated data source

3 Reference the simulated data source

  1. Click Preview application to return to the Case Manager portal.
  2. In the upper-left corner of the Case Manager, click New > Assistance Request to create a new case.
  3. Advance the case to the Identify vehicle step, entering information in any required fields.
  4. On the Identify vehicle form, position the pointer over the vehicle information fields to display the Configure this view icon.
  5. Click Configure this view to configure the view to access the simulated data source.
  6. Click the Model drop-down field to display the configuration pane for the view containing the drop-down control.
  7. Click the Model drop-down field again to display the configuration pane for the drop-down control, which contains the configuration options for the source of the list that populates the control.
  8. Under List source, from the Type drop-down list, select Data page to populate the drop-down by using one of the data views you configured. The configuration pane displays additional fields for configuring access to the data view.
  9. In the Data page field, enter or select D_VehiclemodelsList to access a list of the records from the simulated source.
  10. In the Property for value field, enter or select .Model to use the model name as the value of the field in the form. The Property for display text field automatically updates to reference the .Model property.
  11. Select the Group items check box to group the list items in the drop-down field. The configuration pane updates to display the Group by field.
  12. In the Group by field, enter or select .VehicleType to group the drop-down entries by vehicle type.
    Drop-down field configured to reference a data page containing simulated data
  13. Click Apply to complete the configuration of the Identify vehicle form.
  14. In the Dropdown configuration pane, click the Close icon.
  15. In the section configuration pane, click the Close icon.

4 Confirm your work

  1. In the Identify vehicle form, in the Model year field, enter 2015.
  2. In the Make field, enter Honda.
  3. Click the Model drop-down to display the entries defined for the simulated data source.
    Simulated data displayed to a user who clicks the Model drop-down


このモジュールは、下記のミッションにも含まれています。

If you are having problems with your training, please review the Pega Academy Support FAQs.

このコンテンツは役に立ちましたか?

改善できるところはありますか?

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