This is the WSO2 Business Process Server documentation version 3.1.0.View documentation for the latest release.

Unknown macro: {next_previous_link3}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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. (Samples are 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