Hi,
I searched for that without an idea: is there a functionality to start/call a (child or sub)- APG-process from inside an APG-process?
The challenge behind is: to have a 'batch' process (defined with recurrence) which runs a report (aris script) to select a list of models (say outdated or so) and the responsible managers (that's the easy part) and than loop over the list found and send mail and generate a task for them in the process board and the follow-up handling.
The only way to achieve this I think is, to have to processes and to start child processes (with the "follow up handling") from the 'main' process in the loop, because if I would loop in the main process over the email+task etc. itself in one process instance, the process will stop at every task and wait for finishing the task by the responsible (and the follow-up handling) until the next occurence in the loop. That would be nonsense and not praticable - and would last weeks or months.
Can anybody help with an idea which APG-functionality I can use?
Thanks for any response
Wolfgang
Tanguy Petre on
Hello Wolfang,
We have implemented a functionality in APG for a customer that when one process ends, we are triggering between 1-n processes (we called this fire new stream(s)). Those processes have then their own life based on a selection of models we have made in the original process...
I do not know if this is what you are looking for, but what we have done is our last task is an automated task linked to the report service and we use the property to pass the parameters (in our case model GUI) and then we use the Context.getComponent("Process").run("name of APG process I want to trigger","parameter") command to launch other APG executable process that will have their own life. As it is a report (and we have the context of the process), we can do some additional processing (such as specific sorting, version comparaison, ...) to then trigger multiple processes according to specific conditions on our original set of models.
So you could possibly continue with the previous process, and have your batch process triggered in parallel.
Hope it helps
Cheers
Tanguy