Pega Value List Array to JSON string
We have built a PRPC REST CONNECTOR – our Work Class contains a ‘Value List’ as one of the Property Types.
When we call the “Connect-REST” method on our REST CONNECTOR – we receive an error – no attempt is made by PRPC to connect to the REST endpoint.
Message The property ContextPage.Record.ITEMS(1) was of mode String while com.pega.pegarules.data.internal.clipboard.ClipboardPropertyImpl.getPageValue() was expecting Page mode. Details: (none)
Operator ID Admin@RCD
Requestor ID HE2420E4C9FB2F6CC53770E7B2E9EC7F9
Steps to Reproduce
The following steps demonstrate a minimal way to reproduce the issue:
Create two properties – one scalar of type ‘text’ (‘ID’ here) , the other should be of type ‘Value List’ (‘Items’ here).
Create a DATA TRANSFORM to populate the properties:
Test the Data Transform – it should result in a Page As followings:
Create a CONNECT REST rule – On the ‘Methods’ Tab – on one of the methods (‘POST’ used here) – specify ‘Map FROM’ as ‘JSON’ and ‘Map From Key’ to point to the outer-most property (‘.Record used here).
Create an ACTIVITY to call the CONNECT REST RULE:
Call the ACTIVITY: this will result in the error message:
The root cause of this problem is a defect in Pegasystems’ code/rules.
This issue does not occur in PRPC 7.1.7.
0% found this useful