Hi Lorenzo - you could try this:
- Appian makes call to BP process A via WS
- Process A adds item to queue
- Process A starts Process B via command line interface
- Process A ends (and response is returned to Appian)
- Process B works item from queue
Or this:
- Appian starts process A via command line (also passing data as input parameters)
- Appian receives immediate confirmation that process has started
- Process A works case
The difficulty in both approaches is knowing which resource machine to use and what to do if the intended machine is already busy. A resource pool could help, but all pool members could be busy too. In the first example, process B could be started by scheduler and designed to keep waiting for items to appear in the queue, so process A would only need to add to the queue.
There are multiple options, but it depends on your use case and circumstances.
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
Original Message:
Sent: 10-23-2020 03:47
From: Lorenzo Tacconi
Subject: Start Process Asynchronously
Hello Zdenek,
thank you for your answer, This could be a great and simple solution, but I need the process start immediatly after Appian call. If I add an item to a work queue I need an active process that works the queue in order for the item to be worked, but in this case I can't be sure that this item is worked immediatly. More probably it would be worked after some time, but I don't want this.
Or maybe there is a way to make a work item to be worked immediatly that I don't know?
Lorenzo
------------------------------
Lorenzo Tacconi
Original Message:
Sent: 10-22-2020 14:26
From: Zdeněk Kabátek
Subject: Start Process Asynchronously
Hi, Lorenzo,
the solution should be "simple". With Appian just call Blue Prism VBO which creates a new item in a queue and return success (written into queue) or failure (not written to queue). Then independently/asynchronously BP process reads the queue if item is there it is processed at the end you can call Appian web service to pass the result. I don't know Appian so well but this would be asynchronous scenario which I would build.
Regards,
------------------------------
Zdeněk Kabátek
Head of Professional Services
NEOOPS
http://www.neoops.com/
Europe/Prague
Original Message:
Sent: 10-22-2020 06:43
From: Lorenzo Tacconi
Subject: Start Process Asynchronously
Hello! Is there a way to start a process in asynchronous mode? I'll explain my usecase. I need to start a BluePrism process from Appian. The problem is that the blueprism process takes a lot of minutes to complete and so if I expose it as a webservice and start it with Appian, after four minutes Appian throws a timeout error since blueprism will wait until the end of the process to respond to Appian. So I would like to create another blueprism process to expose as a webservice which can launch the long process and complete and respond to Appian without waiting the "child" process to complete.So this process should only launch in an asynchronous way another process and complete before the process which is launched completes.
Do you know if there is a way to do something like this with BluePrism?
Thank you.
------------------------------
Lorenzo Tacconi
------------------------------