use of logical existence functoid in map
- From: "Francois Malgreve" <francois.malgreve@xxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Mar 2007 16:26:36 +0700
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
.
- Follow-Ups:
- Re: use of logical existence functoid in map
- From: Jim Dawson
- Re: use of logical existence functoid in map
- From: Randal van Splunteren
- Re: use of logical existence functoid in map
- Prev by Date: Re: Generating webservices from WSDL files
- Next by Date: RE: WSDL issues
- Previous by thread: Re: Conditional Statement with Null Value
- Next by thread: Re: use of logical existence functoid in map
- Index(es):
Relevant Pages
|