Skip to main content


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

Setting the custom property in a real-time container response

Updated on October 19, 2020

After you add the new property to the Strategy Result class, ensure that it is returned as part of the Container service JSON response.

The Container service response structure can return two types of results: RankedResults, that is, the actual strategy results, and Actions, that is, the category or type of results. An example of an Action result is Make sales offer.
  1. In Dev Studio, create a property under the appropriate class.
    Tip: Int-PegaCDH-Container-Offer is usually the recommended class to use.
  2. Save the ExtendedContainerProperties Data Transform rule into your implementation ruleset.
    In the Apply to field, select the top-level SR class or the corresponding Issue or Group class.
  3. On the Definition tab of the new ExtendedContainerProperties rule, map the property that you created in the Int-PegaCDH-Container-Offer class to a property in your top-level SR class.
    1. Right-click row 2.2, and then click Add child, as shown in the following figure:
    2. In the new row, in the Action column, select Set.
    3. In the Target column, enter the property that you created in the Int-PegaCDH-Container-Offer class, for example, AccountType.
    4. In the Source column, enter the property that you created in your top-level SR class, for example, AccountType.
    5. Click Save.
  4. To extend the Action results that the container returns, do the following steps:
    1. In Dev Studio, create a property under the Int-PegaCDH-Container-Action class.
    2. On the Definition tab of the new ExtendedContainerProperties rule, right-click on row 2.1, and then click Add child.
    3. In the new row, in the Action column, select Set.
    4. In the Target column, enter the property that you created in the Int-PegaCDH-Container-Action class.
    5. In the Source column, enter the property that you created in your top-level SR class.
  5. If you previously associated the real-time container with any level of Next-Best-Action hierarchy, do the following steps to ensure that the configuration is updated:
    1. In App Studio, click Next-Best-ActionDesignerChannels.
    2. Click Edit.
    3. In the Triggers section, remove the real-time container association by clicking Configure, and then Remove.
    4. Click Apply.
    5. Click Save.
    6. In the Triggers section, restore the real-time container association by clicking Configure, and then Add.
    7. Click Apply.
    8. Click Save.
  • Previous topic Making custom Strategy Result properties available for real-time container data flows
  • Next topic Returning properties of an alternate SR class in a real-time container response

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