Archiv

Autor Archiv

How To: Running the Code Generator on the Linux / Mac OS X

14. June 2010
SOPERA’s How-To Series

Sometime ago in SOPERA we decided that it might help our users if we were to produce a couple of “How-Tos” in which we would list tips, tricks, or describe the ways in which you can use various SOPERA product components effectively and quickly.

SOPERA’s code generator is currently designed to work only on Microsoft Windows Operating Systems. In this How-To, we’re going to show you how to run the SOPERA code generator on Linux or Mac OS X systems.

Running the SOPERA Code Generator on Linux / Mac OS X

To run the SOPERA code generator on linux:

  1. Zip the contents of the /ServiceStudio MS Windows folder into a zip file. (You can extract the folder form the toolsuit installation file also.)
  2. Copy this servicestudio.zip file to you linux user home path (for example, in /home/soadev).
  3. Extract the archive file to a directory (for example, into /opt/SOPERA/ServiceStudio).
  4. Translate the cmd files set-env.cmd, build.cmd and codegen.cmd to a Linux sh file. Don’t forget to enable the execution of these sh files. They can be found in the folders: ServiceStudio/CodeGenerator , ServiceStudio/CodeGenerator/bin.
  5. Create a soft link in the ServiceStudio/CodeGenerator folder:
    ln –s JeeWiz/resources/any/control JeeWiz\\resources\\any\\control
  6. Enable the bash scripts’ ant file (run). The script file can be found in ServiceStudio/CodeGenerator/JeeWiz/external/ant1.7.0/bin.
  7. Add a slash in line 36 of the includeSpec.vm file:
    Old: #set( $basicName="file:/${aSchema.xsdTargetFile}"
    New: #set( $basicName="file://${aSchema.xsdTargetFile}"

    You can find the file in this folder: ServiceStudio/CodeGenerator/JeeWiz/SBBresources/SBBservice/control/schema.

  8. Set the correct path of the ServiceBackbone folder in the properies file ServiceStudio/CodeGenerator/build.properties
  9. Now, test your code generator! You can find a test example at ServiceStudio/CodeGenerator/demos/library/bin (Please have a look at the codegen-library.cmd file.)

Robert Lalyko Entwicklung , ,

How To: Deactivate Process to Process Communication in SOPERA BPM

15. April 2010

We have decided to publish a number of short, easy to follow, “How Tos” in our blog. Here is a short “how to” from our team related to SOPERA BPM and P2P.

Peer to Peer (P2P) Communication with SOPERA BPM

SOPERA BPM 2.0 allows the deactivation of process to process (peer to peer) communication. This feature is required for the implementation of the dual usage (invoke and provide) of one WSDL in BPM processes. This section describes how to do just that.

Disabling P2P Communication

To disable the P2P communication:

  1. Add the attribute usePeer2Peer in the project deploy.xml file.
  2. Set this attribute value to false in the project deploy.xml file for the specific partner link
Take a look at this example:


<dd:invoke partnerLink="..." usePeer2Peer="false">;
<dd:service name="..." port="..."/>
</dd:invoke>

That’s all!

Robert Lalyko Entwicklung