< Previous | Next >

Importing the prerequisites

Before you start to build the sample to generate a process from an assembly diagram, you first need to import the prerequisite resources.

The step-by-step instructions to build the sample assume that the prerequisite resources exist and have the required implementations, definitions, and values. This task launches the Import wizard with the prerequisite parts selected. Just click Finish to complete the import. If you already have some of these resources in your workspace, you will be prompted to overwrite them.

Click this link to launch the Import wizard; then, click Finish:

Import the prerequisites

Wait until all of the resources have been imported. When you first look at the sample folders, you will see some errors indicated below the Problems tab. The program was looking for a Web Services Description Language (WSDL) file that it did not find. This file was not included with the sample for legal reasons.

To import the required StockQuoteService.wsdl file, follow these steps:
  1. Go to the following Web site: http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl
    CAUTION:
    Because this is an external web site, we have no control over the content and the reliability of URL address provided. If you are unable to download the WSDL file and complete the following steps, there will be errors in your process and this sample will likely not run, but the sample can still be used as an excellent instructional tool on how to work with the editor to build a business process.
  2. Download the file, and save it as StockQuoteService.wsdl in a temporary directory.
  3. From the menu, select File > Import. The Import window opens.
  4. Click File system and then click Next.
  5. In the From directory list, type the name of the temporary directory that you saved StockQuoteService.wsdl in.
  6. In the navigation tree, select the check box next to StockQuoteService.wsdl.
  7. In the Into folder field, type eMergedLibrary\com\emerged\portal.
  8. Click Create selected folders only and then click Finish. Click Yes to overwrite the existing file.
Now you may browse the imported prerequisites. As you browse, notice the following resources, diagram, components and process:
  • eMergedLibrary contains several resources that can be shared across different modules if you import them, including:
    • The business objects that are used for representing the stocks and stock portfolio
    • Interfaces that allow components to communicate with each other
    • The single Web service port that accesses the stock quote Web service
  • In the Business Integration view, expand StockPortfolioModule and double-click Assembly Diagram to open the assembly editor, which will be displayed as shown in the following image:
    Imported assembly diagram
    The three figures shown are:
    • Stand-alone References, which is required so that non-SCA components outside the module can invoke the business process and evaluate the stock portfolio. For example, you would need stand-alone references if you wanted to create a Web interface to interact with your application using JavaServer Pages (JSPs) and Enterprise JavaBeans (EJBs).
    • PortfolioEvaluatorProcess, which visualizes the business logic of the application using activities and snippets.
    • StockQuoteService, which is an import component that you use to invoke a Web service and obtain stock quotes.

Feedback
(C) Copyright IBM Corporation 2005, 2006. All Rights Reserved.
< Previous | Next >