Hi all,
I've been trying for last few days to get a simple BPEL document with
the following to work in ODE. Actually earlier I was trying to
initialize the variable inline, but realized that ODE does not support
that only after seeing a recent a mail in the list.
Then I tried to initialize the variable using an Assign activity as in
the attached BPEL snippet. But I ended up getting the following
error..

12:48:40,005 ERROR [INVOKE] org.apache.ode.bpel.common.FaultException:
{http://docs.oasis-open.org/wsbpel/2.0/process/executable}uninitializedVariable:
The variable Adder_addInput isn't properly initialized.

What am I doing wrong?.. Hope a BPEL guru in this list will be able to
figure out what I missed.

thanks,
Thilina

<bpws:variable messageType="adder_add:AddInputMessage" name="Adder_addInput"/>
......
                <bpws:assign name="Assign" validate="no">
                    <bpws:copy>
                        <bpws:from>
                            <bpws:literal>
                                <adder_addtypens:AddInput
xmlns:adder_addtypens="http://www.tempuri.org/";>
                                    <x>10</x>
                                    <y>20</y>
                                </adder_addtypens:AddInput>
                            </bpws:literal>
                        </bpws:from>
                        <bpws:to part="AddInputMessagePart"
variable="Adder_addInput"/>
                    </bpws:copy>
                </bpws:assign>

                <bpws:invoke inputVariable="Adder_addInput"
                    name="Adder_add" operation="add"
                    outputVariable="Adder_addOutput"
                    partnerLink="Adder_addPartner"
portType="adder_add:Adder"/>...

Schema and message declaration;

                <schema elementFormDefault="unqualified"        
targetNamespace="http://www.tempuri.org/";
                        xmlns="http://www.w3.org/2001/XMLSchema";>
                        <element name="AddInput" type="typens:AddInputType" />
                        <complexType name="AddInputType">
                                <sequence>
                                        <element name="x" type="xsd:int">
                                        </element>
                                        <element name="y" type="xsd:int">
                                        </element>
                                </sequence>
                        </complexType>....</schema>

<message name="AddInputMessage">
                <part name="AddInputMessagePart" element="typens:AddInput" />
        </message>


-- 
Thilina Gunarathne  - http://thilinag.blogspot.com

Reply via email to