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
6 replies
Subscribers
6 subscribers
Views
2229 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, In a sub process, which has parallel instances like for approval
sujithak
over 10 years ago
Hi,
In a sub process, which has parallel instances like for approval it goes to 5 users, currently what happens is until all the users provide their inputs then only it goes to the next task. Now the requirement is, if any 2 users approve it should go to the next task.
For that, in the sub-process "other" tab have selected Run all instances at the same time option and have provided condition "When ( ) instance(s) finish"
when I hard code a number directly in that condition it is working as expected, but if I use some logic it's not working. Whereas I need to write a logic inside that condition.
could you please suggest to make this work....
OriginalPostID-121954
OriginalPostID-121954
Discussion posts and replies are publicly visible
0
madhubindug
over 10 years ago
Any suggestions for this issue?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
What is your expression? If you continue to have trouble you could also continue to a rule when each instance finishes, collect paths and only let the rule complete when X amount of instances have finished (based on a count variable saved in the output tab), etc.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
madhubindug
over 10 years ago
We have used a rule expression for When _ instances finish, the rule return a integer output.I have tested the rule it is working as expected but when configured in the other tab, it is not the same. Please find attached screen shot of the same.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
Can you provide the expression, and rule? Note there is a bug identified for MNI sub process exception flows (AN-41986 - when exception is met, only the first instance fires), hopefully this is not related.
Does the same issue appear if you save the rule output to a Number (Integer) variable at a previous node in the process, and use that as the expression vs the call to the rule itself?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Chris
over 10 years ago
I was not able to reproduce your issue locally, and since it is working for you with a hard-coded integer the issue may lie in the expression/rule (type return possibly?)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
madhubindug
over 10 years ago
I have tested the rule and it is return a output of type Number (Integer). Yes I have tried the same, saving the output of the rule to a process variable and assigned the pv in output. Still it did not worked for me. But hardcoding a number is working.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel