How to access computed parameter in javascript?

234 views
Skip to first unread message

tedd...@nana.com

unread,
Jun 8, 2015, 2:57:55 PM6/8/15
to suppor...@runmyprocess.com
Hi

I have a computed process parameter (aka input parameter) called "stage_name"
How do I access the value of this parameter in JavaScript in Web Interface?

Thanks!

Sushma Padidela

unread,
Jun 8, 2015, 3:29:05 PM6/8/15
to suppor...@runmyprocess.com
Hi Teddy,

You can access the process variable called "stage_name" in web interface JS by using below syntax:
RMPApplication.get("stage_name");

For more info you can read the below documentation.


Thanks,
Sushma
Fujitsu RunMyProcess





--
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/e12ec021-617b-431a-8862-544baf3facd7%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sushma
Fujitsu RunMyProcess

Sushma Padidela

unread,
Jun 8, 2015, 3:37:02 PM6/8/15
to suppor...@runmyprocess.com, Teddy Wu
Hi Teddy,

You can access the process variable called "stage_name" in web interface JS by using below syntax:
RMPApplication.get("stage_name");

For more info you can read the below documentation.


Thanks,
Sushma
Fujitsu RunMyProcess

tedd...@nana.com

unread,
Jun 8, 2015, 4:40:29 PM6/8/15
to suppor...@runmyprocess.com
Hi Sushma,

I must be doing something wrong... as that's what I orig thought, but it does not work for a few of my computed parameters.
I get NULLs

tedd...@nana.com

unread,
Jun 8, 2015, 4:56:57 PM6/8/15
to suppor...@runmyprocess.com, tedd...@nana.com
Additonally, by calling RMPApplication.getAllVariablesValues(), it looks like only the "initial parameters" are returned, and none of the "computed parameters"

Thanks!

Sushma Padidela

unread,
Jun 8, 2015, 5:03:37 PM6/8/15
to suppor...@runmyprocess.com, Teddy Wu
Hi Teddy,


The computed parameters can be accessible only after the launch screen i.e in later screens of the manual tasks after these variables are initialized. These variables are not available at the start. I guess you are trying to access them on the Launch screen. Please check.

Thanks,
Sushma
Fujitsu RunMyProcess

andre.fc....@gmail.com

unread,
Sep 11, 2015, 11:00:33 AM9/11/15
to Fujitsu RunMyProcess Developer Community, tedd...@nana.com
Hi Sushma,

I have the same problem, but in my situation, I am not in the first activity and I can't get the computed variables that are not associated with a widget. If I create a textInput (wtv), then it's all ok. Could you help?

Thanks
Reply all
Reply to author
Forward
0 new messages