HTTP Connector - how to set multiple process variables?

613 views
Skip to first unread message

webcyberrob

unread,
Nov 22, 2015, 3:43:16 PM11/22/15
to camunda BPM users
Hi all,

I am trying to use the HTTP Rest connector to integrate to a simple web service. The integration works fine however I need to parse the response and break it into some component parts. Using some javascript, I found that there was no 'execution' variable defined and thus I was not able to do something like;

execution.setVariable('part1', a)
execution.setVariable('part2',b)

Hence when using connectors, whats the best way to parse a response into component parts - do I just return the entire response via the connector and parse it via a task delegate or handler?

Also just confirming hat here is no execution variable pre-define in connector script code?

regards

Rob

Sebastian Menski

unread,
Nov 23, 2015, 4:57:57 AM11/23/15
to camunda BPM users

webcyberrob

unread,
Nov 23, 2015, 12:33:51 PM11/23/15
to camunda BPM users
Thanks Sebastian

Works well!

regards

Rob
Reply all
Reply to author
Forward
0 new messages