incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tngu...@symcor.com
Subject sample of bpel file
Date Mon, 06 Feb 2006 22:49:37 GMT

I would like to send a message (an object)  to the AgilaEngine, and then
the AgilaEngine invoke a webservice and reply back the response (the output
of the return of the invoke call)  to me.  How do I do  this?  Is this
right?

<!-- tecpbpel BPEL Process [Generated by the Oracle BPEL Designer]  -->
<process name="tecpbpel"
targetNamespace="http://www.symcor.com/tecp/process"
suppressJoinFailure="yes" xmlns:tns="http://www.symcor.com/tecp/definition"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
      <!--
================================================================= -->
      <!-- PARTNERLINKS
-->
      <!-- List of services participating in this BPEL process
-->
      <!--
================================================================= -->
      <partnerLinks>
            <!--
        The 'client' role represents the requester of this service. It is
        used for callback. The location and correlation information
associated
        with the client role are automatically set using WS-Addressing.
        -->

            <partnerLink name="tecp" partnerLinkType="tns:tecpbpel"
myRole="initiator"/>
            <partnerLink name="exceptionservice"
partnerLinkType="tns:exceptionService" myRole="handleException"/>
            <partnerLink name="returntecp" partnerLinkType="tns:returntecp"
myRole="returntecp"/>
      </partnerLinks>
      <!--
================================================================= -->
      <!-- VARIABLES
-->
      <!-- List of messages and XML documents used within this BPEL process
-->
      <!--
================================================================= -->
      <variables>
            <!-- Reference to the message passed as input during initiation
-->
            <variable name="receiveInput" messageType="tns:inputRequest"/>
            <variable name="input"
messageType="tns:processExceptionItemsRequest"/>
            <variable name="output"
messageType="tns:processExceptionItemsResponse"/>
            <variable name="receiveOutput" messageType="tns:inputRequest"/>
      </variables>
      <!--
================================================================= -->
      <!-- ORCHESTRATION LOGIC
-->
      <!-- Set of activities coordinating the flow of messages across the
-->
      <!-- services integrated within this business process
-->
      <!--
================================================================= -->
      <sequence name="main">
            <!-- Receive input from requestor.
             Note: This maps to operation defined in tecpbpel.wsdl
             -->
            <receive name="receiveInput" partnerLink="tecp"
portType="tns:tecpbpel" operation="initiate" variable="receiveInput"
createInstance="yes">
            </receive>
            <assign>
                  <copy>
                        <from variable="receiveInput"></from>
                        <to variable="input"></to>
                  </copy>
            </assign>

            <invoke name="callExceptionService"
partnerLink="exceptionservice" portType="tns:ExceptionService"
operation="tns:processExceptionItem" inputVariable="input"
outputVariable="output">
            </invoke>
            <assign>
                  <copy>
                        <from variable="output"></from>
                        <to variable="receiveOutput"></to>
                  </copy>
            </assign>
            <receive name="receive" partnerLink="returntecp"
portType="tns:returntecp" operation="process" variable="receiveOutput" >
            </receive>
            <reply name="reply" partnerLink="returntecp"
portType="tns:returntecp" operation="process" variable="receiveOutput">
            </reply>
      </sequence>
</process>


Any suggestions?

Thanks
u



Mime
View raw message