Skip to main content


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

Returning properties of an alternate SR class in a real-time container response

Updated on May 30, 2022

In order to add custom properties to the Container response for a supporting decision that uses an alternate strategy result class, do the following steps:

  1. In Dev Studio, create a property under the alternate SR class by using the Create property method.
    Note: Set the pyDecisioningItem custom field for this property to StrategyProperty.
  2. In Dev Studio, create a new data transform called pyDefaultWorkingSet in the alternate SR class.
  3. On the Definition tab of the data transform, select the check box Call superclass data transform.
    Enabling the Call superclass data transform option ensures that all properties defined in the built-in pyDefaultWorkingSet data transform are available. You do not need to define them again in your new data transform.
  4. Add any properties which you want to make available as output properties from Strategy in the generated data flows, as shown in the following example:
    An example configuration of the pyDefaultWorkingSet data transform
    1. In the first row, in the Action column, enter: Append and Map to
    2. In the first row, in the Target column, enter: defaultWorkingSetPage.pyWorkingSet
    3. In the second row, in the Action column, enter: Set
    4. In the second row, in the Target column, enter: .pyPropertyName
    5. In the second row, in the Source, enter the name of the property which you want to make available.
  5. On the Pages & Classes tab, enter the following information:
    1. In the Page name field, enter: defaultWorkingSetPage
    2. In the Class field, enter: Data-MO-DDF-DecisionStrategy
  6. Click Save.
  7. In Dev Studio, create a property under the Int-PegaCDH-Container class.
  8. Save the TransformSROutput Data Transform rule into your implementation ruleset.
    In the Apply to field, select the alternate SR class.
  9. On the Definition tab of the new TransformSROutput rule, map the property that you created in your alternate SR class.
    The following image shows an example configuration of the TransformSROutput data transform.
  10. Clear the Call superclass data transform check box.
  11. Save and check in your changes.
  • Previous topic Setting the custom property in a real-time container response
  • Next topic Modify Service Level Agreement settings for the Container service

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