get_history function

383 views
Skip to first unread message

ami...@masanalytics.com

unread,
Oct 29, 2015, 5:49:35 PM10/29/15
to Fujitsu RunMyProcess Developer Community
Hi, i have this subprocess and i want to save the history info in the parent process. I read a similar post, where someone explain that i need to use get_history function and pass it to my parent process in a variable. The thing is that dont know how and where to do this. In a JavaScript widget?

Thanks,

sagar....@flowian.com

unread,
Oct 30, 2015, 3:03:30 AM10/30/15
to Fujitsu RunMyProcess Developer Community, ami...@masanalytics.com
Hi ,

At the end of your sub-process,you need to first store the sub-process history in one of the sub-process variable. for eg

sub_process_history =${get_history()}


Then you can access this variable in the main process when your sub-process gets completed.

And using javascript you can use the details of the sub-process history in the main process.

To access the sub-process variables in your main process make sure that you have checked the option "Inject Results".

Regards,
Sagar

Augusto Miquel

unread,
Oct 30, 2015, 9:18:41 AM10/30/15
to sagar....@flowian.com, Fujitsu RunMyProcess Developer Community
Thanks sagar, 

I capture the histoy in my variable sub_process_history fine. Now, how can i append this history to a history widget in my parent process??

Thanks a lot.

Bidisha Das

unread,
Oct 31, 2015, 7:42:15 AM10/31/15
to suppor...@runmyprocess.com
Hi,
To access sub-process variables in the parent process,you must check "Inject results" for both parent and child process.


Thanks & Regards
Bidisha

Augusto Miquel

unread,
Oct 31, 2015, 8:01:11 AM10/31/15
to Fujitsu RunMyProcess Developer Community

Hi, yes but how i put that history stored in the variable on the history widget on the parent process???

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/AQbZemK7cBU/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAMGV9zvh1PJYBOHeiD00ShOBw4djHDctBmvNDg4TNWE0%2BUG9PQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Bidisha Das

unread,
Oct 31, 2015, 8:53:40 AM10/31/15
to suppor...@runmyprocess.com
Hi,
Append the sub-process variable value in a main-process variable each time the sub-process executes and use main-process variable to display in history widget. 

You can't append process variables with history widget directly.You will probably have to define the same main-process variable in Historized variable of history widget if you want to save its value in History widget.You can add a column in your history widget to display the historized variable and its value.This value will be updated each time the sub-process executes.





Thanks & Regards
Bidisha
Reply all
Reply to author
Forward
0 new messages