05-24-2018 08:26 AM
Hello,
I have created two processes namely "main process" and "child process".
In "main process" i am calling the "child process" using call activity sub process, my question is i want to start "child process" N number of times in "main process". How can i achieve this?
Here i have attached my app for reference.
Kindly anyone help me in this.
Regards
Amruta Wandakar
05-25-2018 10:27 AM
I've attached a modified version of your app here.
05-24-2018 01:51 PM
Is an ADF related question or is more APS/Activiti in general?
05-24-2018 01:56 PM
I have developed app in APS and using ADF as front end.
05-25-2018 05:30 AM
This seems to be more workflow related, how many is N ?
05-25-2018 06:08 AM
Hi Eugenio Romano, can't define N. the child process should able to start as many times user wants.
05-25-2018 07:09 AM
This is a question should be in process services bpm forum.
Activities can have properties that specify if they are multi-instances or single instance (default). Take a look on multi-instance properties here Call activity | Alfresco Documentation. You can use 'Cardinality' property to specify how many times the activity should be executed.
05-25-2018 08:05 AM
Thank you Bassam Al-Sarori for reply. I have tried this way multi-instances will allow me to choose Parallel or Sequential. If i use this features it will not allow me to create new process instance(means complete running "child process" and start again new "child process" in the "main process", this will allow to edit the already completed "child process"). The Cardinality property if i use i need to specify the number but in my case i don't want to stick to number it should be user based. The user should be able to start as many times he/she wants.
05-25-2018 10:26 AM
Using Sequential will allow you to start child processes only after the previous one completes. Cardinality can be an expression i.e. ${times} where that can be a form field or a process variable. Additionally, Completion Condition can be used to continue creating child processes until a condition is met.
05-25-2018 10:27 AM
05-28-2018 01:40 AM
Thank you the solution worked for me. Only thing is i need to specify the times is there any alternative way for this like instead of asking users to specify the "child process" times which you've provided.
Explore our Alfresco products with the links below. Use labels to filter content by product module.