Dan,
To your first point, I don't know of any direct way to find status once it's kicked off. Indirectly, you can do so through the BP app server, Windows Event Logs, the audit/session logs, and other secondary sources.
There's no direct way to shut down a resource, but there are both primary and secondary ways to shut down a process. First, there's the "/requeststop" command line parameter for AutomateC which politely asks a process to die (the process has to be built to acknowledge the request). Similary, there are secondary ways - using a purpose-built process, for example - to update flag variables or queue items to put a different process into a finalized state and convince it to end gracefully.
At an extreme, you can always just use a Windows command line/power shell command to kill the proces.
The easiest way to pass a collection like that, honestly, may be to do something like pass JSON in as a single string and then parse it inside the process. I believe it's possible to pass in collections but it's a more complex XML structure, if I remember rightly. Take a look at how data is stored inside work queue items - I believe it's the same structure?
------------------------------
Robin Toll
Senior Technical Consultant
Blue Prism
Professional Services Americas
Infrastructure & Architecture Specialist
------------------------------
Original Message:
Sent: 08-17-2019 06:57
From: Dan Ternes
Subject: AutomateC.exe & Automate.exe via command line
Hi Everyone
I've got a couple of questions relating to invoking automate.exe and automatec.exe via the command line.
(a) If I attempt to start a BP runtime resource via CLI, the CLI doesn't return any output to indicate success or failure. All such information is written to the BP Resource PC window so my program is unable to tell if the "automate.exe /resourcepc ..." command has worked correctly. How have others handled this situation?
(b) Is there any way to shutdown a BP Runtime resource via CLI?
(c) I can trigger a process via "automatec.exe /run /startp ..." and can pass single instance data items via the "startp" xml string. I've not figured out how to pass in a collection however. Anyone know what the XML for that would be?
Thanks a lot.
Cheers
Dan
------------------------------
Dan Ternes
Blue Prism
Asia/Hong_Kong
------------------------------