Launch an external ruleset with the RulesPlayer Helper

After deploying a launch configuration you wish to execute it in IBM rational Rhapsody for all your own projects but you want invoke it without changing properties for each project.
You will find below a way to perform this operation.

You can add as many commands as necessary rulesets in Rational Rhapsody as follows:

  1. Click Tools > Customize...

  2. Press button New on top of Menu Content box and enter for example JavaGeneration.
  3. Choose type External program in Type box and select Show in Tools menu check box.
  4. In Helper parameters box, on line Command, press on right button to find location of DOS script rp_launchconfig.bat.You find this program at location:
    <rhapsodyInstallationDirectory>\Sodius\RulesComposer\bin\rp_launchconfig.bat
  5. On line Arguments, paste the .launch file associated to your own ruleset with its full folder path:
    C:\tmp\JavaGeneration\JavaGeneration.launch1)
  6. Press now button OK and check that command JavaGeneration is appeared in menu Tools above Customize....
  7. You can now click on menu command Tools > JavaGeneration.
  8. A black Windows command box is opened during generation, the progression is displayed in this window:

    Execute classpath: .\Rhapsody_Java_Sample.classpath
    Execute entry point: com.sodius.mdw.rhapsody.cpp.JavaGeneration.main
    Evaluation of JavaGeneration
    Reading Rhapsody On-Demand
    Generating .\DefaultComponent\DefaultConfig\class_0.java
    Code Generation Done
    Done.

    You can launch rulesets in deployed mode that use only following metamodels:

    If you installed RulesComposer too, you can also use more:


1) The .launch contains the list of input/output arguments choosen in the RulesComposer Launch configuration just before deploying this ruleset.
The ruleset is processed as it was running under RulesComposer.
2) If you have install Rhapsody with Ada language.
3) See AutoSAR connectors installation.


Prev Section: Customize filenames associated to Rational Rhapsody objects
Next Section: Import, run and deploy "Rhapsody to Excel" sample