Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Assigning custom reports to simulation tests

Updated on August 4, 2022

You can create custom reports and assign them to simulation tests. By using this feature, you can adjust simulation reports to your business needs, for example, by configuring a report to show additional or more detailed data.

Important: This is an advanced task. Perform this task if your operator profile has access to Dev Studio, for example, you are a system architect.
Pega Customer Decision Hub
  1. Create an output that is the source for your report or use an existing output by performing the following actions:
    • To create an output, go to step 2.
    • To assign a report to an existing output, skip to step 3.
    Reports are based on outputs
  2. Create a new output for your simulation test by performing the following steps:
    1. In the Pega Customer Decision Hub portal, click Simulation Testing.
    2. Select a simulation test to assign it a new output by clicking ManageEdit in the Actions column, next to that simulation's ID.
      You can add outputs to simulation tests whose status is New or Completed.
    3. On the Edit Simulation Test screen, in the Assign output destinations section, click Create New.
    4. In the Create new output window, enter the name of your output, for example, MyDataTable, and select the output type, for example, Database Table.
    5. Click Done.
    A new output is created in your application together with a new class Data-Output_Name, for example, Data-MyDataTable.
  3. In Dev Studio, create a report definition.
    You must create a report definition in the same class as the output that you want to assign to this rule. For example, if you want to assign a report to MyDataTable that is in class Data-MyDataTable, you must create a report definition in the same class ( Data-MyDataTable ). For more information, see Creating advanced reports.
  4. Enable the report definition as a simulation report by performing the following actions:
    1. On the Report Definition form, click the Report Viewer tab to open it.
    2. In the Report header section, complete the Report title field.
    3. Create the report shortcut.
      For more information, see Creating a report shortcut.
  5. Configure the report definition to fetch data that is related to the target simulation test by performing the following actions:
    1. On the Report Definition form, click the Pages & Classes tab to open it.
    2. Click the Add item icon to create a page.
    3. In the Page name column, enter pyWorkPage.
    4. In the Class column, enter Pega-DM-Batch-Work.
  6. Add a filter condition so that the report definition fetches only the data that is related to target simulation test by performing the following steps:
    1. On the Report Definition form, click the Query tab to open it.
    2. In the Edit filters section, click Add filter.
    3. In the Column source field, enter .pyWorkID.
    4. In the Relationship drop-down, select Is equal.
    5. In the Value field, enter pyWorkPage.pyID.
    6. Make sure that Filter conditions to apply and Condition fields contain the same value, for example, A.
  7. Save the rule.
    The report is now available in Pega Customer Decision Hub to assign to an output that you created in step 2.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us