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
2900 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I am calling a subprocess multiple times parallely from main process using MNI f
subodhs
over 12 years ago
I am calling a subprocess multiple times parallely from main process using MNI for approval
I have configured an exception flow in this subprocess node.
I want to cancel all the pending subprocess instances when any one of the subprocess instance completes with a process variable value as "Reject"
Any help regarding this would be greatly appreciated......
OriginalPostID-57910
OriginalPostID-57910
Discussion posts and replies are publicly visible
0
Vicky
over 12 years ago
Within th subprocess(which you want to cancel), configure a rule, which triggers when pv!value="Reject". And connect this to the End Event, that terminates the process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subodhs
over 12 years ago
Thanks Vivek for the response...But the value "reject" came from another subprocess instance and got updated in main process. All subprocess instances were invoked at the same time. So, how will the pending subprocess instance get this value "reject"?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vicky
over 12 years ago
When configuring the subprocess node in Main process, pass the pv holding "Reject" value(in main process) as byreference to subprocess. i.e., pv!InSubProcess=byreference(pv!InMainProcess)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subodhs
over 12 years ago
Thanks a lot Vivek! The functionality is working fine as per your suggestion and the pending subprocess instances are getting terminated when status is updated to "Reject". However, subprocess node in the main flow (for which exception flow is configured to go back in case of "reject" by any subprocess instance) is going to the further tasks along with the rejection flow. Not able to figure out why this is happening...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vicky
over 12 years ago
Is there a specific purpose of configuring the exception flow? As you are now terminating the processes, within the subprocess itself. You don't actually need to configure the Exception flow.
After the Subprocess node, configure a gateway that checks for the rejection and then continue/end the main process as per the requirement.
If the sub process node is configured as synchronous, then the flow would move on when all the instances are completed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
subodhs
over 12 years ago
Thanks Vivek! I used this approach and now my functionality is working completely...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel