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
7 replies
Subscribers
9 subscribers
Views
3169 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
I am sending a message to a Process(let us assume from ProcessA to ProcessB).
chetany
A Score Level 1
over 10 years ago
I am sending a message to a Process(let us assume from ProcessA to ProcessB).
I am using ProcessId of ProcessB in "Data" tab of Send Message Event so that the message will be targetted to ProcessB only.
This works always with admin user. No matter how many times I send a message to ProcessB, it works with admin user.
But, it does not work with basic user at all times. It works only for the first time.
On Monitoring the ProcessA, it shows that it sent the message, but in ProcessB, the message is not yet received.
Why does it work for the basic user only once? Does anyone have any idea?
You can also let me know the exact logs that I need to check, so that I can find why the message was not received in ProcessB.
OriginalPostID-146354
OriginalPostID-146354
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
1. Is the user part of the security role map of this process?
2. Is the "Allow anyone to fire triggers" checkbox enabled in this model?
3. Are there any conditions you have specified in the receive message event?
4. Is the Receive Message event configured to continue to listen for messages after one message is received? Do you remember how you set this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 10 years ago
Hi Eduardo, I had missed point 2.
I had not checked the "Allow anyone to fire triggers" checkbox.
I have checked it now and tested it out. It works with basic user also.
Thank you Eduardo.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 10 years ago
Hi Eduardo, A follow up question: The functionality I am trying to achieve can also be achieved by polling the DB at periodic intervals(using a!queryEntity() ) to check if the data has changed. My question is that: Would that be a better approach than send/receive message? Which option will have better performance? And which is a better design, send/receive message or polling the DB periodically?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
If it's too much data I'd stay with the messaging to reduce heap utilization. If not, then the query would perform faster.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 10 years ago
Thank you Eduardo
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
robbier
over 9 years ago
Just want to add my $0.02. I had the same issue and Eduardo's first point fixed things. Thanks!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shakilahd
over 9 years ago
Hi, I have an issue with receive message.
I have send message event in separate action and Receive message in main Process Model. (Its process to process) The problem is, I create two different process instances thru main action and then execute send message action for first instance, its receiving the message, additionally the second instance also (which is created after first instance) receiving the message. But its not affecting any instances that is created before first instances.
How to restrict this?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel