Deploy a Launch Configuration and use it in a Rich Client Program

Instructions

If you wish to execute a deployed launch configuration outside IBM Rational Rhapsody and RulesComposer, please follow instructions.

  1. Click File > Export...
  2. Open the RulesComposer folder, select Deployable RulesComposer configuration, and press Next.

  3. Choose the launch configuration to deploy and press Next.

  4. Enter the location where to deploy the rules,
  5. Select option Deploy RCP application, and press Finish.

  6. Now, you can start this new application:
    c:\RulesComposer-rcp\RulesComposer.exe
    

  7. You find your deployed launch configuration in folder:
    C:\RulesComposer-rcp\workspace\Rhapsody_Java_Sample
    
  8. Click right on Execute deployed Launch Configuration item in the single view Services and choose command Run...

  9. Select the launch configuration to run.
  10. Select the Rational Rhapsody model:
    1. Click on the model parameter (first line of the grid) to display the model selection dialog.
    2. Select Rhapsody and then Rhapsody On-Demand in the tree.

    3. Click OK.
  11. Press Finish to run configuration.

Notice

If you want to deploy several configurations in your RCP application, please select option JAR file instead of RCP application but choose destinationfolder:
C:\RulesComposer-rcp\workspace

If you want to run this configuration on command line:

C:\RulesComposer-rcp\RulesComposer.exe 
                         -launch C:\RulesComposer-rcp\workspace\Rhapsody_Java_Sample\Rhapsody_Java_Sample.launch
                         -nosplash -headless
                         -evaluationDirectory C:\RulesComposer-rcp\workspace
                         
Please find Console content in file :
C:\RulesComposer-rcp\workspace\Rhapsody_Java_Sample\Rhapsody_Java_Sample.log

To display Console content in current Window:

java -jar C:\RulesComposer-rcp\plugins\org.eclipse.equinox.launcher_1.1.0.v20100507.jar 
                         -launch C:\RulesComposer-rcp\workspace\Rhapsody_Java_Sample\Rhapsody_Java_Sample.launch
                         -nosplash -headless
                         -evaluationDirectory C:\RulesComposer-rcp\workspace
                        

Prev Section: Import, run and deploy "Rhapsody to Excel" sample
Next Section: Create your own ruleset player and Rhapsody plugin


Related reference
Running a deployed launch configuration