Home

Oracle BPEL Process Manager 10.1.2.0.x

image

Contents

1. In the Invoke window you can see that this activity passes the loan application document as an input variable to the UnitedLoan service This initiate operation will return immediately but the next activity the receive for the onResult callback will wait until the service has called back with a loan offer WS Addressing is used for message correlation by default and is handled completely transparently by the BPEL Server Note that if you want to see the WS Addressing correlation information you can use a TCP tunnel to see the SOAP messages exchanged with the services per the tech note on TCP Tunneling the Oracle BPEL Server at http otn oracle com bpel The BPEL source code for the invoke and receive activities which get the offer back from UnitedLoan can be seen by using the BPEL Source view or by right clicking on the sequence icon for the UnitedLoan sequence and selecting View BPEL Source This source code is shown below lt sequence gt lt initiate the remote service gt lt invoke name invokeUnitedLoan partnerLink UnitedLoanService portType services LoanService operation initiate inputVariable loanApplication gt lt receive the result of the remote service gt receive partnerLink UnitedLoanService portType services LoanServiceCallback operation onResult Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 36 variable loanOfferl1 gt lt sequence gt
2. z artadals Bi I fcarhiedal gt ccm rearz 2001 cfcaresr oxoreditR szin Cx foredith ating z Jban ppleatin x zinartz Dut Enn istas nha Page 44 If you scroll down to the bottom of the visual audit trail you will see the latest status for this instance in this case that the StarLoan service has been initiated but the flow is waiting to receive a response as indicated by the orange highlighting however the UnitedLoan service has already called back with a loan offer 73 Oracle BPEL Console v10 1 2 0 0 Microsoft Internet Explorer File Edit View Favorites Tools Help Back wb fx tt d search s Favorites jp Media c E E Ea prepareApplic InvokeStarLoan invokeUnitedLoan receive 210 Logged to domain default Oracle BPEL Console v1 1 Done 34 entries rendered fs Local intranet a You can also select the Audit tab below the instance details at the top of the page to see a text based audit trail The text audit trail includes such information as the messages exchanged with services and timestamps for when each activity was started or completed and again is both configurable and accessible via API DEBUGGING THE IN FLIGHT BPEL PROCESS 8 If you now select the Debug tab you will see the BPEL Debugger which takes the BPEL source that implements this process and matches it up against the state of this particular instance Points in the code where execut
3. 12136950 ms SharLaan Lo B59450 0 ms TazwManseer LO BD T4 mis D hotspots found Request hreakdoven Ave Page ang comeocrks requast 106 0 mz Engssingle reguaest 32 35 m Gorm slamant deseriaize 4 n n ms Soupesmarshall GE Me dom slerenh ceserialize n n ma handie skiber ES 85 mz get mnricberm D17 ms laad qaeztancesTar saratem D i17 mz TIM a aA Sie Rn EN A a PA ene ire ee geared PES Pj ues JE om prs As you have seen the BPEL Console allows you to test any of your deployed processes through an automatically generated HTML form interface or by passing specific XML message content to it This test page includes stress test capability that makes it easy to do load testing of a deployed BPEL process and then view the performance statistics of the flow under stress Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 49 Perform stress test eon of concurrent threads threads Number of loops loops Constant delay between each invocation ms Clear statistics Yes Q No Post XML Message Note please don t try the built in stress test capability with the OracleLite database bundled with the developer installation of Oracle BPEL PM PROCESS LIFECYCLE MANAGEMENT The Oracle BPEL Process Manager and BPEL Console also include support for process lifecycle management For example side by side versioning is supported so that new implementations of a process can be hot deployed without disturbing c
4. lt portType implemented by the requester of CreditFlow BPEL process for asynchronous callback purposes gt portType name CreditFlowCallback gt operation name onResult gt lt input message client CreditFlowResponseMessage gt lt operation gt lt portType gt Also note that the partnerLinkType defined for this asynchronous process has two roles one for the service provider and one for the requester lt plnk partnerLinkType name CreditFlow gt lt plnk role name CreditFlowProvider gt plnk portType name client CreditFlow gt lt plnk role gt plnk role name CreditFlowRequester gt lt plnk portType name client CreditFlowCallback gt lt plnk role gt lt plnk partnerLinkType gt EDIT THE WSDL INTERFACE OF YOUR BPEL PROCESS Now you will edit the WSDL file to modify the input and output messages To modify the input and output messages of your BPEL process 1 While still editing your CreditFlow wsdl file change the two type definitions so that your flow will take an ssn field as input keeping the string type and return a creditRating element as output of type int The parts you need to change are shown in bold and red below lt element name CreditFlowProcessRequest gt lt complexType gt lt sequence gt element name ssn type sString gt lt sequence gt lt complexType gt lt element gt element name CreditFlowProcessResponse gt lt complexType gt lt sequenc
5. View User Task Microsoft Internet Explorer File Edit View Favorites Tools Help Star Loan Process n Demand Async Web Service You are logged as jsmith starloan com My Tasks Loan Applications for Review Creator Title Created Due Date StarLoan Assign um Task 5 26 04 5 26 04 powered by Oracle d Local intranet Here you should see at least one pending loan application which you should select enter an interest rate go ahead and make it a nice low one as long as you are approving your own loan application and click the approve button This will cause the StarLoan service to return a callback to the LoanFlowPlus process 11 If you refresh its audit trail you should see that it has moved along in its processing having received the StarLoan callback with the second loan offer selected the best loan offer and 1s now waiting for the customer to approve the offer Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 47 invoke StarLoan invakellnitedLaan a Activity Audit Trail Web Page Dialog ER receive 719 receive 219 receive 210 i enns 09 29 16 33 12 Waiting far anResult fram StarLaanServwic 2005 09 29 16 47 43 Received anResult callback from partner z laan offerz gt zpart xmlns xsiz http www w3 arg z 01 ML name pavlaad gt z nanoffer xmlnsz http www autalaan cam ns zpraviderMame Star Loanz praviderMarmie gt zselected falsez selected
6. and WebSphere when available versions of Oracle BPEL PM For additional details or for users installing on platforms other than Windows see the appropriate Oracle Application Server Integration Installation Guide Install Oracle BPEL Process Manager for Developers 1 To begin the installation process log onto the host where you wish to install the Oracle BPEL Process manager 2 Start the Oracle Universal Installer from the bpel directory of the CD ROM or staging directory by clicking setup exe The Welcome screen appears 3 Click Next The Specify File Location screen appears Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 8 If your host is detected to be part of a cluster the Specify Hardware Cluster Installation Mode screen appears Select Noncluster Installation This installs Oracle BPEL Process Manager on this node only 4 Accept the default Name and Path or specify a new Oracle home name and directory path in which to install Oracle BPEL Process Manager components Do not use an existing home or directory path Do not change the directory path in the Source field This is the location of the installation files 5 Click Next The Select Installation Type screen appears 6 Select BPEL Process Manager for Developers and click Next The Specify Outgoing Proxy Information screen appears 7 If you have a direct connection to the Internet and do not use a proxy server or if you accept the default inform
7. trace BPEL Done v10 1 2 0 8 Microsoft Inter Faplarer ups ESAE i x Pie Edt vew Favorites Tools Help EI disk 2 2 db dex ee hede 23 EN d cd Address 4 http jaie ST DOE PEL Terahan del ari deps Pe nceas isp e us ORACLE BPEL Console Manage BFEL Domain Logout Support s Dachbowrd BPEL Procecces Activities BPEL Frecexss Tri kiy Herian 1 Lifeeytloe Adve ratistira D Open Enztznozz Sloped ort nos hat at Initiate Geer itor WIDL PT TE saura Task lnstance Inthated Instance 3E3d2dg9s3S22 22 254902 1069 amp 928ba5 FS is being processed asenchranausly Far mere infarmatian wl suai Debug Vvieual Flow Audit Irc tance Dah ig Inztanca Click here to initiate another tast instance Logged to domani default Oracle BFEL Console 10 1 2 0 0 hetp liaec TO Je PEL orena default icieplayinst ance japan fana ada E 2d 2d S9 I kde rl DG Se ha i meatia DT Irem Upon selecting the Visual Flow link you will see an audit trail displaying the current state of the process very similar to the process map displayed by the BPEL Designer It will show that you have successfully invoked the credit rating service Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 29 7 Click the Invoke CRS invoke activity in the audit trail a few boxes down to see the messages sent to and received from the credit rating service 73 Activity Audit Trail Web Page Dialog 3 getCre
8. 3 n the next window that appears enter QuickStartWrkspc in the Workspace Name field Deselect the Add New Empty Project check box and click OK e Create Workspace E x Workspace Mame QuickStart wrkspe Directory Name aBPELPM ilintegrationtjdevtjdevimyworktQuickStartWrkspc Browse Add a New Empty Project Open in New Navigator cra You have now created your BPEL development workspace you can view it in the Application Navigator on the left Now you need to create a BPEL project within this workspace Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 11 4 Right click on your workspace name and select New Project The New Project wizard appears 5 Under the Categories column select General gt Projects In the Items window on the right select BPEL Process Project and click OK The BPEL Process Project window appears 6 Enter CreditFlow as the BPEL Process Name Optional Enter http tutorial oracle com as the Namespace 8 Leaving the template as Asyncronous BPEL Process and the Use default location at its default setting click OK e BPEL Process Project E zi Create a BPEL project in the specified workspace The location Far the BPEL process is initialized based on either the current workspace or the new default workspace Change these values to create the BPEL process in another location or with another name BPEL Process Name CreditFlow Namespace h
9. BPEL Process Manager 10 1 2 Page 23 Creditflow bpel p 23 ec ago receiveInput E E i creditRatingService c 5 5 Ino ae client E an e O O v a E callbackClient 2 Double click the newly created Assign activity to update its properties 3 Select the general tab on the Assign activity and enter assign_SSN into the Name field 4 Select the Copy Rules tab and click Create The XPath wizard opens This wizard allows you to assign the value of a variable selected in the From field to the value of a variable selected 1n the To field 5 In the From section of the Copy Rule form ensure Variable is selected in the Type drop down box and navigate to and select Variables gt inputVariable gt payload gt client CreditFlowProcessRequest gt client ssn Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 24 e Create Copy Rule From Type variable Variables H a Process variables Het input ariable Ez payload 495 client CreditFlowProcessRequest 05 client ssn ce output ariable rl Invoke CRS process Input ariable ee Invoke CRS process Output ariable rg imn Scope gekCreditR ating 6 Fill in the To section of the Copy Rule form as follows a In the Type drop down select Variable b Navigate to and select Variables gt Invoke CRS process InputVariable gt payload gt gt ns1 ssn 7 Inthe Copy Rule form click OK
10. XML Web services but also Java J2EE components portals JCA interfaces and JMS destinations Tie into 100 back end systems Leverage your Java skills and application server investments Production Ready The BPEL Server leverages an underlying J2EE application server so that using BPEL as the integration and orchestration layer seamless enterprise wide application solutions can be built up reusing and extending existing heterogeneous systems Customers have been in production since 2003 with most major verticals represented However early adoption has been particularly robust in telecommunications financial services health care high tech manufacturing government defense and aerospace Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 6 FEATURE SUMMARY BPEL DESIGNER Native BPEL Support A Drag and drop process modeler UDDI and WSIL service browser visual XPATH editor 2 One click build and deploy BPEL COHSOLE Visual Monitoring Auditing 2 BPEL Debugging In flight Administration Performance Tuninng 2 Partitioning Domains Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 BUILT IN INTEGRATION SERVICES 2 Java embedding 2 Email and JMS messaging services XSLT and XQuery transformation services A User task manager and portal integration e Extensible WSIF binding framework BPEL SERVER Comprehensive BPEL 1 1 Sync And async messaging Context Dehydra
11. if you choose and click the Submit Loan Application button to initiate the new process instance Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 41 LoanFactory Microsoft Internet Explorer File Edit View Favorites Tools Help A A G Pm trom A better way to eet loans BPEL Loan Flow Plus 9 Home W REFINANCE W Home CREDIT 1 ocet ZI 50x ZUE ZEIT PURCHASE MORTGAGE EQUITY LOANS CARDS CONSOLIDATION MANAGEMENT REFINANCE PURCHASE Homepage Loan Center No sales pressure Just easy to use tools that help you meet your loan needs Customer name Amount Car model Car year Email REVIEW THE VISUAL AUDIT TRAIL Next you will put on the hat of a developer or administrator and use the BPEL Console to view the audit trail and other status information regarding this process 4 Todo this point a different browser window at http localhost 9700 B PEL Console and log in if necessary the default password is bpel You should see several in flight instances and several completed instances of BPEL processes Select the active instance of the LoanFlowPlus application as shown below Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 42 Oracle BPEL Console 10 1 2 0 0 Microsoft Internet Explorer pees ie File Edit wiew Favorites Tools Help da Back wb fx at Gi search sg Favorites jp Media A ET c E CreditFlow 606 Loan Flow Plus A
12. process activities available to drag and drop into your BPEL process 8i x File Edit View Search Navigate Run Debug Versioning Tools Window Help OG Boa K BO kA w m a d Hum ih Applications Navigator x 2 CreditFlow bpel Y E3 Component Palette Ii x om San E mm x rig r3 amp av 2 B Md Drill Down Stack 5 3 9g E jg Applications s Pointer QuickStartwrkspe Partner Links Partner Links E CreditFlow E Ta Integration Content B bpel xml AS CreditFlgw bpel QR gerr Nager A ats rr Assign Compensate z receiveInput A obDb5bD fej Java Embedding ce Vio client F Notification RENI PartnerLink amp Pick ET Receive ge Reply EA Scope E Sequence A D Switch E Terminate z ES callbackClient Applications 3 Connections a CreditFlow bpel Structure 1 X oja El 7 b Create WE Edit g Variables Q Message Tvpes Zoom 10095 g Correlation Sets Q Project Schemas Partner Links Diagram View Source X BPEL Messages Messages g Activity Structure fl ore SOUulcCca5c ucicLaucu iit Q OLADELE L 1l1110CULGULIlUII Jucws pucwv toc Nd ge g Properties 10 41 48 Successful compilation 0 errors 0 warnings Q Property Aliases S8 Compiling g Sensor Actions amp Compiling Q OraBPELPM_1l integration jdev jdev mywork QuickStar
13. sensors which make it easy to push events from BPEL processes out to the BAM server However the BAM server can gather events from any source within the enterprise JMS messages DB events etc that can write to a JMS queue and is not limited to BPEL process events INTEGRATION WITH A WEB SERVICE MANAGEMENT SOLUTION The question frequently comes up as to secure and manage both services and the BPEL processes that orchestrate them within an enterprise adopting SOA A WSM solution like the Oracle Web Services Manager OWSM provides features such as authentication authorization encryption and logging for services and processes through the definition of policies As shown in the diagram below Web services management solutions typically provide proxies or gateways in front of Web services This includes both back end Web services which may be implemented in many different technologies as well as BPEL processes deployed to the Oracle BPEL Server or other BPEL servers since a BPEL process is itself a Web service Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 52 Virtual BPEL Process End point Web Service Management Proxy or Gateway Virtual Web Service End point Web Service Management Proxy or Gateway Chain of handlers fi policy Audit security load balancing etc CREDIT RATING SERVICE Here OWSM will provide a managed end point which looks to the BPEL process just like the underlying Web servi
14. social security number for example 123456789 and click Post XML Message You should get back an integer credit rating or a fault if the social security number you entered began with a 0 In either case the service is confirmed to be installed successfully Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 10 To set JDeveloper proxy information First you should set the hostname of your computer in your JDeveloper preference settings If you do not do this you can receive parsing errors when selecting a WSDL file on the WSDL Chooser window while creating a partner link 7 Select Preferences from the JDeveloper Tools main menu 8 Click Web Browser and Proxy 9 Make sure that your hostname and localhost at least are in the Exceptions field For example if your hostname is myhost pc us acme coml us acme comllocalhost 127 0 0 1lmyhost pc 10 Click OK CREATE A NEW BPEL PROJECT Now you will use the JDeveloper BPEL Designer s New Project wizard which automatically generates the skeleton of a BPEL project the BPEL source a WSDL interface a BPEL deployment descriptor and an Ant script for compiling and deploying the BPEL process To create your first BPEL project 1 First you need to create a new workspace This workspace will contain your BPEL projects 2 Inthe Applications Navigator right click Applications and select New In the wizard that appears select Workspace from the menu on the right click OK
15. when you executed the obant command at the beginning of this section You could of course also build and deploy it from the Designer as you did in the previous section You should now point a browser at the portal UI located at http localhost 9700 LoanFlowPlusUI Homepage html 2 Select the Initiate New BPEL Loan Flow link on the portal page as shown below A LoanFactory Microsoft Internet Explorer File Edit View Favorites Tools Help E ps 4 o 2 li Je NA o Back ig ix TE y Search Favorites Address amp http localhost 3700 LoanFlowPlusLIT Homepage html A better way to get loans BPEL Loan Flow Plus HOME Y REFINANCE HOME PERSONAL F CREDIT DEBT CREDIT AUTO PURCHASE MORTGAGE EQUITY LOANS CARDS CONSOLIDATION MANAGEMENT REFINANCE PURCHASE Initiate New BPEL Loan Flow a Name Purchase Vil if Home Equity erm an shake refresh Loan Offers Qualify far mare before rates Instant approval No appraisal rise Unbiased help and advice Mobile notary Guaranteed powered by Oracle approval In minutes lowest cost s p urchase Zero Down Apply now 4 509 6pre Plus Home equity Ja nk ag de Nr 0 closing costs Below prime rate Credit p money down 12595 loan Pyan T TER BET EE OE ee unes Qu I Jg A e ioi n 3 You will now see a web page which allows you to submit a loan application to initiate a new LoanFlowPlus instance You can change the fields in the UI
16. zapproved truec approwed zAPRE1 dz APR x lananaoffer x part xlaanofferz gt zelectstarLaa E ILIO m MED Ta AGA GA ba a CES ELT ene GE fu Vi Vi ace as aco ema an ams im en e ea e rs o COMPLETING A USER TASK 12 As the final step in the process you could refresh the customer loan portal homepage where you should now see the selected loan offer waiting for review A LoanFactory Microsoft Internet Explorer File Edit View Favorites Tools Help lt Back ii fal QA search Favorites iMedia EA B5 Sf EH Address E http Jalex a700 LaanFlowPlusLIT A better way to eet loans BPEL Loan Flow Plus 773m Me WO nome WO persona Wi aren WO pesi ee WO 7 PURCHASE MORTGAGE EQUITY LOANS CARDS CONSOLIDATION MANAGEMENT REFINANCE PURCHASE Initiate New BPEL Loan Flow My AUTO LOAN Home Purchase M Home Equity sT i Loan Offers Qualify for more _ before rates Instant approval No appraisal Busse mla vant er loan rise Unbiased help and advice Mobile notary Guaranteed ai BENG MEE approval in minutes lawest cast iow SS Home purchase Zero Down Apply now 4 5 Apa sk a KA BA Get preapproved Plus Home equity Below prime rate HU chosing costs as Credit problems NU money down 125 loan Tor life C Auto Financing Dunn if wmn rofinaneod racantl Annhs tadaw amp dro nf toda Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 48 If you sele
17. 5 a Diagram View Basource Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 15 REVIEW THE BPEL SOURCE CODE The New Project wizard has created a basic skeleton for you of an asynchronous BPEL process To view the BPEL source code 1 With creditFlow bpel open and active click the Source tab at the bottom of the CreditFlow bpel window 2 Scroll down as necessary to browse the code The interesting parts are pointed out below The partnerLink created for the client interface includes two roles myRole and partnerRole assignment As you saw in the WSDL file for this process an asynchronous BPEL process typically has two roles for the client interface one for the flow itself which exposes an input operation and one for the client which will get called back asynchronously lt partnerLinks gt 15 COMMENCES a c partnerLink name client partnerLinkType client CreditFlow myRole CreditFlowProvider partnerRole CreditFlowRequester gt lt partnerLinks gt Also the lt receive gt activity in the main body of the process is followed by an lt invoke gt activity to perform an asynchronous callback to the requester Note the difference between this and a synchronous process which would use a lt reply gt activity to respond synchronously to the caller sequence name main gt lt Receive input from requester receive name receivelInput partnerLink client
18. 8 Inthe Assign form select Apply then OK Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 25 Qj Edit Copy Rule E x From To Type variable Type variable variables Variables EI S Process E Process E en variables E e variables EFL input Variable eL input ariable EN payload i output ariable E t client CreditFlowProcessRequest E H Invoke CR 5 process InputVariable e lientissn 3 o E payload B TE outputYariable 20 155 Fl E Invoke RS process InputVariable m Ti Invoke ERS process _Output ariable H E Invoke CR 5 process QOutputVariable jm Scope getCreditRating im Scope getCreditRating Show Detailed Node Information Show Detailed Node Information ga cient CreditFlovPracessRequest client XPath Help OK Cancel Note that you can always enter XPath queries directly into the text field if you know what the correct query is For more information regarding data manipulation in BPEL please refer to the BPEL Data Manipulation chapter in the BPEL PM Developer s Guide at http otn oracle com bpel COMPILE DEPLOY AND TEST YOUR BPEL PROCESS Although you have not yet wired up the return value from the credit rating service to the return value of your flow you can still test your flow In this section of the tutorial you will compile deploy and test your BPEL process To compile and deploy your BPEL process Save the process In the
19. EL process will be instantiated from a portal or other custom user interface for example the LoanFlowPlus process has a JSP loan interface that customers can use to initiate new loan applications see the offers they have received and approve offers The LoanFlowPlus UI is deployed onto the same application server as the Oracle BPEL Process Manager and full source for it can be found in your samples at Oracle _home integration orabpel samples demos LoanDemoPlus LoanFlowPlusuI JavaDocs for the Java API for initiating a deployed BPEL process can be found in Oracle _home integration orabpel docs apidocs index html In addition a JSP tag library is available to make it easy to use this Java API from a JSP this tag library is used by the LoanFlowPlusUI sample and developers can also use the Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 40 Web services SOAP WSDL API to invoke BPEL processes The Web services approach allows BPEL flows to be invoked and accessed from any language or toolkit that supports Web services INITIATE THE LOANFLOWPLUS PROCESS In this section you will use the portal UI to initiate and complete a LoanFlowPlus instance and the BPEL Console to view the status audit trail debugging information performance metrics and other information gathered automatically by the Oracle BPEL Server 1 The LoanFlowPlus BPEL process was compiled and deployed along with its dependent services and the portal UIs
20. ES iv Time Range LAST 60 DAYS iv e Operational Management Display Snapshot Overall Statistics Snapshot U Security Statistics i m Component Bpel gateway Service ALL SERVICES Start 8 4 05 2 00 PM End 10 3 05 2 00 PM ll Service Statistics My Views Overall Statistics Security Statistics Service Statistics Alarms ll Alarm Rules d business Analysis p Overall Failures 50 Authentication Failures 50 Service Failures 0 Tools se Administration 15000 50 15000 7500 22500 25 75 7500 22500 3000 100 3000 Overall Latency msec 776 Authorization Failures 0 Service Latency msec 731 M a Local intranet For more information on OWSM and its use with the Oracle BPEL Process Manager see http otn oracle com products webservices_manager Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 54 90 Additional Examples We believe that samples are a developer s best friends and therefore try to continuously increase the number of sample BPEL projects which ship with the BPEL Server Here is a quick overview of how those samples are organized ORACLE HOMENintegrationNorabpelNsamplesNdemosN Contains a set of demonstration BPEL processes some examples are listed below AmazonFlow showcases how an Amazon Web service can be integrated in a BPEL process BankTransferDemo showcases how to incorporate XA transactions in BPEL processes BankTransferFlow orchestrates EJBs in an atomic transactional fa
21. My Role Partner Role 8 CreditR atingserviceProvider p Apply OK Cancel A new partnerLink has been added to your flow As described previously you can also use adapters to connect to many different back end systems which typically do not have Web services interfaces Adapters are available for hundreds of systems and protocols and wizards bundled into JDev for several of them To bring up the adapter wizards select the database icon in the Create Partner Link dialog e Create Partner Link Mame PartnerLink_1 WSDL Settings ENS S O A md t o aN WSDL File Define Adapter Service Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 20 You can then see the bundled adapter wizards for things like reading writing files with non XML formats FTP interactions JMS messages database operations etc ey Adapter Configuration Wizard Step 1 of 3 Adapter Type Select the Adapter you would like to configure and click Mext File Adapter 4 File Adapter service can send or receive messages From a File in your local File system FIP Adapter 4 FTP Adapter service can send and receive messages from 4 n File at a remote FTP server AQ Adapter An Advanced Queuing service can send and receive m messages From Oracle AQ single or multiconsumer queues Database Adapter 4 Database Adapter service can send and receive messages E From a table or execute a stored p
22. ORACLE Reference 2006 01 24 10 1 2 0 2 Oracle BPEL Process Manager 10 1 2 0 x Quick Start Tutorial This document describes how BPEL and the Oracle BPEL Process Manager facilitate development of SOA applications through composing synchronous and asynchronous services into end to end standard BPEL process flows It is not intended to be a complete development guide but rather a tutorial and guided tour providing a rapid overview of many of the most commonly used features Pointers are given throughout to additional documentation and samples and readers should also use the many other documents available at http otn oracle com bpel after going through this guided tour Note Much of this document is a tutorial with instructions for you to work hands on with a local installation of the Oracle BPEL Process Manager However you can also just use this document to get some of the test drive experience even if you do not plan to install our server at this time This document has been tested with both the 10 1 2 0 0 and 10 1 2 0 2 releases of Oracle BPEL Process Manager Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 1 Contents BPEL THECORNERSTONE OE SOA sissusecssecssascnsscsdcssscsenssnctcsdeasnccsonseveessassaseiacceusescssdesvasadsdesseasessssocese 3 THE ORACLE BPEL PROCESS MANAGER a iissccsscissocesstasssossscsadesventensesaccetenstesensaessdedeeseasseesasensossseansde 5 INSTALLATION INSTRUCTIONS wisi riseeteseenE
23. PARALLEL PROCESSING As mentioned in the requirements section LoanFlowPlus needs to invoke the two loan service providers in parallel since they can take an arbitrary amount of time to complete This can be done in BPEL using the lt flow gt activity which allows several actions to be taken in parallel An example of this can be seen in the LoanFlowPlus collectOffers flow shown above which contains two parallel activities the sequence which invokes the UnitedLoan service and the sequence which invokes StarLoan The BPEL source which implements this flow activity is fairly simple and is shown below lt flow name collectOffers s gt s lt invoke first loan provider gt lt sequence gt lt initiate the remote service gt lt invoke partnerLink UnitedLoanService gt lt receive the result of the remote service gt receive partnerLink UnitedLoanService gt lt sequence gt lt invoke the second loan provider in parallel with the first gt lt sequence gt lt initiate the remote service gt lt invoke partnerLink StarLoanService gt lt receive the result of the remote service gt receive partnerLink StarLoanService lt sequence gt lt low gt USER TASKS BPEL has fundamental support for asynchronous services which are easily used as a platform to integrate people and manual tasks into BPEL processes To do this Oracle bundles a set of pre built service
24. Page 17 3 Double click the scope element and enter getCreditRating into the name field Scope x General Variables Correlation Sets Sensors Mame jgetCreditRating Variable Access Serializable Help Apply OK Cancel To insert an invoke activity into the scope L 4 Click the icon to the left of the scope activity in the process flow to expand the scope so that you can drop activities into it 5 Drag an invoke activity from the BPEL Palette into the Drop activity here area within the scope The next step is to configure the invoke activity to call your intended service in this case the credit rating service In BPEL this means you first need to create a partnerLink for the service CREATE A PARTNERLINK FOR THE CREDIT RATING SERVICE Partnerlinks represent services that BPEL processes can call or interact with 1 Inthe component palette drag and drop the partnerlink activity into the right swimlane Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 18 e Create Partner Link E X Mame PartnerLink_1 WSDL Settings WSDL File My Role Partner Role Apply OK Cancel This will bring up the Create PartnerLink Wizard above 2 Enter the name creditRatingService for the partnerLink 3 Select the flashlight icon above the WSDL File text area This opens the service browser where you c
25. ae aan ai aan a a a a ea S ae aaa aaa a a a mm a a aa a ai a ma a a a an a a aa ae a 6 A better way to eet loans E BPEL Loan Flow Plus REFINANCE DEBT CREDIT AUTO MORTGAGE CONSOLIDATION MANAGEMENT REFINANCE Initiate New BPEL Loan Flow e Home Equity My AUTO LOAN refresh Loan Offers lt Home Purchase Qualify for more before rates Instant approval No appraisal aM Received offer from United rise Unbiased help and advice Mobile notary Guaranteed Loar with APR 5 7 approval in minutes lowest cost For more information on human workflow within BPEL and building task service clients see the Workflow Services chapter in the Oracle BPEL Process Manager Developer s Guide WEB SERVICES INVOCATION FRAMEWORK Frequently an enterprise has existing Java code or Java APIs for accessing back end systems which it wants to leverage in a BPEL process There are 3 general approaches for this wrapping the Java code as a Web service inlining the Java code into a BPEL process and using the WSIF invocation framework to call the Java code as if it were a Web service The first two approaches are fairly straightforward and illustrated by several code examples shipped with the Oracle BPEL Process Manager As an example of the third approach the LoanFlowPlus process uses the Web Services Invocation Framework WSIF to invoke an EJB which returns a social security number for the customer From your BPEL process yo
26. an select the service endpoint you are looking for 4 The wizard presents an explorer listing all the services deployed on the local Oracle BPEL server as well as other directories that you configure it for Navigate to LocalBPELServer processes default CreditRatingService e WSDL Chooser O WSIL Explorer m 8 LacalBPELServer rm adapters zo processes Em default fos CreditRatincService e 40 gt DDDemo TTE 0 Demn 5 Click OK You have selected the CreditRatingService you deployed to the local BPEL server earlier with the obant command Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 19 6 The browser will close and the URL of the service will appear in the WSDL File field The wizard will fetch the contents of the WSDL file so that 1t can populate the drop down lists appropriately Alternatively you can enter the URL for a WSDL directly in this field if you know the specific location of the WSDL for the service you want to invoke 7 Inthe Partner Role list select creditRatingServiceProvider You will leave the myRole field blank Because this is a synchronous service without any callbacks the client does not need a role 8 Click Apply then OK e Create Partner Link E X General Image Property Mame creditRatingService WSDL Settings BRZ WSDL File defaultiCreditR atingService CreditRatingService wsd Partner Link Type Fa CreditRatingservice
27. ation then click next Otherwise enter details pertaining to your proxy server In the Bypass Proxy for Addresses field leave the tag local to ensure that your hostname is automatically included in the list 8 The Summary screen appears click Next When the installation 1s complete the End of Installation screen appears with information for your review 9 Click Exit and confirm when prompted 10 See the following URL for information on further patches as may be needed http otn oracle com bpel Now you will be able to run your Oracle BPEL Process Manager and BPEL Designer as shown below To start the BPEL Designer Start the BPEL Designer from the Windows Start menu by clicking Start gt Programs gt Oracle Oracle Home gt BPEL Process Manager 10 1 2 gt JDeveloper BPEL Designer To start the BPEL Server You should also start your Oracle BPEL Server since you will be using it to deploy and test flows that you create with the Designer 2 Start the Oracle BPEL Process Manager from the Windows Start menu by clicking Start gt Programs gt Oracle Oracle Home gt BPEL Process Manager 10 1 2 gt Start BPEL PM Server Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 9 Example I Your First BPEL Process In this section of the guided tour you will learn how to use the Oracle BPEL Designer to build deploy and test your first BPEL process The process is an asynchronous flow that calls a s
28. atus of the process and its execution history This audit trail is automatically generated and maintained by the BPEL Server though developers and administrators can control what information gets logged If you click on an activity in the visual audit trail you will see detail information for that activity For example in the picture below the client initiation has been selected and so you see the XML input message which was sent to kick off the flow File EE owes Peyote Tos Heb E Oracle BPH Ciagle 101 AA Microsoft Intenet Explorer Emu ORACLE BPEL Console D aih bi ard Tithe Loan Flow Fiz flex Reference Idi OPEL Process Laan afiye iv 1 0 lana Flow Audit Debug Last k n difi mal amp Tree Finder State Priority EA ard et Instances BPEL l r czessix 29 05 05 15 33 15 open runnimng n Senger Values ilisual representation of the history of the BFEL business flow rem TETI ya ngik 3 gak una mar Sk Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 As of Z3 09 05 16 56 29 Refresh view B Buctisi Ew Sethe Tred Web Pose biog o recpivernput E 1 Reed input call from partner dient gt SIN Puts x part xirdng xzom i ee en m er OLR LS eb a Nn SEH i rimam payload gt cloandpplication xmirna http LAKA RA Ut DSN cons suboloan a SH 4 SAMAN darma akh SAM aman EEN ere Olea ANA GE Ta TA BE gt x joanik e E NATA KI s o snAmaunt
29. by building a process dashboard which displays aggregate summary information or process instance state information For example an executive may want to know how many loans are currently at each stage of processing the average time to present a loan offer to a customer or other key performance indicators against live and completed process instances The Oracle BPEL Process Manager maintains a great deal of information regarding process state and as mentioned makes this information available via API In addition several simple reporting dashboard templates are shipped with the BPEL Server or are available from professional services and support organizations Such a template is included with the LoanFlowPlus process and can be accessed via the URL http localhost 9700 LoanFlowPlusUI dashboard jsp Oracle BPEL Dashboard Microsoft Internet Explorer File Edit View Favorites Tools Help Qe x a A P Search Sf Favorites E 93 I Address a http localhost 9700 LoanFlowPlusUI dashboard jsp BPEL Loan Flow Plus HOME REFINANCE HOME PURCHASE MORTGAGE EQUITY Customer Search 9 all O By Name Title Email Loan Flow Plus Dave 4 2451 o0tn com Shaffer Loan Flow Plus dave3 demoidGotn com A better way to get loans DEBT CREDIT AUTO AUTO CONSOLIDATION MANAGEMENT REFINANCE PURCHASE Process Status of Instances 1 Credit Rating 2 Collecting Offers 3 Confirming Offer 4 Completed 47 5 Others 8 S
30. ce The BPEL process does not even need to know that it 1s connecting to a managed end point rather than the service itself OWSM or other products which support the same standards then provides a pipeline of steps so that encryption authentication service virtualization and other key requirements can be implemented in a uniform manner Likewise OWSM can be placed logically in front of Oracle BPEL PM to manage the connections to BPEL processes themselves pac Management du Management d Business Analysis 2 Tools PM Dir Se Administration Policy Definition CreditRatingServiceAgent 1 0 Pipeline PreRequest Pipeline Steps Start Pipeline End Pipeline Pipeline Request Pipeline Steps Start Pipeline Log amp 1 XML Decrypt amp X E End Pipeline Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 53 E Oracle Web Services Manager Microsoft Internet Explorer File Edit view Favorites Tools Help ay Back gt x a A X Search Sr Favorites E B X m rel X Address http localhost 31 tejccoreiindex jp Mi Links 4 BPEL Console 4 amp Oracle BPEL Worklist 4 amp StarLoan JLoanFactory E Australia NZ ORACLE Oracle Web Services Manager N xxx logout admin IG Qa kad F policy Management Snapshot Display Criteria a Component Bpel_gateway v Service ALL SERVIC
31. ception flow and you will see the steps that are executed as the logic for handling this fault In BPEL any activity which can be Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 34 arbitrarily complex short or long running etc can be used in a faultHandler In this case a user task is defined for a customer service rep to handle the exception in a manual fashion Of course faults can also be handled via automated logic or re thrown We won t look at the details of the BPEL source which implements this fault handler but a Skeleton of the code is shown below lt scope name getCreditRating variableAccessSerializable no gt lt variables gt lt variables gt lt Watch for faults exceptions being thrown from creditRatingService gt lt faultHandlers gt catch faultName services NegativeCredit faultVariable crError gt lt Actual fault handling code goes here gt lt catch gt lt faultHandlers gt sequence lt Code during which you want to watch for faults gt invoke name invokeCR partnerLink creditRatingService portType services CreditRatingService operation process inputVariable criInput outputVariable crOutput gt lt sequence gt lt scope gt For more information about exception management reliability and crash testing please refer to the technotes for Building resilient BPEL processes and Running crash tests on the Oracle BPEL Serve
32. cle BPEL Designer is that it uses BPEL as its native format This means that processes built with the Designer are portable and in addition it enables developers to view and modify the BPEL source at any time The core BPEL engine provides the most mature scalable and robust implementation of a BPEL server available today The Oracle BPEL Process Manager executes standard BPEL processes and provides a dehydration capability so that the state of long running flows 1s automatically maintained in a database enabling clustering for both fail over and scalability The BPEL Server leverages an underlying J2EE application server with support for most major commercial application servers and a bundled version available The built in integration services enable developers to easily leverage advanced connectivity and transformation capabilities from standard BPEL processes These capabilities include support for XSLT and XQuery transformation as well as bindings to hundreds of legacy systems through JCA adapters and native protocols Human Workflow is provided as a built in BPEL service to enable the integration of people and manual tasks into BPEL flows The JDeveloper BPEL Designer provides wizards to build these complex workflows and a simple GUI to map transformations Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 5 The extensible WSDL binding framework DOS WSIF http www apache org enables connectivity to protocols and me
33. ct this loan offer you would get a page that allows the customer to accept this offer This will complete the execution of this instance of the LoanFlowPlus BPEL process PERFORMANCE TUNING Frequently performance including throughput and response time requirements is a critical requirement for effectively implementing a BPEL process Built in to the BPEL Server and Console is a performance tuning framework that assists developers to understand the performance of their applications and identify and resolve bottlenecks whether in the developer s code an external service or the BPEL Server itself 13 You can see a page with the performance data for your completed flows by going to the BPEL Console selecting the Manage BPEL Domain link in the upper right hand corner and then clicking the Statistics tab in the 24 row of tabs Fle Edt Yew Feeries Took Help Ecrans fat i Lalex 2 DOJEPE LCorecobe ide oran spondet abr Statistirs L gurs Preemie Retired Pran ajan Build version 10 1 2 0 0 build 1442 type relesce i Canfigur ise Pains Palih LErars Load Threads 5Estistics deg Shut Runtime Statistics Foe this BPEL Darmen Frint Friendly Re resh waw Clase Statistics 528 Kokspote rikar Z5yrrchranous BPEL process statistics Ten There are mo statistics available at this port Plaaze cxacutm a requast on the engine first Untedloan 1 0 i i 340 0 mz CredifistrssSersice 10 71 BD D ms LoanFlowPiis 1 0
34. ditR ating oo Invoke _CRS F CumOESDSngs2 477 2 E E Pa pou Ka KAN Lis mx Ae aes ied enl Invoked 2 way operation pracess on partner creditRating xmessages xInvoke CRS process InputVariable zpart xmlns xsi http Z wwiw w3 arg z 1sMLSchema instance i name payload gt ssn xmlins http services oatn com 123456789 ssn o sparts x Invoke CRS process InputVariable gt xInvoke CRS process QOutputVvariable zpart xmlns xsi http Iwww w3 arg z gilxMLschema instance name pavlaad gt rating xmlnsz http services atn com 560 rating gt I xfpart x Invoake CRS process QutputV ariable zx messages Invoke CRS Copy details to clipboard To complete the implementation of this flow you would add another lt assign gt activity to the flow after the credit rating service has been invoked which would copy the result returned from the credit rating service in your invoke CRS process output variable variable into the creditRating field for the result of your process itself the outputVariable variable We leave this as an exercise for you If you experience any difficulties in completing the flow or have any questions or comments regarding this tutorial please use the OTN BPEL forum at http
35. e gt lt element name creditRating type int gt lt sequence gt lt complexType gt lt element gt 2 Save your WSDL file and close the window in which you have been editing it Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 14 Note that instead of using a text editor to change the WSDL file you could use any XML Schema or WSDL editing tool that you choose J Developer version 10 1 3 will bundle such a tool and several are also available for the Eclipse platform or as standalone tools SWITCH BETWEEN THE DIAGRAM VIEW AND SOURCE CODE You will now turn to the BPEL file and view it in a variety of ways To view the BPEL process 3 Double click Credit Flow bpel in the Navigator if it is not already open in the Designer however it should be already open if you have followed this tutorial exactly The initial view that you will see for editing a BPEL process file consists of 3 swim lanes the colored outer swim lanes contain references to external services called Partnerlinks The center swim lane contains the CreditFlow process itself Note that the BPEL Designer automatically puts a partnerLink named client on the left side of the window This represents any process service or interaction that initiates your CreditFlow service it gt CreditFlow bpel S ow ry HE D gt 4 Drill Gown Stack 4 Partner Links G Partner Links PL2cCHOREC 1 callbackClient Zoom 10609
36. en go out to the synchronous CreditRating service that you saw previously to request a credit rating for the customer The process is coded to handle the NegativeCredit faults that may be thrown by the credit rating service if a negative credit event is seen for the customer for example a bankruptcy If such an exception is thrown the LoanFlowPlus process will queue up a task for a customer service rep to manually handle the exception and then wait for the task to complete The customer service rep can use a dashboard UI to see their tasks and specify a credit rating or choose to cancel each application Once a credit rating is supplied either through manual or automated activities the process will fall through into automated processing It will then send the completed loan application to two loan processors who can each take an arbitrary amount of time before returning loan offers Since the loan processors can be long running they are implemented as asynchronous services and the BPEL process will invoke them in parallel In the case of this flow it waits for both loan offers to be received before using some simple branching logic to select the best offer the one with the lowest interest rate Finally another user task allows the customer to review and approve the selected loan offer Once this task is completed the selected and approved offer is returned as the result of the flow REVIEW THE PROCESS IN THE BPEL DESIGNER Build and deplo
37. ents for Connected Applications Interoperability WS JMS JCA Portal email ete Sync and async interactions Data mapping and transformation Process logic deterministic and un deterministic In flight instance management and auditing Side by side versioning Compensating transactions NG N e Q s G i Static iWeb Site Dynamic Web Site Connected Applications HTTPS HTL Java JZEE Web Services S04 Making web services work is a 2 step process First you publish your services and then you compose or orchestrate them into business flows Publishing a service means taking a function within an existing application or system and making it available in a standard way while orchestration is composing multiple services into an end to end business process The Web services standards including WSDL XML and SOAP have emerged as an effective and highly interoperable platform for publishing services In addition high Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 3 performance binding frameworks allow enterprises to access legacy systems and native Java code without necessarily having to wrap them in a SOAP interface ORCHESTRATE Availability ta P romise BPEL Process PUBLISH Production Plans Credit Rating Delivery Permit SAP Partner Service Mainframae KEY BPEL CONCEPTS BPEL Business Process Execution Language has emerged as the clear standard for composing multiple synchronous and asynch
38. hows that the process gets initiated then encapsulates the logic to fetch the ssn including the exception handling code in a BPEL lt scope gt etc In the next few sections of this document you will review the code which implements this process MANAGE FAULTS The LoanFlowPlus process uses the BPEL fault handling mechanism to catch and manage exceptions thrown by the ssn and credit rating services Fault handlers are associated with a particular lt scope gt activity and faults encountered within a scope and Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 33 not handled by that scope are bubbled up to the enclosing scope just like try catch in Java 8 To see the NegativeCredit faultHandler defined for the getCreditRating scope select the to the left of the getCreditRating scope to open up the view of that scope getCreditRating 9 When the scope opens you can view the main flow running top to bottom within the scope You can also see a secondary flow as an extension out to the right the top of this flow contains the error activity services NegativeCredit a3 uc wv E p 3 d Drill Down Stack getCustomerssh E gt ah n a services Negative redi o a ca ditRatingService manageException mt 5 invakecR d P client IK copy Fating ml mum You can open the scope activity within the ex
39. imple service a synchronous credit rating service Creating this process is intended to be the first step toward building a more sophisticated application like the loan flow example GETTING STARTED Before starting the main content of this tutorial you should compile and deploy the credit rating service that you will invoke as part of the tutorial making it available on your local BPEL Server You will use the command line rather than the BPEL Designer to compile and deploy this service In general all BPEL processes can be compiled either through the BPEL Designer or command line Ant interfaces To compile and deploy the credit rating service 1 Open up a developer command prompt if you do not already have one open Start gt Programs gt Oracle Oracle Home gt BPEL Process Manager 10 1 2 gt Developer Prompt 2 Navigate to the Credit Rating Service Directory gt cd utils CreditRatingService 3 Execute the obant command gt obant To test the credit rating service 4 Ifyou have not already done so connect to the BPEL Console at http localhost 9700 BPELConsole and log in An alternative is to use the Windows Start menu and click Start gt Programs gt Oracle Oracle_Home gt BPEL Process Manager 10 1 2 gt BPEL Console 5 Inthe Name column under the Dashboard tab of the console click the link for the CreditRatingService BPEL process 6 In the test form that appears enter any nine digit number as the
40. ing a Synchronous service invoking an asynchronous service manipulating data elements defining parallel branches of execution managing faults managing timeouts defining correlation sets modeling user interactions calling Java components manipulating XML arrays defining complex multi step routing integrating XSLT and XQuery transformations sending and receiving emails interactions with JMS destinations and defining custom WSIF bindings ORACLE _HOME integration orabpel samples utils Contains a set of building block services shared by the BPEL samples Some of these may be useful samples as well For example the LoanFlow demo catches exceptions thrown by the CreditRating service and provides an example of how to catch and handle exceptions in BPEL The CreditRating service is just a building block that 1s useful for the LoanFlow and other demos However it can also be sued as an example of how to return an exception to the client of a BPEL process Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 56
41. ion is currently paused are highlighted and as you can see below the process is currently waiting for the StarLoan service to call back with a loan offer Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 45 Z d p nue s d oe initiate TES THOLE service tinveke inpurvariablas lIcarkpplicaricn parrpeEeLink UnirzedcLoab3ervice poErrLTtype zepyicestrLoar3ervice Y aie Ei Ei rh p amp es ulir af ch amp Feasts ervick zZrmcmitum apersticn rnFEsmsult pmrtrerlinkse lrmritertlrarncerwire HAEEipbkbeUnirsdLo amp sn spBr8 warabe lamnmcrfferlL Links E P m BH v 2 HTA E TET Kor n clipsaz er xmbs hito trary auteloan comins zutoloan BEE Ty pee sepyicga Loakp3erviceCcaLlpack wariablkemMIioan feEki fx cie ID Urite Loan zy BB CJUBDGIBOC gia ENFENFENFENRENRZNELINENRENREZNEINENRENRZNEINENRENRZNREINENRENTZNEENENRZEUEZNHENENRZETZNE mocks the zep loan provider Staclosn Eae mmm mms mm rua rurar rrr mis conari neg s STR WEIN ie ue intriare LEE TE LE epic invoke inpukEWarisblaes irsrkpplicmsticn mima ioka tarlon npsrmat parrbeEkrLink 3rarLoarkService poErrrypet sepyicesrLosap3ervice fb i 5 1 feceivea Ehw r ult af Ehe renaks sHrvirs receiv operatinn conFerult partnerLink ZtarLoanSerwvice i partt Tipe epee deed Lenis ar ik Eh E l Back ir iab laa lganif iari fh el seqience Clase Watch Window SAT Lows nn CSL Eee ae jec
42. lex LoanFlowPlus tv 29 09 05 1 0 15 33 15 CreditRatingService 610 Instance 610 of TaskManager kw 297 09 05 LoanFlowPlus TaskManager 1 0 15 33 14 mangan 608 Instance 608 of StarLoan v 1 0 28 09 05 TaskActianHandler StarLoan 16 33 13 TaskManager UnitedLoan Recently Completed BPEL Process Instances More wf 609 Instance 609 of Unitedloan v 1 0 29 09 05 UnitedLoan 15 33 13 Deploy Mew f 607 Instance 607 af CreditRatingService 29 09 05 Process CreditRatingService v 1 0 16 33 12 Logged to domain default Oracle BPEL Console v10 1 2 0 0 E j http alex 9700 BFELConsoletdefaultidisplaw Instance jsp referenceld bpet ilocal fas Local intranet a Note that everything that you see in the BPEL Console is available via an API as well In fact the BPEL Console itself is just a set of JSPs that can serve as a code example of how to use the BPEL Server APIs Developers frequently use these APIs to build custom process dashboards search screens and other interfaces so users and administrators are able to more efficiently access and manage process instances This is particularly common as applications go into production where there may be thousands or even millions of process instances to manage Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 43 5 Once you select the LoanFlowPlus instance in the console you will see the visual audit trail which shows the current st
43. ntDemo showcases how a BPEL process can be instrumented to properly manage run time exceptions see http otn oracle com bpel for more information SalesforceFlow showcases how the Salesforce com sForce web services can be integrated into a BPEL process including authentication session management and https services Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 55 TimeOffRequestDemo showcases how to model user interactions and workflow tasks within a BPEL process ORACLE _HOME integration orabpel samples hw Contains the source code for the tasklist worklist application which ships with the product providing a GUI for viewing and acting on tasks assigned from BPEL processes or elsewhere using the Workflow service bundled with BPEL PM ORACLE _HOME integration orabpel samples interop Contains a set of BPEL projects showcasing the interoperability of the Oracle BPEL Process Manager with Web services implemented with Microsoft Net Apache Axis and BEA WebLogic ORACLE _HOME integration orabpel samples references Contains a BPEL project for each activity and concept defined in the BPEL language A good way to learn about and try out a specific feature before integrating it into a larger BPEL process ORACLE _HOME integration orabpel samples tutorials Contains a set of fairly simple BPEL processes targeting the various tasks a BPEL developer is exposed to including building your first BPEL process invok
44. ot jen ena p po anana ina Ex VEO ei aa nan o NES EE eR UR a Un NEAR EXE ad aba aa Nah 8 EXAMPLE I YOUR FIRST BPEL PROCESS eese sean poss eso rape eo eoe pha e eae pA DIES eoe aU AS FERE e SORS Fe Ye E URL e een 10 EXAMPLE II A LOAN PROCUREMENT BPEL PROCESS eere eee esee eee 000000000 00000000000000 3l 90 ADDITIONAL EXAMPLES siccssiccscusscavcabontscteneiesteausesonseconeuuacversonsetou eevvenshassaedesdaucevsbsneddsonsenseeensonaes 55 Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 2 BPEL the Cornerstone of SOA TOWARDS CONNECTED APPLICATIONS An increasing number of companies are looking at SOA and Web services as an architectural blue print and a set of standards for addressing the integration requirements involved in building connected applications While SOA has been a best practice for over a decade there has been confusion around which standards to adopt BPEL and Web services standards have solved this problem by addressing common application requirements in an open portable and standard way SOA enables business agility by maximizing leverage of existing resources while minimizing the cost of deploying new services into a business process Enterprises adopting these standards and architectural approach are already achieving significant ROI from using the same standards based approach to building connected applications that they have used for building web applications with Java J2EE Requirem
45. otn oracle com bpel Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 30 Example Il A Loan Procurement BPEL Process In this example you examine how a more sophisticated BPEL process can be implemented and executed using the Oracle BPEL Process Manager THE LOAN FLOW PLUS PROCESS Most business processes will be much more complex than the simple example you created in the previous section Fault handling interaction with asynchronous services user manual tasks Java J2EE code integration and custom user interfaces portals are all key requirements for many business flows Here you will see how you would build test debug and manage a BPEL process that implements all of these requirements The process is called LoanFlowPlus and is shipped with the samples for any Oracle BPEL Process Manager installation in the directory integration orabpel samples demos LoanDemoPlus The requirements implemented by this application are shown in the diagram below PORTAL T Grm pel SM dorsi e Gal Ang d sip PORTAL This process is a long running BPEL flow which takes a LoanApplication document as input and then will asynchronously return a selected and approved loan offer At the Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 31 beginning of the execution of the process it fetches a social security number for the customer from an EJB accessed as a service through the native EJB WSIF binding and th
46. portType client CreditFlow operation initiate variable ssn createInstance yes gt lt Asynchronous callback to the requester gt lt invoke name callbackClient partnerLink client portType client CreditFlowCallback operation onResult inputVariable creditRating gt lt sequence gt The process is editable from both the source view and the diagram view interchangeably Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 16 Switch back to visual design view 1 With CreditFlow bpel open and active click the DiagramView tab at the bottom of the CreditFlow bpel window to return to the Diagram view ADD ACTIVITIES TO THE PROCESS MAP You are now ready to edit the process To insert a lt scope gt activity A BPEL scope is a collection of activities that can have its own local variables exception handling compensation and so on very much analogous to a programming language block 1 Inthe BPEL Component Palette on the right make sure Process Activities is selected in the drop down 2 Drag a scope activity from scope on the BPEL Palette to the available position between the receiveInput lt receive gt activity and the callbackClient lt invoke gt callback element Partner Links E G E C a A gt i Receive ES p Repl a e client IK i Scope b Sequence callbackClient C Quick Start Tutorial Oracle BPEL Process Manager 10 1 2
47. r at http otn oracle com bpel INTERACT WITH AN ASYNCHRONOUS LOAN PROCESSOR SERVICE Once the loan application document has been filled in it will be sent to the two asynchronous loan processor services In this section we examine what is required to interact with an asynchronous service in a BPEL process As mentioned previously BPEL has support for asynchronous activities at its core and the Oracle BPEL Process Manager supports a dehydration capability so that flows are reliably and efficiently persisted to a datastore along with all their current state information whenever they are waiting for asynchronous events In addition BPEL enables support for several standard methods of correlating asynchronous messages so that asynchronous callbacks can find their way back to the appropriate waiting process instance Specifically the current release of the Oracle BPEL Server supports both the correlation set mechanism which uses message content for correlation and the WS Addressing specification which uses SOAP message headers for correlation of asynchronous messages To see how the LoanFlowPlus process invokes the UnitedLoan service and waits for its asynchronous callback expand the collectOffers scope and double click the invoke activity in the left hand sequence labeled invokeUnitedLoan as shown below Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 35 Late prepareApplicatian Pzo b
48. ration Content Ig bpel xml ea LaanFlowPlus bpel at eu LoanFlowPlus vsdl a fi X SLoanFlowPlus bpel EEN ow Partner Links creditRatingService i E b StarLaanService A E exceptionManager Drill Down Stack r 5 Fartner Links yg 2 customer Service El c UnitedLoanservice Ec C T 4 Ti 4 confirmationManager getCustomerssh Uo Applications Connections x LoanFlowPlus bpel Structure ox 92 pP s e getCreditRating Tod p create Edit Dele at P EN E sues E client You can see that the creditRatingService is the same synchronous service used in the previous section however the StarLoan and UnitedLoan services are asynchronous supporting a one way initiate operation and an asynchronous onResult callback which will be called after a loan offer is ready from each service That could take anywhere from a few seconds to a few days or more As with your previous process the client interface to the LoanFlowPlus process itself is also asynchronous 7 In the center swim lane of the Designer you will see a visual representation of the whole process Keep in mind that the BPEL Designer uses standard BPEL source as its native format so you can always select the BPEL Source view to see the underlying BPEL source code and or make changes in either view and see those changes represented immediately in the alternate view Here you will see that the BPEL Designer view s
49. rocedure 4 JMS Adapter service can send and receive messages From a JMS queue or topic An Oracle Applications service can send and receive C2 Oracle Applications ee messages From an E Business Suite interface CONFIGURE THE lt INVOKE gt ACTIVITY Now you will need to associate the invoke activity with the partnerlink you just created 1 The easiest way to do this 1s to select the blue arrow on the right of the invoke activity and drag it onto the creditRatingService partnerlink client PZoccbDbbloc After taking this step the Edit Invoke wizard appears The Partnerlink Field is already filled out The Operation drop down box has the operation process selected the creditRatingService only provides one available operation 2 Type invoke CRS in the name field You need to specify an input variable and an output variable These two variables are passed to and received from the creditRatingService Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 21 3 The wizard allows you to create a new variable or select existing variables You will create new variables by selecting the wand icon on the right of the variable fields A new Create Variable wizard appears accept the defaults or specify your preferred variable name and select OK Complete this step for both the Input and Output variables Edit Invoke BE xl Ny Invalid Settings p Errors 3 s General Correlations Sensors Adap
50. ronous services into collaborative and transactional process flows BPEL benefits from 15 years of research poured into its predecessor languages XLANG and WSFL Web Services WSDL as component model XML as data model data loose coupling Sync and async message exchange patterns Deterministic and non deterministic flow coordination Hierarchical exception management Long running unit of work compensation Since the BPEL specification was submitted to OASIS in March 2003 it has gained the support of nearly every major industry vendor including Oracle Microsoft IBM SAP Siebel BEA and Sun With the list of vendors committing to support for BPEL growing every day and several BPEL server implementations publicly available the standards war in the business process space appears to be over And this is a great thing for enterprises who can now implement their business processes in a standard and portable way avoiding vendor lock in to a degree that has not been possible before Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 4 The Oracle BPEL Process Manager INTRODUCTION The Oracle BPEL Process Manager provides a developer friendly and reliable solution for designing deploying and managing BPEL business processes DESIGN DEHTDIEATE B WSDL Bindri AE BPEL Engina The BPEL Designer provides a graphical and user friendly way to build BPEL processes What is unique about the Ora
51. s with the BPEL Server that allows you to easily include human workflow into your processes By implementing this as a true BPEL service the interface to these services is described with WSDL and people can be included in 100 standard BPEL processes to the BPEL process the person manual task looks like any other asynchronous Web service The LoanFlowPlus application illustrates manual task support in several places for exception management as described previously and for the approval step where the flow waits for the customer to confirm the selected loan offer before completing To see how a human workflow is implemented look in the BPEL Component Palette it contains a User Task activity that can be dropped into a process flow This will instantiate Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 37 a wizard that leads you through selecting assignees approval patterns and notification channels Wai The User Task palette element 1s a templatized activity that allows the developer to treat a user task as a higher level abstraction although it is implemented as a series of BPEL activities As you can see if you expand both the confirmationManager scope and the confirmationUserInteraction sub scope there is first a number of assign activities then the process makes a call out to the confirmationManager partnerlink This is the representation of the pre built taskManager service within Oracle BPEL Proce
52. shion by using the EJB WSIF binding so they can participate in the BPEL engine s own transaction BankTransferFlowWithCompensation demonstrates how XA and compensating transactions can be mixed and matched in a BPEL process CheckoutDemo showcases how to do a 2 step receive reply receive reply between the client and the BPEL process This is sometimes called UI orchestration and is not always a best practice but can be useful sometimes GoogleDemo showcases how a Google Web service can be integrated into a BPEL process HotwireDemo showcases how to use correlation sets to create sophisticated and stateful interactions between a client and a BPEL process IBMSamples showcases how the BPEL samples shipping with BPWS4J can be executed on the Oracle BPEL Server LoanDemo showcases how to integrate a synchronous credit rating service and two asynchronous loan processor services into an end to end loan procurement application with a JSP UI to initiate the process and view loan offer results LoanDemoPlus is an extension to the LoanDemo sample showcasing Java embedding exception management including manual processing steps and development of a richer custom user interface ParallelSearch showcases the ability of the BPEL server to perform parallel synchronous invocations PriorityDemo showcases the support in the BPEL server for setting priorities for different processes and instances and how those affect execution Resilie
53. ss Manager ma LoanFlowPlus bpel D x 53 a 7 D B Ej amp Drill Down Stack xz E setPayload LBGREEC a initiate T ask Li K receiveTaskResult readPayload k APIs are provided so that clients can query the tasks assigned to a user update the task data and complete or cancel the task In addition check out of tasks for group role support expiration of tasks escalation and other common user task requirements are implemented by the task service itself Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 38 In the LoanFlowPlus application all user interaction is handled by custom Java Server Pages utilizing the Java API During the customer confirmation you interact with the process through the LoanFlowPlusUI interface and you interact with the exception handler through the ExceptionDashboardUI interface http localhost 9700 LoanFlowPlusUI and http localhost 9700 ExceptionDashboardUI respectively Oracle also supplies an out of the box Worklist application that can be used and customized to handle human interaction within a workflow enabled process A LoanFactory Microsoft Internet Explorer E MIRI File Edit View Favorites Tools Help Ar f i 2 Za amp Nx o Back L ix i2 5 A Search sie Favorites a Media gt Address http lacalhast 9700 LoanFlowPlusUI Homepage html bul Go Links gt a aia anae aia a a a a aia a a aia a a aan a a
54. ssage formats other than SOAP Bindings are available for Java JMS email JCA HTTP GET and POST and many other protocols enabling simple connectivity to hundreds of back end systems WSIF allows you bind directly and transparently to any backend protocol or programming construct so you get the benefits of a loosely coupled Web services architecture with the performance and transactionality of native protocols The BPEL Console provides a mature web based interface for management administration and debugging of processes deployed to the BPEL server Audit trails and process history reporting information is automatically maintained and available both through the BPEL Console and via a Java API HOW IS IT DIFFERENT The power of an open standard By capturing your business processes in BPEL you protect your intellectual property and investments while avoiding vendor lock in BPEL is to business process management what SQL was to data management Unparalleled visibility and administration The BPEL Console reduces the cost and complexity of deploying and managing your business processes Visually monitor the execution of each BPEL process drill down into the audit and view the details of each conversation or debug a running flow against its BPEL implementation Dramatic cost savings The Oracle BPEL Process Manager is 60 80 less expensive to buy and maintain than traditional EAI solutions Open and flexible binding framework Orchestrate
55. t Dest OIIE 4 If losercttec is geetatec morse than lLoanoZfeEgZ gt spara condibionetbpezs gstUmrimbieDatai lomnofferl naylomd muta lnanoffmer mukn APR b BES garvar ab Leh Looe ters payload auto Lab taek gurta APR M x lt Then cake lpanOfferz r sign paste gelectStarlLoancrree gt 100p sirom pact paylosd vacishle loanttterca i gt cto pares payload variables selertedLoan rfer h z d Resin Wen 11 of 102 BE Local rr arat D You can select variables in the debugger to inspect their current values Shown above is the value of the loan offer variable that contains the result of the UnitedLoan service callback operation As you can see UnitedLoan has approved the loan application and returned a 5 7 interest rate loan offer COMPLETING THE ASYNCHRONOUS STARLOAN SERVICE 10 If you now want to complete the process you can bring up a StarLoan customer service rep dashboard since StarLoan requires manual processing of loan applications Naturally StarLoan has also been implemented as a BPEL process though implementations are available where StarLoan is built with other Web services toolkits such as Microsoft Net Apache Axis etc and serves as an additional BPEL code example To play the role of the StarLoan loan officer point a browser at http localhost 9700 StarLoanUI home jsp Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 46 A Oracle BPEL
56. tWrkspce CreditFlow CreditFlow bpel oO Sensors o BPEL suitcase generated in Q 0raBPELPM_l integration jdev jdev mywork Quickstartilrkspe CreditFlow output bpel Ed 10 42 02 Successful compilation 0 errors 0 warnings Show Detailed Node Information Q OraBPELPM_1 integration jdev jdevmywork QuickStart wrkspc CreditFlow CreditFlow bpel Map File editing REVIEW THE WSDL INTERFACE OF YOUR ASYNCHRONOUS BPEL PROCESS You will now review and in the next section edit the WSDL file for the process To view the WSDL interface 1 Inthe Navigator double click the CreditFlow wsdl file to edit it 2 Scroll down as necessary to browse the code The most interesting parts are pointed out below Notice that the New Project wizard has defined both a CreditFlowRequest complex type element that your flow accepts as input in a document literal style WSDL message and a CreditFlowResponse element that it returns Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 13 Because this process is asynchronous two portTypes are defined each with a one way Operation one to initiate the asynchronous process and one for the process to call back the client with the asynchronous response lt portType implemented by the CreditFlow BPEL process gt portType name CreditFlow gt operation name initiate gt lt input message client CreditFlowRequestMessage gt lt operation gt lt portType gt
57. tarted Finished arai Sep 20 05 Sep 20 05 0 4 Completed 02 45 PM 2 47 PM Sep 22 05 Sep 27 05 12 53 PM 05 43 PM 4 Completed In addition the 10 1 2 0 2 release of Oracle BPEL Process Manager adds some built in reports to the BPEL Console to enable process optimization An example is the process time distribution report shown below invokeCR invoke invokeUnitedLoan invoke receiveInput receive selectBestOffer switch prepareTitle assign initiateTask invoke receiveTaskResult receive reply Output invoke assignRequest assign copyRating assign Count 125 69 116 65 93 45 75 92 128 45 Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Qlocalintanet Oracle also provides a Business Activity Monitoring BAM product that integrates tightly with the Oracle BPEL Process Manager Oracle BAM gives business executives the ability to monitor their business events and processes in the enterprise to correlate messages and define KPIs key performance indicators and most importantly to define alerts and take corrective action based on real time information accessed through a live data thin client web interface di uri Piper omii hire Inte Lew Le BAM Pre ssing Totals Appraised and teen d HE oe ordi Chock Excoopiions Agent Precariat in Progress Oracle BPEL Process Manager integrates easily with Oracle BAM For example the BPEL Designer includes support for
58. ters Mame lInvoke_CRS Partner Role Web Service Interface Partner Link a creditR atingService x go Operation Th process id Input variable lInvoke_CRS process Inputvariable go 1j Output Variable lInvoke_CRS _Process_Outputyariable p D Help Apply OK Cancel 4 Select Apply and OK You have now configured the Invoke activity to call the creditRatingService partnerlink Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 22 ee lracle Jevelogerr iig Dirk StartWrkspr ws SEPIUS DE ira PLAH L imnlenratinn dew ires monwmrk Gia art WrEspe Ere TTE irre mem la xj free ey ELLI mas JEN BadgHuaS oF teat een stone Bean 3 Crediti bpe Shukhee nx e asf Ta Wim WE R54 J Var kaksi E iJ Pli kaja T vires L Correlation Sets Ld Propet Scheinas nem s qa Patres Links Diagram Mire source doy Pastreertind cient Dy Pastrertink creda Rating X remenan BPEL Messages Saeed ASE A janget KA jemg is Start pel Crece Cdi ed Han fia editing INITIALIZE THE INPUT VARIABLE Now you will use XPath and the BPEL assign activity to perform simple data manipulation to initialize the input variable you are passing to the credit rating service 1 Drag an assign activity from the BPEL Palette into your flow just before the invocation of the credit rating service but within the getCreditRating scope Quick Start Tutorial Oracle
59. th a 0 and click Post XML Message to initiate the process Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 27 E DILE le BPEL Comoe v11 1 2 1L8 Micros Intenet Explorer Pile Edt Yew Favorites Tools Help daBwk QR oz Deh roe Ards 23 0 E Go Addens 13d hip lse a T00JEPELCoreoee def act Ee passe pce Bp proces de Cre Foe eon ged 0 ORACLE BPEL Console Hanage BPEL Domain Logout Support Dashboard BPEL Procecces Activities BPEL Precesn ra Pha Herian 1 Lila tila amp etivi Statistica D Open Enztanezz d clari rte nies hal ars Initiate ie eriptor WSL PT ea Souris Tnsbng Has BPEL Process Initiating a test Instance HTML Form To create a new rast mistance of this BPEL Process Fil thes form and chock on the Post ML Massage button CreditFlawPracessReguest oon ize Sare as default input ad optional massage header properties Perform stress test Post SAL Message Logged to domani default Oracle BFEL Console 10 1 2 0 0 c IEEE bopopoBHwedeem 0 cao To view the visual audit trail of the instance 6 Click the Visual Flow link to see a visual audit trail representing the current state of the process instance Note that because this process is asynchronous and long running you do not get the result returned right away like you did when testing the CreditRatingServce Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 28
60. tion A Advanced Exception Management Side by side versioning D Large XML documents Page 7 Installation Instructions Theses instructions are based on the10 1 2 release of the Oracle BPEL Process Manager and will guide you through the developer edition installation PREREQUISITES e Windows XP Windows 2000 with Service Pack 3 Windows 2003 with Service Pack 1 Sun SPARC Solaris version 8 and 9 Red Hat Enterprise Linux AS ES 2 1 and 3 0 or SUSE Linux Enterprise Server 8 and 9 e GB of disk space a minimum 1 GB RAM and minimum 1535 MB of swap space e Internet Explorer 6 0 e Monitor configured to display at least 256 colors DOWNLOAD AND INSTALL The Oracle BPEL Process Manager is available for download at http otn oracle com bpel This Quick Start guide uses the Oracle BPEL Process Manager for Developers installation type which installs both the JDeveloper BPEL Designer and the Oracle BPEL Process Manager The installation will also include and deploy a stand alone Oracle Containers for Java OC4J instance and an Oracle Lite Database The same installer can be used to deploy a Middle Tier installation of Oracle BPEL Process Manager If you wish to use this install type you would previously need to have installed Oracle Application Server J2EE and Wireless as a minimum and an Oracle Database configured with the Oracle BPEL Process Manager schema Most of the instructions here apply equally to the WebLogic and JBoss
61. tion riathodHame getCustomsesrssN paramererdrder amail nrerface remote returmmnFart sspn gt lt input nzmaz GmtCustommergsaNRpquest gt z ilgpul namez GelCustemerssSNRespanse gt fault names CustamaerWatFoundExcaptlan s gt lt fopergtion gt z binding zi 2 service names z Ousbomars amp ervica cport namaz EJBPrt binding tns78Binding gt ze I sejb address class are eam atm sarnples Custarmer amp eryieeHarne jeditare ejb secsion Customersenice initislcontestFactorys ponm avarmdnd saervgr rmi RMIEnlElaltcontextFactorny jndiProuiceril2Ls ormi alaw Custonmmr amp arvioa jo Sport gt Za SE CED pirk partmarLmk Type nama CustimmerSarvica cpink role name CustomerdgerviceProvider gt zpnk parrType name Dis us bpe arina gt pink ree irk partnierLm Ek T ypes Aka Fm IH DG Gio EE This means that the EJB is being accessed as a WSDL described service where WSIF is mapping the operations to EJB methods Note that JDeveloper 10 1 3 will automatically generate WSDLs with Java and EJB bindings for POJOs plain old Java objects and EJBs in addition to the currently supported SOAP bindings BUILD A CUSTOM USER INTERFACE FOR INITIATING THE BPEL PROCESS All BPEL processes are themselves Web services In addition the Oracle BPEL Process Manager also provides a Java API for invoking deployed BPEL flows fetching state status information from active instances etc Frequently a BP
62. toolbar select Save All Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 26 2 To compile and deploy your BPEL process right click your project CreditFlow and select Deploy gt LocalBPELServer gt Deploy to default domain ip Applications En QuickStart wrkspe B E credia Mew Ctrl M T mii Add to Project 7 Deploy m Pk Make ickrl Fa T Invoke Deployment Tool e Refresh iik Rebuild Alt F9 tef Run Debug 3 cs ic versioning E Ai os 7 Compare With re Project Properties If this is the first project you have installed you may need to select Refresh before you can see Deploy to default domain A connection to the default domain on the local BPEL server is created by the install process you can view it in the connections tab on the Navigator window 3 Enter the default domain password at the prompt By default the password 1s bpel As the final step you will test your BPEL process by using the automatically generated test interface in the BPEL Console similar to what you did at the beginning of this tutorial if you tested the deployed credit rating service To initiate a test instance of your BPEL process 4 Bring the BPEL Console into view The BPEL Console can be found at http Iocalhost 9700 BPEL Console 5 Click CreditFlow on the Dashboard and in the automatically generated HTML Form interface that appears enter a nine digit number that does not begin wi
63. ttp tutorial oracle com Template asynchronous BPEL Process Project Content v Use Default CreditFlow rkspcicreditFlow nijdeviidevimyworkyouickstartw c The new project will be created in the C Oracle Home integration jdev jdev mywork QuickStartWrkspc CreditFlow directory You can see in the center pane within BPEL Designer that the New Project wizard has created a skeleton for a new asynchronous BPEL process with all the necessary source files The file names are the same whether you create a synchronous or an asynchronous process but the contents of the bpel and wsal files will differ as appropriate If you would like to go through a tutorial of creating a synchronous BPEL process a simple HelloWorld tutorial is available at http otn oracle com bpel which shows how to create a synchronous BPEL process with the Designer Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 12 Note that JDeveloper is now showing 5 key panes the center pane displays the BPEL process itself The Navigator on the left displays workspaces projects and project source files The Structure pane on the lower left shows further information about the currently selected file in the center pane and there is a Message Log on the bottom of the screen that displays the status of the project The final pane is the Component Palette on the right of screen that displays the
64. u can treat the EJB service just as you do any other service which has a WSDL interface and create a partner link for it in your BPEL process Functionality offered by the Enterprise Java Bean is mapped directly to the services WSDL interface through an EJB binding You can see this binding in the WSDL shown below Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 39 JU ANDE PA ontegrabon crabpel sange v demos nantienoPlus inant iiet Customer Service asui iirreolt Inbereet Explorer oo la gt Fie Et Wev Fevobe Took Help EJ daBwk QR d oj seach roe Hds 23 T5 d A Lalekna E C jrsEPELPH d nbecracioniorsbpef camplesdeawas iL oanDe nioPlusi Loan kapha Tushar Service pend ae une zinput nemas rgtcustomgragsNREg amp sIQquast message ths GetGustomersshRequastassage gt zogtput namez GebtcustormersSNRespanse message EnsctGietGustamierssNEespariseNiessege an ziali names CustomarNatFnundEsxcoaptlan messaze EnssCustamarWotFopdundFaultWessaa gt c onerationz port Type l i J binding namez EJ amp Bandinmg te ths Customeservice gt zeb birding F gt cformatityoeMepping encoding Jayva stide jara zfprmat tyneMap tynefiames usd string format Typas java lang Btring gt zformat tyneMap typet4amez otns CustormerNnptFaundExceptianTyprs tormatTyne cnrm otn sanmqies custamermdotiknarmmEsecaptiomn eformat tvaeMsppings GEDONGAN namce getcCustomerssN gt zejb apera
65. urrent in flight instances of prior implementations of the process In addition the BPEL Console can be used to turn off an entire process undeploy a process or retire a process such that existing instances can complete but new instances of the process will not be allowed 14 This functionality is available through the process management tab To see this tab select the name of a deployed BPEL process in the BPEL Console and then click the Manage tab on the left ORACLE BPEL Console Manage Dashboard BPEL Processes BPEL Process LoanFlowPlus Version 1 0 Lifecycle Active Statistics Open Instances 1 Closed Instances Manage Initiate Descriptor WSDL Sensors Source Managing this BPEL Process Process Lifecycle When the process lifecycle is active instances may be instantiated fram the process when it is retired no ne instantiated but existing instances are permitted to complete normally Active Retired Process State The process state controls overall access to the process When the state is on instances may be instantiated new instances may be instantiated and access to existing instances and activities belonging to the process will on C off Apply Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 50 BUILD A REPORTING DASHBOARD A killer feature of automating a business process is often to provide greater visibility into process state information This is often realized
66. y external dependencies As in the previous section the LoanFlowPlus process is dependent on several external services which you can quickly build and deploy using the obant command To do this 1 Open up a command prompt if you do not already have one open 2 Change to the orabpel samples demos LoanDemoP1lus directory as follows gt cd Oracle_home integration orabpel samples demos LoanDemoPlus 3 Execute the obant command gt obant This will build and deploy the loan services and other pre requisites required for the LoanFlowPlus process as well as the process itself Launch the BPEL Designer 4 You can now use the BPEL Designer to review the BPEL implementation of the LoanFlowPlus process To do this start up the Designer as you did in the previous section and ensure the QuickStartWrkspc you created earlier is highlighted Then select File Open and in the explorer window that appears navigate to Oracle_home integration orabpel samples demos LoanDemoPlus LoanFlowPlus and select the LoanFlowPlus jpr file This is the LoanFlowPlus project file Quick Start Tutorial Oracle BPEL Process Manager 10 1 2 Page 32 Select Open The LoanFlowPlus project opens in the Navigator Open LoanFlowPlus gt Integration Content and double click LoanFlowPlus bpel to open the BPEL file in the main window Lg Applications Navigator rig r9 9 fm r1 Applications Ee Quickstart Wrkspe pj CredikFlgw ie E LeanFlewPlus a Integ

Download Pdf Manuals

image

Related Search

Related Contents

4150 HART Communicator User Manual 9R000053-B  Pro Tools 9.0 の新機能  Gestion des eaux du bassin de la Haute Comoé (Burkina  KT-02U 取扱説明書ダウンロード(1.31MB  取扱説明書・ 承認図  OpenStage 60 T/80 T HiPath 500/3000/5000  GRAPEVINE INTERACTIVE - Business Messaging Services Manuals  User`s Manual  i3 International AX51D8  電波時計(メロディ報時付置時計)取扱説明書 アルカリ電池について 電池  

Copyright © All rights reserved.
Failed to retrieve file