BPEL Tutorial | X Path | Command Line Interface

Please download to get full document.

View again

of 27
17 views
PDF
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Document Description
BPEL integration Doc
Document Share
Document Tags
Document Transcript
    BPEL Designer Tutorial 2: Developing a Credit Flow BPEL Process Page 1 BPEL Designer Tutorial Tutorial 2: Developing a Credit Flow BPEL Process In this tutorial you will learn how to use the Oracle BPEL Designer to build, deploy, and test your second BPEL process. The process is an asynchronous flow that calls a simpleservice: a synchronous credit rating service. Creating this process is intended to be thefirst step toward building a more sophisticated application (like BPEL Loan Flowexample).This tutorial is based on version 0.8 of the BPEL Designer. Contents Getting Started....................................................................................................................2Create a New BPEL Project................................................................................................3Review the WSDL Interface of Your Asynchronous BPEL Process.................................6Edit the WSDL Interface of Your BPEL Process...............................................................7Review the BPEL Source Code..........................................................................................8View the Process Map........................................................................................................9Add Activities to the Process Map....................................................................................10Create a PartnerLink for the Credit Rating Service..........................................................13Configure the <invoke> Activity......................................................................................15Initialize the crInput Variable...........................................................................................19Compile, Deploy, and Test Your BPEL Process..............................................................24    BPEL Designer Tutorial 2: Developing a Credit Flow BPEL Process Page 2 PrerequisitesThis tutorial assumes you have completed Tutorial 1, “Developing a Hello World BPELProcess.” The same prerequisites apply as for that tutorial (as listed below); you should have the BPEL Designer installed on your system as well.ã Oracle BPEL Process Manager, version 2.0 RC8 or later installed on your systemã Internet Explorer 6.0ã JDK 1.4.1 (or later)ã Windows 2000 or XP, 384 MB RAMã 100 MB of disk space for the BPEL Designer (including the Eclipse 3.0M9distribution)ã Some familiarity with XML Schema, WSDL, XPath, BPEL, and related Web servicestandards Getting Started If the BPEL Designer and Oracle BPEL Process Manager are not currently running onyour desktop, start them now, as described in Tutorial 1. Like that tutorial, this oneassumes you have installed the Oracle BPEL Process Manager on a Windows system intothe C:\orabpel directory, so you should modify paths as appropriate if you haveinstalled it into a different location or operating system.Before starting the main content of this tutorial, you should compile and deploy the creditrating service that you will invoke as part of the tutorial, making it available on your localOracle BPEL Process Manager. You will use the command line rather than the BPELDesigner to compile and deploy this service Note that if you wanted to compile this project from the BPEL Designer instead of thecommand-line, you could use the File / Import / Existing Project into Workspace menucommand to open the CreditRatingService in the BPEL Designer and build it using thegraphical interface as was done in Tutorial 1. To compile and deploy the credit rating service from the command-line: 1 Open up a command prompt if you do not already have one open.2 Change the directory to   C:\orabpel\samples\utils\CreditRatingService , asfollows:> cd C:\orabpel\samples\utils\CreditRatingService  3 Execute the obant command.> obant   To test the credit rating service: 1 If you have not already done so, connect to the BPEL Console (athttp://localhost:9700/BPELConsole)and log in.    BPEL Designer Tutorial 2: Developing a Credit Flow BPEL Process Page 3 2 In the Name column (under the Dashboard tab of the console), click the link for the CreditRatingService   BPEL process.3 In the test form that appears, enter any nine-digit number as the social securitynumber (for example, 123456789) and click  Post XML Message .You should get back an integer credit rating (or a fault if the social security number youentered began with a 0). In either case, the service is confirmed to be installed successfully. Create a New BPEL Project As in Tutorial 1, you will use the BPEL Designer’s New Project wizard, whichautomatically generates the skeleton of a BPEL project: the BPEL source, a WSDLinterface, a BPEL deployment descriptor, and an Ant script for compiling and deployingthe BPEL process. This time you will specify that you want to start with the template for an asynchronous process. To create a new BPEL project: 1 In the BPEL Designer, click  File > New > Project .By default, Oracle BPEL Project is selected.    BPEL Designer Tutorial 2: Developing a Credit Flow BPEL Process Page 4 2 Click  Next .3 Enter a BPEL process name of  CreditFlow .4 [Optional] Enter   http://tutorial.oracle.com as the namespace.
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks