You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by nileshlr <Ni...@3dplmsoftware.com> on 2007/12/17 11:28:36 UTC

facing Problem with array implimentation in ODE

Hello,

I wanted to have following Request from ODE.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eng="http://engineering.cbp.jpo"> 
   <soapenv:Header/> 
   <soapenv:Body> 
      <eng:setAttribute> 
         <eng:in0>60000.336.8624.26994</eng:in0> 
         <!--1 or more repetitions:--> 
         <eng:in1>Instance ID</eng:in1> 
         <eng:in1>Process Instance ID</eng:in1> 
         <!--1 or more repetitions:--> 
         <eng:in2>61750</eng:in2> 
         <eng:in2>{http://eclipse.org/bpel/sample}ECRProcess-243</eng:in2> 
      </eng:setAttribute> 
   </soapenv:Body> 
</soapenv:Envelope> 

I was not able to get this output in ODE request (array):-
<!--1 or more repetitions:--> 
<eng:in1>Instance ID</eng:in1> 
<eng:in1>Process Instance ID</eng:in1> 

I tried using doXslTransform but not able to get above required output as it
required atleast one root element.

Following are my part BPEL file:-

<!-- Set PID to in0 -->
<copy>
    <from>
	<literal>
		<tns1:setAttribute>
                   <tns1:in0/> 
                   <tns1:in1/> 
                   <tns1:in2/> 
	        </tns1:setAttribute>
	</literal>
    </from>
<to>$CBPWorkflowPartnerLinkRequest.parameters</to>
</copy>
<!-- Set CBPWorkflowOID from CreateECRPartnerLinkResponse -->
<copy>
<from part="createBusReturn" variable="CreateECRPartnerLinkResponse">
</from>
<to variable="CBPWorkflowOID"/>
</copy>
<copy>
<from variable="CBPWorkflowOID" />
<to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
<query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in0]]></query>
</to>
</copy>
<!-- Set literal "Instance ID" to in1 -->
<copy>
    <from>
	<![CDATA["Instance ID"]]></from>
<to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
<query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in1]]></query>
</to>
</copy>
<!-- Set value of $instance-info.iid to in2 -->
<copy>
<from part="instance-info" variable="getInstanceInfoOutput">
<query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/typ:iid]]></query>
</from>
<to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
<query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in2]]></query> 
</to>
</copy>
         
my bpel process work properly for single value but I need to use array in
it.as I said early.

Following request working properly but not first one which adds array in it.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:eng="http://engineering.cbp.jpo"> 
   <soapenv:Header/> 
   <soapenv:Body> 
      <eng:setAttribute> 
         <eng:in0>60000.336.8624.26994</eng:in0> 
         <eng:in1>Instance ID</eng:in1> 
         <eng:in2>61750</eng:in2> 
      </eng:setAttribute> 
   </soapenv:Body> 
</soapenv:Envelope> 
Please help me in finding appropriate solution.
thanks in advance.

>From 
Nilesh Rane
-- 
View this message in context: http://www.nabble.com/facing-Problem-with-array-implimentation-in-ODE-tp14370206p14370206.html
Sent from the Apache Ode User mailing list archive at Nabble.com.


Re: facing Problem with array implimentation in ODE

Posted by nileshlr <Ni...@3dplmsoftware.com>.
Hi,

Issue solved.I used doXSLtransform() function for that.
Thanks.

From
Nilesh Rane


nileshlr wrote:
> 
> Hello,
> 
> I wanted to have following Request from ODE.
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:eng="http://engineering.cbp.jpo"> 
>    <soapenv:Header/> 
>    <soapenv:Body> 
>       <eng:setAttribute> 
>          <eng:in0>60000.336.8624.26994</eng:in0> 
>          <!--1 or more repetitions:--> 
>          <eng:in1>Instance ID</eng:in1> 
>          <eng:in1>Process Instance ID</eng:in1> 
>          <!--1 or more repetitions:--> 
>          <eng:in2>61750</eng:in2> 
>          <eng:in2>{http://eclipse.org/bpel/sample}ECRProcess-243</eng:in2> 
>       </eng:setAttribute> 
>    </soapenv:Body> 
> </soapenv:Envelope> 
> 
> I was not able to get this output in ODE request (array):-
> <!--1 or more repetitions:--> 
> <eng:in1>Instance ID</eng:in1> 
> <eng:in1>Process Instance ID</eng:in1> 
> 
> I tried using doXslTransform but not able to get above required output as
> it required atleast one root element.
> 
> Following are my part BPEL file:-
> 
> <!-- Set PID to in0 -->
> <copy>
>     <from>
> 	<literal>
> 		<tns1:setAttribute>
>                    <tns1:in0/> 
>                    <tns1:in1/> 
>                    <tns1:in2/> 
> 	        </tns1:setAttribute>
> 	</literal>
>     </from>
> <to>$CBPWorkflowPartnerLinkRequest.parameters</to>
> </copy>
> <!-- Set CBPWorkflowOID from CreateECRPartnerLinkResponse -->
> <copy>
> <from part="createBusReturn" variable="CreateECRPartnerLinkResponse">
> </from>
> <to variable="CBPWorkflowOID"/>
> </copy>
> <copy>
> <from variable="CBPWorkflowOID" />
> <to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
> <query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in0]]></query>
> </to>
> </copy>
> <!-- Set literal "Instance ID" to in1 -->
> <copy>
>     <from>
> 	<![CDATA["Instance ID"]]></from>
> <to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
> <query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in1]]></query>
> </to>
> </copy>
> <!-- Set value of $instance-info.iid to in2 -->
> <copy>
> <from part="instance-info" variable="getInstanceInfoOutput">
> <query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/typ:iid]]></query>
> </from>
> <to part="parameters" variable="CBPWorkflowPartnerLinkRequest">
> <query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns1:in2]]></query> 
> </to>
> </copy>
>          
> my bpel process work properly for single value but I need to use array in
> it.as I said early.
> 
> Following request working properly but not first one which adds array in
> it.
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:eng="http://engineering.cbp.jpo"> 
>    <soapenv:Header/> 
>    <soapenv:Body> 
>       <eng:setAttribute> 
>          <eng:in0>60000.336.8624.26994</eng:in0> 
>          <eng:in1>Instance ID</eng:in1> 
>          <eng:in2>61750</eng:in2> 
>       </eng:setAttribute> 
>    </soapenv:Body> 
> </soapenv:Envelope> 
> Please help me in finding appropriate solution.
> thanks in advance.
> 
> From 
> Nilesh Rane
> 

-- 
View this message in context: http://www.nabble.com/facing-Problem-with-array-implimentation-in-ODE-tp14370206p14370315.html
Sent from the Apache Ode User mailing list archive at Nabble.com.