How to retrieve variables created in process activity.

306 views
Skip to first unread message

travis....@teknion.com

unread,
Jul 7, 2016, 10:47:37 AM7/7/16
to Fujitsu RunMyProcess Developer Community
I've created a variable in a process activity but I am unable to retrieve the value in the next manual task web interface via Javascript.

I have tried; RMPApplication.get("varName"), id_text_widget.setValue("${varName}") <-- with and withouth quotes.
id_text_widget.setText("${varName}") <-- with and withouth quotes.
id_text_widget.setText([[varName]]) <-- with and withouth quotes.

If I set the initial value of a text box widget to ${varName} then I do get the value, but the value isn't being updated every time a user updates the process.

Any guidance would be greatly appreciated.

Thank you,

travis....@teknion.com

unread,
Jul 7, 2016, 10:53:59 AM7/7/16
to Fujitsu RunMyProcess Developer Community, travis....@teknion.com
Futher information on this issue,

I keep getting this error message: (see rmp_problem.JPG)


The value I am try to receive looks like this:

[["Test Account","Approved","2016-07-07"],["Roy LastName","pending",""],["Jeff LastName","pending",""]]

rmp_problem.JPG

Pray Desai

unread,
Jul 7, 2016, 5:15:31 PM7/7/16
to Fujitsu RunMyProcess Developer Community, travis....@teknion.com

Hi Travis,

I suggest you to create a hidden text input widget on the web interface (available in all screens but not visible) with the exact same variable name as your process variable. Then, you do not need to write a javascript to set its value again and no need to initialize it also. Then, you can retrieve it using RMPApplication.get("varName")

Regards,
Pray Desai,
Fujitsu RunMyProcess.

Travis Vliegen

unread,
Jul 8, 2016, 9:42:54 AM7/8/16
to Pray Desai, Fujitsu RunMyProcess Developer Community
Hey Pray, 

  Your solution worked for me.

Thank you, 

Travis Vliegen 
--
Travis Vliegen
Web Application Developer





Confidentiality Notice: This communication, including any attachments, may contain information that is confidential and privileged. [It may constitute non-public information and is intended to be conveyed only to the designated recipient(s).] If the reader or recipient of this communication is not the intended recipient, or you believe that you have received this communication in error, please notify us immediately by return e-mail and promptly delete this e-mail including any attachments without reading or saving them in any manner. Any other distribution, copying or disclosure is prohibited and may be unlawful. We accept no responsibility for changes made to this e-mail or to any attachments after transmission from our office. 
Reply all
Reply to author
Forward
0 new messages