Bizrules guru!

Viewing 1 reply thread
  • Author
    Posts
    • #14151

      Hey I’m slowly becoming a business rules guru:) um please note I said ‘slowly’.
      Anyway I have another question. First here is my schema
      <file>
      <SupplierName>
      <SupplierAddress>
      <Invoice>
      <BuyerNameAndAddress>
      <SupplierAccountNumber>
      <TotalValue>
      <Line>
      <LineItem>
      <LineItemValue>
      <GSTValue>

      Now normally I would create a little math magic and say that a rule must exist to check if <TotalValue> = <LineItemValue> + <GSTValue> That’s easy enough. But what if there are 6 or 9 or 221 LineItems – then all LineItems + all GSTValues need to equal the single TotalValue and this is where I am stumped.

      Any help will be appreciated.
      Regards
      JMan

    • #14152

      It seems that I lost the indentation formatting in the original post (now I know why there is a ‘preview’ option)
      Anyway I cannot get the correct indentation to work 😳 so I have made parent nodes in Bold I hope this helps…

      [b:3fcd4c1932]<file>[/b:3fcd4c1932]
      <SupplierName>
      <SupplierAddress>
      [b:3fcd4c1932]<Invoice>[/b:3fcd4c1932]
      <BuyerNameAndAddress>
      <SupplierAccountNumber>
      <TotalValue>
      [b:3fcd4c1932]<Line>[/b:3fcd4c1932]
      <LineItem>
      <LineItemValue>
      <GSTValue>

      Cheers
      JMan

      • #14153

        I’m not really understand your problem (going to read it again), but for indentation use the \”[code] [\\code]\” tags, without the quotes!

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.