Importing EJB or Java Web Services

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 orchestration BPM, he does not need any other type of services.

  1. Design and Generate EJB or Java Web Services in an OOM component diagram - Select Language > Generate Java Code to generate the Web services files, which appear in the project in the WorkSpace navigator (see Object-Oriented Modeling > Building OOMs > Web Services > Generating Web Services for Sybase WorkSpace).
  2. Import the EJB or Java Web Services into a BPM as service providers - Select Tools > Service Provider Import. The new service providers appear in the Model Explorer (see Importing a Service Provider from an OOM or a PDM).
  3. Invoke Services - Associate service operations to <<Undefined>> processes that represent interactions with internal and external applications. Right-click an <<Undefined>> process and select Invoke Existing Service. You can also select a service operation from the Implemented by list in the Implementation tab of the <<Undefined>> process property sheet. See Service Invocation.
  4. Organize Service Orchestration - Define the different orchestration items of the model. Create <<Send>> and <<Receive>> activities, implement other processes, and define decisions.
  5. Check the Model - To verify that it conforms to the Sybase WorkSpace Business Process language standard.
  6. Generate Sybase WorkSpace Business Process files - Select Language > Generate Sybase WorkSpace Business Process 1.0 code. Previously imported services are preserved in the WorkSpace environment. See Generating for Sybase WorkSpace Business Process.
  7. Use the Business Process Service Editor to continue process implementation.