Question
Westpac Banking Corporation
AU
Last activity: 17 Aug 2017 10:29 EDT
Invoke OpenSpan automation from an existing application
Hi,
How to invoke the automation from existing application.
ex: In the existing application when user clicks on submit button then the automation should call in that click event.
Once automation loaded on click of submit then I need capture the details from existing application and also from openspan windows form (new form where user will enter data i.e review / feedback form).
Is this possible to do in openspan? If, yes let me know the possible ways.
Please help me.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
You can create an adapter for this application and by using the MonitorAll StartMethod property, it will capture and inject into the application after the application has been started. Through this, you can then decide, through automations, what actions to take when a button is clicked (that you interrogated).
Pegasystems Inc.
US
You can interrogate the button from your application and use the Click (or Clicking) event to trigger your automation.
Westpac Banking Corporation
AU
Hi,
But I am not launching the application from OpenSpan automation. The application is launched by users and when he/she doing some transactions, then I need to display openspan windows form to enter feed back of the transaction. So, without launching the application from OpenSpan, if user clicks button in any screen/page should I run automation and capture the details.
Accepted Solution
Pegasystems Inc.
US
You can create an adapter for this application and by using the MonitorAll StartMethod property, it will capture and inject into the application after the application has been started. Through this, you can then decide, through automations, what actions to take when a button is clicked (that you interrogated).
Westpac Banking Corporation
AU
Hi,
MonitorAll property is working fine when I am opening that application URL alone, I mean if the browser is open with this url in the first tab and no other tabs.
Issue 1: If IE is already opened with some tabs and I am opening the configured url in new tab then automation is not identifying the click event.
Issue 2: Closed all IE instances and opened the configured URL (First tab) and working fine, if I open the same url in second tab then it is not working.
Is this expected behaviour? Please let me know the reason and how to rectify this issue.
Note: Application is launching manually only.
Pegasystems Inc.
US
You probably do not want to create a MonitorAll adapter for IE as Pega Robotics would then be injected into every instance of the application. In addition, IE re-uses a parent process, so the first process that gets started houses all others unless they are launched in a special way, which furthere complicates where things are launched to. I would suggest you offer to launch the application for them on startup rather than have them launch it manually. This way, you can control it.
Pegasystems Inc.
US
To use MonitorAll, you still need to make sure that Pega Robotics Runtime (OpenSpan.Runtime.exe) is running before your application is launched. If you are asking about calling an automation from within the code of another application, you can do that too. It is possible to web service enable and automation so that it can be called via a Web Service. Check out the "Service Enablement" section on the help website.
http://help.openspan.com/80/Service_Enablement/Service_Enablement_-_Overview.htm
Westpac Banking Corporation
AU
Hi Sasnt,
How to close the openspan runtime instance when start method is 'MonitorAll'. (I know by using Runtimehost.TerminateRuntime), but in my use case, automation will run manually by user on his/her desktop, so shall I terminate the runtime or not, if yes then what is the best way?
Pegasystems Inc.
US
I don't understand your question. To terminate runtime you call that method. The StartMethod property of the adapter has no bearing on how you would terminate runtime.