Hi Alex, Did you have a time to take a look at my issue? Am I doing smth wrong or this is a bug?
regards jan -----Original Message----- From: Cwik, Jan [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 11:15 AM To: [email protected] Subject: RE: veryfing node existance Hi, Yes I checked and this matches the variable. I mean when I remove the if statement the copying is performed successfully. I am attaching the servicemix log file with ode DEBUGs turned on. However, I am unable to find any information about processing the if statements. The bpel:if processing shall be right after the copying of Version (bpel snippet below). <bpel:copy> <bpel:from>$TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/@Versio n</bpel:from> <bpel:to>$OTA_AirBookRequest.body/@Version</bpel:to> </bpel:copy> I'm also attaching the bpel script. regards jan -----Original Message----- From: Alex Boisvert [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 5:17 PM To: [email protected] Subject: Re: veryfing node existance Hi Jan, My guess is your expression "$TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:AirItinerary " doesn't match your variable content. Did you check that it matches what you expect? e.g. by doing an assignment when the data is there. If your message part is an element, a common mistake is to put the top-level element name in the expression. Have you tried "$TravelItineraryCreateRequest.body/xsd1:AirItinerary" ? Set the "org.apache.ode" category to DEBUG and check the logs to see what kind of data is returned from this expression. alex On 8/24/07, Cwik, Jan <[EMAIL PROTECTED]> wrote: > > > Hi, > > Sorry for late response but I wasn't able to verify it earlier. I have > used the ODE revision 569274. I removed <then> and tested both xpath's > exists and boolean. Unfortunatelly it didn't work for me, i.e. the copy > activity wasn't performed. > > <bpel:if> > > <bpel:condition > expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">bool > ean($TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:AirItiner > ary)</bpel:condition> > > <bpel:copy> > > <bpel:from>$TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:Ai > rItinerary</bpel:from> > > <bpel:to>$OTA_AirBookRequest.body/xsd1:AirItinerary</bpel:to> > </bpel:copy> > > </bpel:if> > > regards > jan > > -----Original Message----- > From: Alex Boisvert [mailto:[EMAIL PROTECTED] > Sent: Monday, August 20, 2007 11:26 PM > To: [email protected] > Subject: Re: veryfing node existance > > Hi Jan, > > The <then> element has been dropped in the final in BPEL 2.0 (c.f. > issue > 237), so the syntax of the <if> statement should be: > > <bpel:if> > <bpel:condition> ... <bpel:condition> > activity > </bpel:if> > > Looks like we need to update a few test cases that still use BPEL 2.0 > draft > syntax, so thanks for bringing this up! > > cheers, > alex > > On 8/20/07, Cwik, Jan <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I'm trying to do copying based on node existance. That is first I want > > to find out if > > > "$TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:AirItinerary > > " query returns any value. Then I want to copy it into the > > OTA_AirBookRequest. If I run it standalone (that is without bpel:if) > it > > works well. However, if I use bpel:if the copying is not performed. > > > > What am I doing wrong ? The following is the snippet that I tested. I > > tried with and without expressionLanguage, I tried also with and > without > > boolean, all combinations did not work. > > > > <bpel:if> > > <bpel:condition > > > expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0">bool > > > ean($TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:AirItiner > > ary)</bpel:condition> > > <bpel:then> > > <bpel:sequence> > > <bpel:assign> > > <bpel:copy> > > > > > <bpel:from>$TravelItineraryCreateRequest.body/xsd1:OTA_AirBookRQ/xsd1:Ai > > rItinerary</bpel:from> > > > > <bpel:to>$OTA_AirBookRequest.body/xsd1:AirItinerary</bpel:to> > > </bpel:copy> > > </bpel:assign> > > </bpel:sequence> > > </bpel:then> > > </bpel:if> > > > > best regards > > jan > > >
