Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
6 subscribers
Views
2554 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, I have a parent process with triggers "n" sub processes.
phanibabuk
over 9 years ago
Hi,
I have a parent process with triggers "n" sub processes.
I will not start the 2nd sub process until unless the 1st sub process is completed.
I will not start the 3rd sub process until unless the 2nd sub process is completed.
How can I achieve this?
Your inputs are appreciated!!!!
OriginalPostID-171535
OriginalPostID-171535
Discussion posts and replies are publicly visible
0
phanibabuk
over 9 years ago
I created a parent process with 2 sub processes.
Inside the 1st sub process, I had setup a delay of 5 mins to start the process.
Inside the main process after the control comes to the parent process I configured a boolean variable to true.
Finally before starting the 2nd sub process I was checking the boolean variable to start the 2nd process.
However, when I run the parent process, both sub processes run and complete.
How is the rule getting set to true even after setting a delay of 5 mins in the first sub process.
Any inputs please.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 9 years ago
I would just run the sub process output to an XOR which decides if any more sub processes should start, based on a variable which holds the count of processes completed vs the total count. Increment after each sub (or within) and loop until the total has been satisfied.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
narasimhaadityac
A Score Level 2
over 9 years ago
Hi Phani, if we have the child process initiation wait, then we can make the parent process call the child processes as synchronous so that it will make sure that it will wait for the child process to complete before triggering the second one.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shyam Bommakanti
Certified Lead Developer
over 9 years ago
Configure mni to wait until the previous instance completes. Explore the subprocess node properties other tab.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harrys
over 9 years ago
Assuming that the "n" subprocesses are the same, you can use Multiple Node Instances, run synchronously and one at a time, to accomplish what you're trying to do. See
bridgestreet.appiancloud.com/.../Multiple_Node_Instances.html
for more information on this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Khalil Ben Naceur
Appian Employee
over 9 years ago
Please review Chris and Narasimha's suggestions.
Additionally, are your processes running in series or in parallel? (i.e. are you using a gateway?)
To come back to the 5 minute rule, did you set the 5 minutes in the Scheduling tab of your subprocess, under "Scheduled Start"?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sanjays0006
over 9 years ago
@phanibabuk,
1)Do you want to run a single sub process for n number of times
2)you need to run multiple sub processes?
If you want to perform option 1, then look at the screen shot. "Run instances one at a time" option will make sure that sub processes will be executed sequentially one after the other
If it is option 2, then probably configure all your sub processes one after the other
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel