|
Home > Archive > BizTalk Server General > February 2006 > BRE Policy execution
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
BRE Policy execution
|
|
| Jayendra 2006-02-26, 10:47 am |
| My Policy is having couple of rules:
Rule 1: Should update Ename by taking ENO from xml file
Rule2: Should use both ENO and Ename from Updated xml file after executing
rule1,to update the Salary field of xml file.
But Rule2 is executing by taking Orginal instance, not by using updated xml
file after Rule1 execution.
I hope it is taking same i/p instance for executing entire policy.
What i need to do,to use updated xml file for execution of rule2.
Hope you understand,Thanks.
-Jay
| |
| Randal van Splunteren 2006-02-26, 10:47 am |
| Hello Jayendra,
I think you should set a higher priority for rule1.
See properties window when rule 1 is active.
HTH,
Randal van Splunteren
http://biztalkia.blogspot.com
> My Policy is having couple of rules:
>
> Rule 1: Should update Ename by taking ENO from xml file
> Rule2: Should use both ENO and Ename from Updated xml file after
> executing
> rule1,to update the Salary field of xml file.
> But Rule2 is executing by taking Orginal instance, not by using
> updated xml
> file after Rule1 execution.
> I hope it is taking same i/p instance for executing entire policy.
> What i need to do,to use updated xml file for execution of rule2.
>
> Hope you understand,Thanks.
> -Jay
| |
| Jayendra 2006-02-26, 10:47 am |
| Thanks Randal,
Still it is not doing .Is there any otherway for commiting changes to file
after each rule execution.
"Randal van Splunteren" wrote:
> Hello Jayendra,
>
> I think you should set a higher priority for rule1.
> See properties window when rule 1 is active.
>
> HTH,
> Randal van Splunteren
> http://biztalkia.blogspot.com
>
>
>
>
| |
| Randal van Splunteren 2006-02-26, 10:47 am |
| Hello Jayendra,
Can you please post the relevant part of the schema, the (relevant part of
the) xml instance and the two rules?
Thanks,
Randal van Splunteren
http://biztalkia.blogspot.com
[vbcol=seagreen]
> Thanks Randal,
> Still it is not doing .Is there any otherway for commiting changes to
> file
> after each rule execution.
> "Randal van Splunteren" wrote:
>
| |
| Sandeep 2006-02-26, 10:47 am |
| Hi Jay,
Are you using forward chaning in your rules? you have to set forward
chaning Explicitly for the forward chaning to function. This will solve
the issue.
You don't need to necessarily increase the priority of Rule 1.
Remeber you have to Update teh parent node of the field you are
updating in the Action.
Thanks,
Sandeep Kesiraju
| |
| BTSWizard 2006-02-26, 10:47 am |
| Hi Jay,
Something to remember. According to Chris Date, and other experts, two
important ideas of rules are that they should 1) have no side-effects,
2) fire in any order. That is pretty hard to do sometimes, but it's a
good goal. It looks like from your original post that you are order
dependent. So to make that work you need to make sure the priority of
the rules his highest for the one that you want to fire first, set it
to 100 to force it to fire first.
HTH,
Curt Peterson
v-cupete@microsoft.com
|
|
|
|
|