Return-Path: Delivered-To: apmail-ode-user-archive@www.apache.org Received: (qmail 53992 invoked from network); 9 Jul 2009 13:22:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Jul 2009 13:22:52 -0000 Received: (qmail 85302 invoked by uid 500); 9 Jul 2009 13:23:01 -0000 Delivered-To: apmail-ode-user-archive@ode.apache.org Received: (qmail 85256 invoked by uid 500); 9 Jul 2009 13:23:01 -0000 Mailing-List: contact user-help@ode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ode.apache.org Delivered-To: mailing list user@ode.apache.org Received: (qmail 85246 invoked by uid 99); 9 Jul 2009 13:23:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 13:23:01 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.55.86.93] (HELO smtp1.parasoft.com) (192.55.86.93) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2009 13:22:50 +0000 X-ASG-Debug-ID: 1247145696-16ed00000002-GQneGc X-Barracuda-URL: http://10.10.1.48:8000/cgi-bin/mark.cgi X-ASG-Whitelist: Sender Received: from dove2.parasoft.com (dove2.parasoft.com [10.10.1.53]) by smtp1.parasoft.com (Spam & Virus Firewall) with ESMTP id 066A02C72BD for ; Thu, 9 Jul 2009 06:22:26 -0700 (PDT) Received: from dove2.parasoft.com (dove2.parasoft.com [10.10.1.53]) by smtp1.parasoft.com with ESMTP id p1h7WnwsvRaJS3kg for ; Thu, 09 Jul 2009 06:22:26 -0700 (PDT) Received: from [10.10.32.74] (tanager.parasoft.com [10.10.32.74]) by dove2.parasoft.com (MOS 3.8.4-GA) with ESMTP id ATD28270 (AUTH wmccusker); Thu, 9 Jul 2009 06:22:26 -0700 (PDT) Message-ID: <4A55EF12.5060103@parasoft.com> Date: Thu, 09 Jul 2009 06:22:26 -0700 From: Bill McCusker Reply-To: user@ode.apache.org User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: user@ode.apache.org X-ASG-Orig-Subj: Re: Inline variable initialization in Ode 1.3.2 Subject: Re: Inline variable initialization in Ode 1.3.2 References: <4A551352.1080102@parasoft.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Barracuda-Connect: dove2.parasoft.com[10.10.1.53] X-Barracuda-Start-Time: 1247145749 X-Barracuda-Virus-Scanned: by Barracuda Spam & Virus Firewall at parasoft.com X-Virus-Checked: Checked by ClamAV on apache.org Hi Jonathan, An interesting bit was pointed out to me on the specification compliance page (http://ode.apache.org/ws-bpel-20-specification-compliance.html). It may just be old information but under activity there is a line stating "Inline assignment as part of the variable declaration isn't currently supported." I recall that at some point in time it was not supported but it would be nice to get this clarified: should inline initialization work? Bill McCusker Jonathan Coogan wrote: > Hi Bill. Good suggestion. Even when I echo the inline initialized > variable back to the response it does not work. I created a simpler > example that uses an initialized variable of type string. When I assign > to to the response I get an AssignmentFault saying that the variable is > uninitialized. > > ---------- Begin TestInlineInitialization2.wsdl ---------- > > targetNamespace="mynamespace" > xmlns:tns="mynamespace" > xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns="http://schemas.xmlsoap.org/wsdl/" > > > > > elementFormDefault="qualified" > targetNamespace="mynamespace" > xmlns="http://www.w3.org/2001/XMLSchema"> > > > > > > > > > > > > > > > > > > > > > > portType="tns:ServicePortType"/> > > > > transport="http://schemas.xmlsoap.org/soap/http" /> > > > > > > > > > > > > > binding="tns:ServiceBinding"> > location="http://[server]:[port]/processes/TestInlineInitialization2" /> > > > > ---------- End TestInlineInitialization2.wsdl ---------- > > > ---------- Begin TestInlineInitialization2.bpel ---------- > > expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" > name="TestInlineInitialization2" > queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0" > suppressJoinFailure="yes" targetNamespace="mynamespace" > > xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable" > > xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable" > xmlns:ode="http://www.apache.org/ode/type/extension" > xmlns:tns="mynamespace" xmlns:xs="http://www.w3.org/2001/XMLSchema"> > location="TestInlineInitialization2.wsdl" > namespace="mynamespace"/> > > partnerLinkType="tns:ServicePartnerLinkType"/> > > > > > > > Value > > > > > operation="process" partnerLink="client" > portType="tns:ServicePortType" variable="input"/> > > > > > > > partnerLink="client" portType="tns:ServicePortType" > variable="output"/> > > > ---------- Begin TestInlineInitialization2.bpel ---------- > > Here is the fault I get: > > INFO [ASSIGN]: Assignment Fault: > {http://docs.oasis-open.org/wsbpel/2.0/process/executable}uninitializedV > ariable,lineNo=30,faultExplanation=The variable StringVariable isn't > properly initialized. > >