json objectf rom javascript into external service

252 views
Skip to first unread message

irina....@gmail.com

unread,
Nov 21, 2016, 11:55:04 PM11/21/16
to Fujitsu RunMyProcess Developer Community
Hi,
My RMP login email is: irina....@au.fujitsu.com
I populate json object inside the javascript file in the web interface. I want to pass this json object to the external service, which I will use in the process trough the connector.
What is the best way to transfer json from the included javascript file into the input parameter of the task in a process?

Thanks,

Pankaj Kumar

unread,
Nov 22, 2016, 3:59:22 AM11/22/16
to Fujitsu RunMyProcess Developer Community
You can use the "setVariable" method to create/update  a variable in process instance parameter from web-interface.

Sample code:-

 var firstName = "John";
var lastName = "Smith";
var employee = {
    "firstName": firstName,
    "lastName": lastName 
}

RMPApplication.setVariable("emp_name", employee);


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/7918fbf5-efb3-4142-b7ed-227e1f1b9fe4%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

10580.PNG
Reply all
Reply to author
Forward
0 new messages