Question
Pega Robotics Studio 8: starting a windows application
When defining a Windows Adapter we have a choice of starting it when the adapter starts (StartMethod=Start) or not starting it and waiting for someone else to do so (StartMethod=MonitorAll). However, we would like to, on project start, check to see if it's started and link to it if so, or start it if it is not started. What is the best way to start an application? The Start method in the adapter starts the adapter, not the application, and I don't see a way to set the property StartMethod.
Of course we can write a script to start it, or create a Command Prompt adapter and call that to start it - but is there a way to start it by the adapter methods or another component?
**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.
Pega Robotics cannot integrate with an application that is running before the adapter is started. Using the StartMethod of MonitorAll, you can integrate applications as they start (by whatever means), so long as the adapter is started first. If you have the scenario where a user may start an application before launching Runtime, then you can use an automation like the one attached to determine if the process is running and potentially terminate it before you start your adapter.
If you use the StartMethod of MonitorAll, and you would like to launch the application, use the static method from the System assembly under the Process node named "Start".