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
3 replies
Subscribers
6 subscribers
Views
2139 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Canceling all instances of a sub process
allenk
over 7 years ago
I have a process model, in which i launch a sub process with x number of instances, based on another data item.
In the parent process there is a user task (related action) in which a manager can move the process along without waiting on the sub process to have been completed
On the sub process node I added an exception to go to an End point (not a terminate, as the process still needs to finish), if the status of the process was changed by the manager above.
The issue i am having is that if there are 2 + instances of the sub process which haven't yet been completed only the first one goes to the end point, the second, third, ext, does not, they stay as they were. Is there a way for me to cancel all instances of the sub process rather than just the first instance.
Any thoughts.
OriginalPostID-231073
Discussion posts and replies are publicly visible
0
William Ruck
A Score Level 3
over 7 years ago
Would it be reasonable for the related action to message the all the subprocesses and tell them to terminate?
forum.appian.com/.../Process_to_Process_Message_Type.html
That way, you ensure that all the subs behave as you expect them to, and you don't have any lingering instances.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
danhn
over 7 years ago
How did you set up your exception in the subprocess? By having the subprocess waiting on a rule event with a boolean pv and setting up my parent process to use a send message node to update that pv in the subprocess i was able to successfully ended all instances of the subprocess.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
allenk
over 7 years ago
Thanks you two,
the exception was setup on the Sub-Process node itself within the main process. I was hoping to not have to modify the sub process itself, but it seems the process to process message may be the way to go.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel