From the Application Navigator, expand bin, and then Resources.

3-22 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

4. From the JDeveloper main menu, choose File Save All.

5. In the Application Navigator, under the Resources node, right-click build.xml and

choose Run Ant Target and select the following ant targets in the specified sequential order shown in Table 3–8 . Table 3–7 Properties Required for the WebLogic Fusion Order Demo Application Field Description oracle.home The root directory in which you have Oracle JDeveloper 11g installed. For example: C:\\Oracle\\Middleware\\jdeveloper\\ soa.only.deployment false You set this property to true if you are using the OrderSDOComposite composite to place orders. This guide assumes you are using the Store Front Module to place orders. Therefore, you must modify this property to false. admin.server.host The DNS name or IP address of the Administration Server for Oracle SOA Suite for hosting applications. For example: soahost admin.server.port The port of the Administration Server. For example: 8001 managed.server The DNS name or IP address of the Managed Server for Oracle SOA Suite for hosting applications. For example: soahost managed.server.port The port of the Managed Server for Oracle SOA Suite for hosting applications. For example: 8001 server.user The Oracle WebLogic Server administrator. For example: weblogic server.password The password of the Oracle WebLogic Server administrator. For example: welcome1 server.targets The name of the Managed Server. For example: soa_server soa.server.oracle.home The location of where to store the deployment plans for the adapters. For example: C:\\AS11gR1SOA foreign.mds.type The location of the Oracle Metadata Repository. Leave the value to db and supply values for the mds.db.userid, mds.db.password, and mds.db.url parameters to specify the location of the MDS Repository. Set the value to leave the default value to jdev. You do not have to specify the values for the following parameters: soa.partition.name The partition in which to deploy the composites. For example: soaFusionOrderDemo Introduction to the SOA Sample Application 3-23 In the Apache Ant - Log, you should see the following message when the target successfully completes: BUILD SUCCESSFUL Total time: nn minutes nn seconds If you set up Oracle BAM after you run target server-setup-seed-deploy-test, you can still configure Oracle BAM for Fusion Order Demo by running one of these targets: ■ Rerun target server-setup-seed-deploy-test. ■ From the Application Navigator, right-click build_sca_composite.xml, OrderBookingComposite SOA Content choose Run Ant Target, and then select seedBAMServerObjects.

6. Go back to the sca-build.properties tab and modify the seed.bam.do parameter

to false.

7. From the JDeveloper main menu, choose File Save All.

3.6 Running Fusion Order Demo

You begin the ordering process in the storefront user interface, where you submit an orders. When an order is submitted, the Application Development Framework Business Component writes the order to the database and raises an NewOrderSubmitted business event using the Events Delivery Network EDN. The OrderPendingEvent mediator subscribes this event, and initiates the main BPEL process, OrderProcessor, to process the order. After you submit an order, you use Oracle Enterprise Manager Fusion Middleware Control for the Oracle SOA Suite installation to monitor how the OrderProcessor BPEL process orchestrated the orders. If you submit an order for more than 2,000, you can monitor how it requires human approval. The instructions for placing orders and monitoring them in detail with Fusion Middleware Control are available from Oracle Technology Network: http:download.oracle.comotn_hosted_docjdeveloperdoc11runningfod_ notes.pdf Table 3–8 ant Targets to Deploy the WebLogic Fusion Order Demo Application Target Description

1. validateFodConfigSettings This script validates the server settings, checks if the

servers are up, and also validates the MDS settings. If this script returns without error, proceed with target server-setup-seed-deploy-test.

2. server-setup-seed-deploy-test This script calls the following targets:

■ compile-deploy-all compiles, builds, and deploys all the SOA composites to the Managed Server. ■ seedFodJmsResources populates the JMS resources for the Fulfillment mediator. ■ seedDemoUsers adds jstein as the user to approve orders for over 2,000. When you run the demo, you place an order for 2,000 and log in to Oracle BPM Worklist as jstein and approve the order. 3-24 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite

3.7 Viewing Data Sent to Oracle BAM Server

If you configured an Oracle BAM server and a Managed Server for it, you can use the Oracle BAM Architect to view data sent to the server. For more information about using Oracle BAM applications, including Oracle BAM Architect, see Oracle Fusion Middleware Users Guide for Oracle Business Activity Monitoring.

3.8 Undeploying the Composites for the WebLogic Fusion Order Demo Application

To undeploy the WebLogic Fusion Order Demo composite applications: 1. Access the Undeploy SOA Composite wizard in Fusion Middleware Control through the options described in Table 3–9 . The Confirmation page appears.

2. Click Undeploy. Note that you are warned if you are about to undeploy the last

remaining revision of a deployed composite application. Processing messages display.

3. When undeployment has completed, click Close.

Table 3–9 Options to Access Undeploy SOA Composite Wizard From the SOA Infrastructure Menu... From the SOA Folder in the Navigator... From the SOA Infrastructure Home Page... From the SOA Composite Menu... 1. Select SOA Deployment Undeploy . The Select Composite page appears. 2. In the SOA Composite Deployments section, select OrderBookingCo mposite and PartnerSupplierCo mposite to undeploy them, and click Next. 1. Right-click soa-infra. 2. Select SOA Deployment Undeploy . The Select Composite page appears. 3. In the SOA Composite Deployments section, select OrderBookingCompo site and PartnerSupplierComp osite to undeploy, and click Next. 1. Click the Deployed Composites tab. 2. In the Composite table, select both OrderBookingCompo site and PartnerSupplierComp osite . 3. Above the Composite table, click Undeploy. Select SOA Deployment Undeploy.