Hi Matthieu,

I am using ode 1.2. I also have some problems with activity pick. In fact,
I do not understand why my BPEL does not run "onMessage" while activity
invoke (set correlation) finished. Could you tell me how I can solve this
problem?

Thanks,
Kinh

<?xml version="1.0" encoding="UTF-8"?>
<bpws:process exitOnStandardFault="yes" name="AsynTest"
    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:ns0="http://paam"; xmlns:tns="http://www.tsi.enst.fr/paam";>
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/";
        location="AsynTest.wsdl" namespace="http://www.tsi.enst.fr/paam"/>
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/";
        location="AsynTestArtifacts.wsdl"
namespace="http://www.tsi.enst.fr/paamArtifacts"/>
    <bpws:import importType="http://schemas.xmlsoap.org/wsdl/";
        location="Video.wsdl" namespace="http://paam"/>
    <bpws:partnerLinks>
        <bpws:partnerLink myRole="AsynTestProvider" name="client"
partnerLinkType="tns:AsynTest"/>
        <bpws:partnerLink name="linkVideo"
            partnerLinkType="ns:partnerLinkVideo" partnerRole="videoRole"/>
    </bpws:partnerLinks>
    <bpws:variables>
        <bpws:variable messageType="tns:AsynTestRequestMessage"
name="input"/>
        <bpws:variable messageType="tns:AsynTestResponseMessage"
name="output"/>
        <bpws:variable messageType="ns0:changeScaleResponse"
name="linkVideoResponse"/>
        <bpws:variable messageType="ns0:changeScaleRequest"
name="linkVideoRequest"/>
        <bpws:variable messageType="tns:sayMessage" name="clientResponse"/>
    </bpws:variables>
    <bpws:correlationSets>
        <bpws:correlationSet name="CS" properties="ns:stUrl"/>
    </bpws:correlationSets>
    <bpws:sequence name="main">
        <bpws:receive createInstance="yes" name="receiveInput"
            operation="process" partnerLink="client"
            portType="tns:AsynTest" variable="input"/>
        <bpws:assign name="Assign" validate="no">
            <bpws:copy>
                <bpws:from>
                    <bpws:literal>
                        <tns:AsynTestResponseMessage
xmlns:tns="http://www.tsi.enst.fr/paam";>
                            <tns:result/>
                        </tns:AsynTestResponseMessage>
                    </bpws:literal>
                </bpws:from>
                <bpws:to part="payload" variable="output"/>
            </bpws:copy>
            <bpws:copy>
                <bpws:from>
                    <bpws:literal>
                        <changeScaleRequest>
                            
<stUrl>http://www.tsi.enst.fr/~elloumi/MediasDB/trailers/brother_bear_small.mp4</stUrl>
                            <width>150</width>
                            <height>150</height>
                        </changeScaleRequest>
                    </bpws:literal>
                </bpws:from>
                <bpws:to part="parameters" variable="linkVideoRequest"/>
            </bpws:copy>
            <bpws:copy>
                <bpws:from>
                    <bpws:literal>
                        <sayMessage>
                            
<stUrl>http://www.tsi.enst.fr/~elloumi/MediasDB/trailers/brother_bear_small.mp4</stUrl>
                        </sayMessage>
                    </bpws:literal>
                </bpws:from>
                <bpws:to part="payload" variable="clientResponse"/>
            </bpws:copy>
        </bpws:assign>
        <bpws:invoke inputVariable="linkVideoRequest" name="Invoke"
            operation="changeScale" outputVariable="linkVideoResponse"
            partnerLink="linkVideo" portType="ns0:Video">
            <bpws:correlations>
                <bpws:correlation initiate="yes" pattern="out" set="CS"/>
            </bpws:correlations>
        </bpws:invoke>
        <bpws:pick name="Pick">
            <bpws:onMessage operation="say" partnerLink="client"
                portType="tns:AsynTest" variable="clientResponse">
                <bpws:correlations>
                    <bpws:correlation initiate="no" set="CS"/>
                </bpws:correlations>
                <bpws:sequence name="Sequence">
                    <bpws:assign name="Assign1" validate="no">
                        <bpws:copy>
                            <bpws:from>
                                <bpws:literal>"Ngu ngoan akay
oi"</bpws:literal>
                            </bpws:from>
                            <bpws:to part="payload" variable="output">
                                <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
                            </bpws:to>
                        </bpws:copy>
                    </bpws:assign>
                    <bpws:reply name="replyOutput" operation="process"
                        partnerLink="client" portType="tns:AsynTest"
variable="output"/>
                </bpws:sequence>
            </bpws:onMessage>
            <bpws:onAlarm>
                <bpws:for><![CDATA['PT1M30S']]></bpws:for>
                <bpws:scope>
                    <bpws:sequence name="Sequence1">
                        <bpws:assign name="Assign1" validate="no">
                            <bpws:copy>
                                <bpws:from>
                                    <bpws:literal>Ngu that nhi</bpws:literal>
                                </bpws:from>
                                <bpws:to part="payload" variable="output">
                                    <bpws:query
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:result]]></bpws:query>
                                </bpws:to>
                            </bpws:copy>
                        </bpws:assign>
                        <bpws:assign name="Assign2" validate="no"/>
                        <bpws:reply name="ReplyOutput"
                            operation="process" partnerLink="client"
                            portType="tns:AsynTest" variable="output"/>
                    </bpws:sequence>
                </bpws:scope>
            </bpws:onAlarm>
        </bpws:pick>
    </bpws:sequence>
</bpws:process>

Attachment: AsynTest.wsdl
Description: XML document

Attachment: AsynTestArtifacts.wsdl
Description: XML document

Attachment: Video.wsdl
Description: XML document

Reply via email to