Hello, I am having a hard time trying to get this to work. I am passing a non-debatched message to the BRE via the Call Rules Shape in the orchestration. I want it to evaluate the ‘IF’ for a parent node and take action on child nodes. It seems like BRE is updating all child records to the first value.
For example, if I had this schema:
<Hdr id=123 cust=TTT >
<Addr loc=SS account=0 > </Addr>
<Addr loc=SM account=0 > </Addr>
<Order ID=1 count=3></Order>
</Hdr>
<Hdr id=124 cust=TTT >
<Addr loc=SS account=0 > </Addr>
<Addr loc=SM account=0 > </Addr>
<Order ID=2 count=5></Order>
</Hdr>
In the BRE, it looks something like this…
IF
AND
Hdr/cust = TTT
Addr/loc = SS
THEN
Hdr/Addr/account = GetPOAccountNum( Hdr/Order/ID )
The ‘GetPOAccountNum’ is a .NET class that looks up from SQL and returns the acct #
THE PROBLEM:
The results are the same and seem to match the first Hdr node. I suspect it’s because of the BRE pattern matching and updates all matching nodes in one call?? I don’t won’t to debatch the message – Any Ideas?
Thanks