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:
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:

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.