Monday, April 16, 2012 5:25 AM
I am wondering how the priority works with rules with similar conditions, e.g.
Conditions:(Credit=1 or -1) and (Status=0) and (Tier=30)
Actions:(Set message="welcome") and (door open=true) and (Credit=1)
Conditions:(Credit=-1) and (Balance>100)
Actions:(Set code="Open") and (Credit=1)
What happens the original message matches both rules' conditions? Would rule 1 be applied to message first, then the updated message will be validated by Rule 2? or it will use the original message to validate all the rules?
Monday, April 16, 2012 5:53 AM
Rules with higher priority are executed first. So in the case of your example Rule 2 will be executed first. Check this blog post for a good explaination.
MCTS: BizTalk Server 2010,BizTalk Server 2006 and WCF
Mark As Answer or Vote As Helpful if this helps.
Monday, April 16, 2012 6:29 AM
Rules with higher priority are executed first in case if conditions match for both of them. When rules have same priority and condition matches any rule can be executed. Hence setting the priority is very important in case of probablities of multiple rules matching the condition.
Please refer to articles below,
Also i would suggest you to have a look at the BizTalk Server Business Rule Engine: Survival Guide for help during your development.
Thanks With Regards,
MCTS BizTalk Server
Please Mark This As Answer If This Helps You.