Question
Bankofamerica
IN
Last activity: 16 Oct 2018 12:03 EDT
RuntimeHost.TerminateRuntime is not working
Hi Guys,
I want to close the application and OpenSpan Runtime.So i was using RuntimeHost.TerminateRuntime. But after update of pega Robotics studio 8.0,1056.0. RuntimeHost.TerminateRuntime is not working.
Please help me.
Thanks!!
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Accenture
DE
It was working in versions older to 1044 i believe... whenever we called that function runtime would automatically exit by itself... it is same functionality as right click on the runtimeicon in taskbar and click exit ( but through code)
Allied Solutions
US
You'll have to add an event block or some type of prerequisite logic to call the method. Judging from your screenshot, there is nothing happening in the automation page to trigger the method.
Accenture
DE
Even i am getting the same problem. i think its a bug. please raise an SR. i ma using 8.0.1058
Pegasystems Inc.
US
What was the previous version that you were on where it was working? Also can you explain what the behavior was before and after?
Accepted Solution
Accenture
DE
It was working in versions older to 1044 i believe... whenever we called that function runtime would automatically exit by itself... it is same functionality as right click on the runtimeicon in taskbar and click exit ( but through code)
-
Karthik Reddy Vangimalla
Pegasystems Inc.
US
Try making the link asynchronous - does that change the behavior?
I am still trying to understand what the behavior is, since you have said it is 'not working' ... does the automation continue afterwards? does runtime hang? does the automation just stop?
Bankofamerica
IN
@vegam
RuntimeHost.TerminateRutime - use this to unload the project and close openspan runtime
does the automation continue afterwards?
Ans: yes, automation continue afterwards, Only terminate runtime method is not working.
Accenture
DE
Pegasystems Inc.
US
Does making the link asynchronous change the behavior?
Accenture
DE
Hi Vegam,
Thanks for the response
Yes making it asynchronous does work. However it used to work with synchronous link also earlier.
-
Guangri Liang
Pegasystems Inc.
US
Ok great. I will make the team aware of this issue but in the meantime, the solution will be to make link asynchronous.
Bankofamerica
IN
sorry for the late response..
I don't know how to asynchronous the link. can u please help me with any diagram.
Westpac Banking Corporation
AU
Right click on the event link (yellow line) and click on asynchronous. Now, it is dotted line.
Bankofamerica
IN
Thanks Jayachandrak, it is working now.
Bank of America
IN
Hi Mitchell & Team,
I have attempted to use asynchronous option to terminate the process, but its still process is running. Could you please advise me on this