use of logical existence functoid in map

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi

My input structure is something like this:

<ns0:SellingPrice>103.781</ns0:SellingPrice>
<ns0:SellingPrice>103.781</ns0:SellingPrice>
<ns0:SellingPrice>130.095</ns0:SellingPrice>
<ns0:Breakfast IsIncluded="y" IsForSell="y">
<ns0:Name>Continental Breakfast</ns0:Name>
<ns0:NetPrice>25</ns0:NetPrice>
<ns0:LocalNet>25</ns0:LocalNet>
<ns0:SellingPrice>25</ns0:SellingPrice>
</ns0:Breakfast>

My output structure is something like
<ns0:TotalSellingPrice>362.657</ns0:TotalSellingPrice>
(which is the sum of the ns0:SellingPrice plus the Breakfast\SellingPrice)

To implement that I use a cumulative sum in my map that i link to a sum
functoid which sum the Cumulative sum output with /breakfast/sellingprice.
The problem is that sometimes the <ns0:Breakfast> is missing so in that case
the sum returns empty.
To solve that problem I use an existence functoid linked to a value mapping
to condition the output through a value maping functoid. This works well.
The existence functoid is also linked to a "NOT" functoid so that when it's
false, the 'not' functoid will return true and a second value mapping
functoid should return the value returned by the cumulative sum alone. The
problem is that it never returns anything.

So it seems that Existence functoid linked to a 'not' functoid does not
work... is there anybody who ever tried this and found a work around? Or is
there something i do wrong?

Best regards,

Francois Malgreve.
www.malgreve.net


.



Relevant Pages

  • Re: use of logical existence functoid in map
    ... The logical existence functoid will return true if the NODE exists. ... To implement that I use a cumulative sum in my map that i link to a sum ...
    (microsoft.public.biztalk.general)
  • Re: use of logical existence functoid in map
    ... second map to filter out unecessary data. ... Functoid only returned True when the record exists but does not return False ... sum of the ns0:SellingPrice plus the Breakfast\SellingPrice) ... To solve that problem I use an existence functoid linked to a value ...
    (microsoft.public.biztalk.general)
  • RE: Cumulative Functoid question
    ... "Deepak" wrote: ... >>cumulative functoid is mapped to the value mapping ... >>cumulative sum. ...
    (microsoft.public.biztalk.general)
  • RE: Cumulative Functoid question
    ... The simplest way is to use a scripting functoid with inline XSLT to loop ... thru the record and sum the field with the correct value. ... | Thread-Topic: Cumulative Functoid question ...
    (microsoft.public.biztalk.general)
  • Re: use of logical existence functoid in map
    ... The logical functoid will only return 'true' if the element it is connected from exists! ... sum of the ns0:SellingPrice plus the Breakfast\SellingPrice) ... To implement that I use a cumulative sum in my map that i link to a ... To solve that problem I use an existence functoid linked to a value ...
    (microsoft.public.biztalk.general)