| JayRav 2005-10-28, 5:03 pm |
| Hi,
I am trying to implement the rules part of my company in Biztalk.
I have the following doubts in BizTalk Rule Engine:-
1. Suppose I have an XML as:
<XML>
<Price>0</Price>
<Items>
<Item>I1</Item>
<Item>I2</Item>
</Items>
</XML>
I created vocabulary facts for XML/Items/Item as Item and for XML/Price as
GetPrice and SetPrice for Get and Set actions
And I have 2 rules in policy as :
Rule 1 -> If Item = I1 then SetPrice as GetPrice + 10
Rule 2 -> If Item = I2 then SetPrice as GetPrice + 30
But, the Price node at end of rule execution is reflecting only the last
action not the sum of both the rule actions which would be 40. What should be
done? Assigning priority doesn't seem to work. As the result of least
priority rule is reflected..
2. If I have to call a policy from code using a number of data tables all in
the same database. Will I have to create dataconnection objects for each
table and pass these as objects? Since the database is the same is there
anyway this may be avoided?
3. Why must I use a fact retriever when I can pass them as objects in policy?
4. Suppose I am updating data to an output xml can I dynamically add nodes
to the XML? I tried passing the passing the xml by reference to a .Net
component. But, it only accepts ByVal.
5. When must I use a factcreator other than for testing policies in Business
Rule Composer?
Sorry , for the large number of questions but, I would really appreciate the
help.
Thanks a lot,
JayRav
|