On Thu, Sep 25, 2008 at 7:43 AM, NGUYEN Cong Kinh <
[EMAIL PROTECTED]> wrote:
> Hi Matthieu,
>
> I am sorry because the mail system can not send the BPEL file. In fact,
> BPEL file is as following:
>
In BPEL the onMessage element can't be empty, it has to contain an activity.
You could rewrite your pick this way to obtain the (probably) intended
behavior:
<bpws:pick createInstance="no" name="Pick">
<bpws:onMessage operation="say" partnerLink="client"
portType="tns:Asyn" variable="input">
<bpws:correlations>
<bpws:correlation initiate="no" set="CS"/>
</bpws:correlations>
<bpws:empty/>
</bpws:onMessage>
</bpws:pick>
I'll add an explicit compiler check for this.
Thanks,
Matthieu
>
> <?xml version="1.0" encoding="UTF-8"?>
> <bpws:process exitOnStandardFault="yes" name="Asyn"
> suppressJoinFailure="yes"
> targetNamespace="http://www.tsi.enst.fr/paam"
> xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
> xmlns:ns="http://www.tsi.enst.fr/paamArtifacts"
> xmlns:tns="http://www.tsi.enst.fr/paam">
> <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
> location="Asyn.wsdl" namespace="http://www.tsi.enst.fr/paam"/>
> <bpws:import importType="http://schemas.xmlsoap.org/wsdl/"
> location="AsynArtifacts.wsdl"
> namespace="http://www.tsi.enst.fr/paamArtifacts"/>
> <bpws:partnerLinks>
> <bpws:partnerLink myRole="AsynProvider" name="client"
> partnerLinkType="tns:Asyn"/>
> <bpws:partnerLink name="linkVideo"
> partnerLinkType="ns:partnerLinkVideo" partnerRole="videoRole"/>
> </bpws:partnerLinks>
> <bpws:variables>
> <bpws:variable messageType="tns:AsynRequestMessage" name="input"/>
> <bpws:variable messageType="tns:AsynResponseMessage" name="output"/>
> </bpws:variables>
> <bpws:correlationSets>
> <bpws:correlationSet name="CS" properties="ns:test"/>
> </bpws:correlationSets>
> <bpws:sequence name="main">
> <bpws:receive createInstance="yes" name="receiveInput"
> operation="process" partnerLink="client" portType="tns:Asyn"
> variable="input">
> <bpws:correlations>
> <bpws:correlation initiate="yes" set="CS"/>
> </bpws:correlations>
> </bpws:receive>
> <bpws:assign name="Assign" validate="no">
> <bpws:copy>
> <bpws:from>
> <bpws:literal>
> <tns:AsynResponseMessage
> xmlns:tns="http://www.tsi.enst.fr/paam">
> <tns:result/>
> </tns:AsynResponseMessage>
> </bpws:literal>
> </bpws:from>
> <bpws:to part="payload" variable="output"/>
> </bpws:copy>
> </bpws:assign>
> <bpws:pick createInstance="no" name="Pick">
> <bpws:onMessage operation="say" partnerLink="client"
> portType="tns:Asyn" variable="input">
> <bpws:correlations>
> <bpws:correlation initiate="no" set="CS"/>
> </bpws:correlations>
> </bpws:onMessage>
> </bpws:pick>
> <bpws:reply name="replyOutput" operation="process"
> partnerLink="client" portType="tns:Asyn" variable="output"/>
> </bpws:sequence>
> </bpws:process>
>
> Thanks,
> Kinh
>
>