# Step 1: Create Your Business Process Application

In this step, you use WebLogic Workshop to create the application, in which you build the tutorial business process (RequestQuote.jpd). The tasks in this step include:

- To Create a Business Process Tutorial Application
- To Begin the Design of Your Request for Quote Business Process

To Create a Business Process Tutorial Application

1. From the WebLogic Workshop menu, click File —> New —> Application. The New Application dialog box is displayed.
2. In the left pane of the New Application dialog box, select Tutorial, then in the right pane select Tutorial: Process Application.

3. In the Directory field, select the directory in which you want to create your application.
4. In the Name field, enter Tutorial_Process_Application.
5. Click the arrow beside the Server field to display a list of servers, then choose the sample integration server. For example, on a Windows system, the path to the integration server is:

    BEA_HOME\weblogic81\samples\domains\integration

where BEA_HOME is the directory in which you installed WebLogic Platform.

6. Click Create.
7. The Tutorial Process Application is created and displayed in the Application pane. If the Application pane is not visible in WebLogic Workshop, choose View —> Application from menu bar.

The Application pane displays a hierarchical representation of the files and resources available in your application. It includes the following components:

Tutorial_Process_Application—The application folder.

Schemas—A Schemas project that contains the XML Schemas and the Message Broker channel file used in the application.

Tutorial_Process_ApplicationWeb—A Web application project folder. Every application contains one or more projects. Projects represent WebLogic Server Web applications. In other words, when you create a project, you are creating a Web application. (The name of your project is included in the URL that clients use to access your application.)

Web Applications are J2EE deployment units that define a collection of Web resources such as business processes, Web services, JSPs, servlets, HTML pages, and can define references to external resources such as EJBs.

Note: The Web application project folder is named by appending Web to the name you gave your application.

requestquote—Contains your project files and folders:

- services folder contains services with which your business process interacts. The services folder includes Web services, Web Service controls, business processes and Process controls.
- testxml folder contains XML files which you can use to test the completed business process.
- FileQuote.jcx—A File control used by your Request for Quote business process to write a file to the file system.
- PriceAvailTransformations.dtf—Contains data transformations used in RequestQuote.jpd.
- RequestQuote.jpd—The completed business process. (The tutorial walks you through rebuilding this business process. It is provided for reference, and allows you to run and test the business process before you start rebuilding it.)
- RequestQuoteTransformation.dtf and TutorialJoin.dtf)—Contains data transformations used in RequestQuote.jpd.
- XQ files—An XQ file for each transformation method on a DTF file. XQ files contain the queries (written in the XQuery language) called by the DTF files in your project.

Note: If you want to run and test the RequestQuote.jpd provided for you in the application folder, complete the steps in Step 12: Run the Request Quote Business Process.

8. In this tutorial, you build the RequestQuote.jpd from scratch. Therefore, to proceed, you must delete the following files from your Tutorial_Process_ApplicationWeb project:

- RequestQuote.jpd
- RequestQuoteTransformation.dtf including its XQ files:

RequestQuoteavailProcessor_avail.xq
RequestQuoteavailProcessorGetAvail.xq
RequestQuotepriceProcessor_returnPrice.xq
RequestQuotepriceProcessorGetPrice.xq
RequestQuotetaxCalculationRequestTaxRate.xq

Note: To delete these files, put your mouse pointer in the Application tab, then press Shift and select the files you want to delete. Right-click and select Delete 7 files. Delete only the files listed in this step. You need all other files as you build the business process. Files are deleted from the Application pane (and from your application folder in the file system).

To Begin the Design of Your Request for Quote Business Process

In this step you start the process of recreating the RequestQuote.jpd business process in the requestquote folder.

1. In the Application pane, under the Tutorial_Process_ApplicationWeb\requestquote folder, right-click the requestquote folder to display a drop-down menu.
2. Choose New —> Process File. The New File dialog box is displayed.
3. In the left pane, select Processes, then select Process File in the right pane.

4. In the File name field, enter RequestQuote.jpd.

Note: As indicated by the file extension in the New File dialog box, you create a new JPD (Process Definition for Java) file when you create a process file. A JPD file is a JAVA file; it contains code for a Java class. Specifically, it contains the implementation code for a business process class.

5. Click Create.

The new RequestQuote.jpd file is created and displayed in the Design View (which for the moment consists only of a Start and a Finish node).

Related Topics

Components of Your Application