Chapter 18 Working with Sybase WorkSpace Business Process


Import EJB or Java Web services use case

A developer designs and generates EJB or Java Web services in an OOM. He then wants to import them as service providers into a BPM in order to reuse them for automating processes in his executable BPM, he does not need any other type of services.

The following steps are involved:

Design and generate EJB or Java Web services

You can design Java or EJB Web services for Sybase WorkSpace in an OOM component diagram. These services are designed in the OOM in order to be generated and further implemented with the WorkSpace utilities.

In the OOM, you generate the Web services files using the Generate Java Code command in the Language menu. The corresponding files appear in the current project in the WorkSpace navigator.

Note: make sure you save your OOM before proceeding to the next steps.

For more information, see the "Generating Web services for Sybase WorkSpace" section in the "Working with Web Services" chapter in the OOM User's Guide .

Import EJB or Java Web services

In the BPM you import EJB or Java Web services as service providers using the Service Provider Import command in the Tools menu. You can select which component to import into your BPM, the new service providers appear in the Model Explorer when import is over.

See "Importing and Exporting Service Providers" in the "Building an Executable BPM: Working with Service Description Objects" chapter.

Invoke services

Associate service operations to <<Undefined>> processes that represent interactions with internal and external applications. To do so, you can right-click an <<Undefined>> process and select the Invoke Existing Service command in the contextual menu. You can also select the service operation from the Implemented by list in the Implementation tab of the <<Undefined>> process property sheet.

See the "Service invocation" section.

Organize service orchestration

Define the different orchestration items of the model: create <<Send>> and <<Receive>> activities, implement other processes, and define decisions.

Check the model

Check the current model in order to make sure it contains no error that would prevent file generation. The check model feature verifies that the current model is conform to the Sybase WorkSpace Business Process language standard and may perform automatic corrections if need be.

Generate

Generate the Sybase WorkSpace Business Process files using the Language→Generate Sybase WorkSpace Business Process 1.0 code command.

When you generate, services previously imported are not replaced in the WorkSpace environment, generation preserves imported services.

See the "Generating for Sybase WorkSpace Business Process" section.

Implement

Use Business Process Service Editor to continue process implementation.

 


Copyright (C) 2007. Sybase Inc. All rights reserved.