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
7 subscribers
Views
2148 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
We are using MNI to spawn multiple instances of a process. Question, how can the
padmanabhanv
over 11 years ago
We are using MNI to spawn multiple instances of a process. Question, how can the parent process get the id's of the active sub processes.
Usecase - In certain scenarios, the sub processes have to be terminated by sending a message from the parent process....
OriginalPostID-103591
OriginalPostID-103591
Discussion posts and replies are publicly visible
Parents
0
Jason Ruvinsky
Certified Lead Developer
over 11 years ago
I would recommend instead passing a byreference() array of booleans (basically a list of flags, one for each instance you are kicking off) to the subprocesses. The sub-process can then have a rule event that triggers, and then terminates itself, if the flag is set. Without understanding your exact use case, you could determine a way to work with this framework. It would avoid the need to use a lot of process-to-process messaging. Since these processes are directly related, byreference values can be used instead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Jason Ruvinsky
Certified Lead Developer
over 11 years ago
I would recommend instead passing a byreference() array of booleans (basically a list of flags, one for each instance you are kicking off) to the subprocesses. The sub-process can then have a rule event that triggers, and then terminates itself, if the flag is set. Without understanding your exact use case, you could determine a way to work with this framework. It would avoid the need to use a lot of process-to-process messaging. Since these processes are directly related, byreference values can be used instead.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data