Question
virtusa software service pvt.ltd
IN
Last activity: 10 May 2016 1:40 EDT
How to create rules based on JSON Content
Hello
How to create rules based on JSON Content,like rules generated by Connect-REST Wizard if we give sampleJSONResponse. In Connector Wizard, rules are generated by generateRulesFromMetadata() function in serviceutils but i need to create only DataModel rules(Paages/list/singlevalue properties).Can someone please tell how this function works if we give other pyGenerationPurpose or is there someother way to create rules.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
try adding these two key/values to the clipboard page passed as input parameter to generateRulesFromMetadata()
pyMetadataType, JSON
pyGenerationPurpose, DataModel
Updated: 24 Mar 2016 1:06 EDT
virtusa software service pvt.ltd
IN
yeah even i tried with that approach....Im getting error at the end "Canceling rule generation, Invalid state: finished, must invoke 'start' method before invoking setEstimates".Im getting this error only if i add sample responsejson file otherwise rest rule is created without any error.i think its expecting some other properties
virtusa software service pvt.ltd
IN
Can anyone know what are the param need to be passed when we gave pyGenerationPurpose=DataModel in RuleGenerationRequest page
Hi Poonkodi,
What you need to do is not supported OTB and it seems some of the tweaks we suggested haven't helped you either. Perhaps Jeff Houle can help.
Pegasystems Inc.
US
Hi,
What version of Pega are you using?
Could you capture the rule data (XML) for the request page where you are setting pyGenerationPurpose and post that on this forum? As Vipin suggests, you may be using generateRulesFromMetadata in a way that is causing problems. With your input data we can find out if the problem is on your side or ours.
virtusa software service pvt.ltd
IN
Im using PEGA 7.2
This is my request Page
Im using PEGA 7.2
This is my request Page
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
virtusa software service pvt.ltd
IN
Hello
Still im curious about how generateRulesFromMetadata function works.As of now i deleted the created rest rule after Wizard completion..
Thanks