Posted: 11 Aug 2015 1:09 EDT Last activity: 4 Oct 2018 11:08 EDT
JSON Data received in Pega. Need to parse them to create Cover
I have a requirement in which we shall be receiving the Payload in the form of JSON. We need to parse that so that we can have all the data that is received in clipboard so that we can create a cover and covered objects based on the parameters mentioned in the payload.
So far as I understand, we need to expose a RESTful service from Pega and have an activity to parse the data but I am not able to think through, how to parse the JSON data to get them in the clipboard.
Please help in this regard.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Thanks David for the help. But, is there any tutorial that gives us an idea how to receive the JSON Data in form of JSON payload and parse them so that we can see them in clipboard. I was unable to understand it from Pega API. If you could explain, it would be of great help.
If you need to directly get/put JSON to/from the clipboard you can look at using ClipboardPage methods available in the Engine API.
However, the best approach is to build out your application data model and case types. Then the Pega API will allow you to create cases, process assignments, etc. and handle all the JSON parsing for you.
ClipboardPage provides a common interface to PegaRULES pages. A page represents a collection of ClipboardProperty objects, along with informative messages and other descriptive information. Properties themselves can contain page values, allowing for the nesting of pages.