AnsweredAssumed Answered

REST Calls from Alfresco Process Editor in JSON format

Question asked by mark.frater@compass.net.nz on Jul 23, 2018
Latest reply on Jul 26, 2018 by mark.frater@compass.net.nz

I would like to create a REST call using the Alfresco Process Editor which needs to be in the following format:

https://addresscoverage-cd50.restdb.io/rest/addresssample?q={"STREET_NUMBER": ${streetnumber}}

 where ${streetnumber} is an input variable from a form in the model. e.g.

                https://addresscoverage-cd50.restdb.io/rest/addresssample?q={"STREET_NUMBER": 194}

This works fine in POSTMAN.(call also requires an x-apikey for auth in the header).

 

Is it possible to construct a URI in this form using the Alfresco Process Editor? 

 

Or can I edit the model XML to achieve the same thing ?e.g.

<activiti:string><![CDATA[https://addresscoverage-cd50.restdb.io/rest/addresssample]]></activiti:string>
<modeler:request-mapping xmlns:modeler="http://activiti.com/modeler" modeler:jsonPropertyName="q" modeler:jsonPropertyType=??? modeler:jsonPropertyValue=???

Outcomes