This documentation is for WSO2 Business Process Server version 3.5.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

Objective

Explain the basic constructs such as <import/>, <partnerLinks/>, <variables/>.

Introducing the Constructs

<import/>

<importlocation="HelloWorld2.wsdl"namespace="http://ode/bpel/unit-test.wsdl"importType="http://schemas.xmlsoap.org/wsdl/"/>

Used to include WSDL and XSD definitions in the BPEL definition. 

Note

Need to define namespace prefix for the namespace of imported resource in the BPEL definition in order to refer the imported resources inside BPEL definition.

<partnerLinks/>

<partnerLinks><partnerLinkname="helloPartnerLink"partnerLinkType="test:HelloPartnerLinkType"myRole="me"/></partnerLinks>

This is where the connections to external parties are defined. If there’s any external interaction, partner links should be defined for each of them.

For more details on creating partner links and invoking external parties, refer to the following tutorial in WSO2 Oxygen Tank: http://wso2.org/library/articles/writing-simple-ws-bpel-process-wso2-bps-apache-ode#establish-partner-link

<variables/>

<variables>
    <variablename="myVar"messageType="test:HelloMessage"/>
    <variablename="tmpVar"type="xsd:string"/>
    <variablename="tmpDate"type="xsd:dateTime"/>
</variables>

BPEL variables are used to store the state of the process in the run-time. The type of a variable can be a WSDL message or XML schema definition. For more details on defining, referring and modifying variables, refer to the following tutorial in WSO2 Oxygen Tank: http://wso2.org/library/articles/writing-simple-ws-bpel-process-wso2-bps-apache-ode#variable-manipulation.

Deploying the Sample

WSO2 BPS provides a HelloWorld sample which can be deployed and executed to understand some of the basic constructs discussed above. Follow the instructions below to deploy and trigger the process.

1. Log in into BPS server management console and select "Processes -> Add" under the "Main" menu.

2. Upload the HelloWorld2.zip found in the BPS_Home/repository/samples/bpel directory. (Samples are also located at our sample repository).

3. In the "Deployed Processes" window, click the "Process ID" to access its "Process Information" window.

4. Under the "WSDL Details" widget, trigger the process using the "TryIt" link to create an instance of it.

  • No labels