Posted: 26 Mar 2019 5:51 EDT Last activity: 1 Apr 2019 3:10 EDT
not able to pass offers thru REST SERVICE rt-container
We want to migrate from our current version 6.3 to 8.1. We have installed Pega Marketing 8.1 on a DEV environment.
In the context dictionary the class hierachy is the following: hh ( top level) - not primary, Customer (primary) , Account, Subscriber. Every class is associated with the class below.
I have created a suporting decision object attached to a real-time container ( active). The supporting decision uses a strategy created at customer level. In this strategy i am using an embeded strategy shape to iterate over Customer.Account and access a substrategy at account level.
In the account strategy i only bring in 5 propositions. No other rules.
The purpose of this test is to present to a customer (who has at least 1 account) a list of propositions suitable for each subscriber attached to that account. For example ( customer X, has 2 accounts. Each of these 2 accounts have 1 subscriber ). I'd like to see at customer level : propositions for subscriber 1 on account 1, and propositions for subscriber 2 on account 2.
For the sake of simplicity at this point i don't bring in the subscriber strategy.
If i test Customer Strategy using a Data Transform every thing works fine. But if i run the REST Service with customer id and container name i get No offers available.
If supporting decision is not suitable for this , what else can I use?
Pega is used in our company as a backend engine and it sends offers to a front-end application. So, I need a webservice ( Soap or Rest) to request offers from Pega and also to send offers from Pega to the UI.
I need the multilevel context so I can target customers/ accounts and subscribers.