Invoke OpenSpan automation from an existing application
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.
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.
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).
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.
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.
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?