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
8 subscribers
Views
2189 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I have a MySQL table called Product which has columns id, orderDate and received
paule
over 10 years ago
I have a MySQL table called Product which has columns id, orderDate and receivedDate (plus others). OrderDate gets set within the main flow, which then needs to pause until the product has been received - ie receivedDate is not null.
The receivedDate gets set by a Related Action.
How can I get my main flow to detect that receivedDate has been set, and then continue?
I tried creating a rule called 'IsProductReceived' that contains a queryEntity to return true if the receivedDate is not null, otherwise returns false. This works as expected when I test it in isolation.
I put this rule into the expression of a Rule Event. When I execute the Rule Event, I get an error "ERROR:EVAL:@reason=index".
Am I attempting to do this in the right way and have some error in my rule, or am I using the wrong method to do this?
OriginalPostID-147702
OriginalPostID-147702
Discussion posts and replies are publicly visible
Parents
0
Amitkumar
over 10 years ago
Additionally, you have to store process instance id to send the message to the intended process instance. You can also think over using Set PV smart service to set the value of process variable ‘isProductReceived’ to true. Set pv smart service can be called when related action is submitted and received date value is written to database.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Amitkumar
over 10 years ago
Additionally, you have to store process instance id to send the message to the intended process instance. You can also think over using Set PV smart service to set the value of process variable ‘isProductReceived’ to true. Set pv smart service can be called when related action is submitted and received date value is written to database.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data