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
5 replies
Subscribers
9 subscribers
Views
2084 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I'm passing a small array of process IDs into a Send Message Event, wanting
stephens
over 10 years ago
I'm passing a small array of process IDs into a Send Message Event, wanting the event to fire for each process ID in the array.
However, the event only uses the first process id in the array.
What am I missing here?
OriginalPostID-147096
OriginalPostID-147096
Discussion posts and replies are publicly visible
0
mohanp
over 10 years ago
Hi Stephens, As far as I know, send message event executes only once. if you want it to execute for each process Id you need to keep it into a subprocess and this subprocess need to be called multiple times (i.e., one instance for each processId)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sagarl511
A Score Level 2
over 10 years ago
Is there any active receive message event with proper conditions available to catch the message in the list of process instance ids? Also can you please elaborate on way used to check if message is sent to only one process instance.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
David Williams
over 10 years ago
Where I have processes that do this I have the send message event in a sub process that is invoked for each instance in the array. I have recently seen this in the case management app recently released so assume it's best practice.
As for logging message events I have created a simple table in SQL server and write down before I send the message event and then update the table on receipt. Any incomplete records are then exceptions - you could relaunch from the table then if you needed to.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Vinod Bongoni
Certified Lead Developer
over 10 years ago
Hi Stephens, Can you please try to use 'pv' varaible in the brackets like "={pv!parentProcessIds}"? It might work!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
stephens
over 10 years ago
Placing the send message event in a sub process and calling multiple times worked.
Thanks to everyone who replied.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel