JSON to process variable

128 views
Skip to first unread message

sagar....@flowian.com

unread,
May 29, 2015, 10:16:08 AM5/29/15
to suppor...@runmyprocess.com
Hi Team,

I am computing a json in process i/p variable with the help of following code
<@script env="javascript">
// Here I am computing one JSON object.

// Then I want to set that object to a process variable by using
// "setVariable("var", value)" function

</@script>

But since the "setVariable("var", value)" function only takes string value, I can't use this function directly.

I also tried to do by converting the JSON object to string using JSON.stringify() function, after converting into the string it works but in computed variable my process variable shows the value as empty.

Please suggest if you know how can I solve above problem.

Regards,
Sagar

Sweta Suman

unread,
May 30, 2015, 11:25:19 AM5/30/15
to suppor...@runmyprocess.com
Hi Sagar,

To display process variable value in console/computed parameter, write print(variable); in script.


Hope this helps you.




--
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...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://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/ce64d545-766e-4635-8321-2e9fe8d24349%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess Support
Reply all
Reply to author
Forward
0 new messages