ILOG JRules User Guide > Executing Rules > Tasks > Executing a Ruleset Using Rule Execution Server > Adding RuleApp Execution Artifacts to an Existing Project

You can add artifacts to an existing project in order to execute RuleApps.

To add execution artifacts to a project:

  1. On the File menu, click New > Other.
  2. On the Select a wizard page, expand ILOG Rule Studio then select Artifacts for RuleApps.
  3. Click Next.
  4. Select a generator (template) to help you invoke the ruleset(s), then click Next.
  5. Select the project where the artifacts will be generated, then click Next.
  6. Select the RuleApp project for which you want to generate files, then click Next.
  7. Select the ruleset archive(s) that you want to invoke from the project, then click Next.
  8. Add initial values for each ruleset parameter in each ruleset you selected, as follows:
    1. Select each line in the table, then click Change.
    2. For each selected ruleset specify the default values of the IN and IN_OUT parameters.
    3. Enter a value, then click OK.
    4. Click Next.
    5. Select the check box to specify an alternative task to the main task in each ruleset archive. Enter the task name to start the ruleset execution, and then click Next.
    6. Specify the name for the RuleApp runner, enter the specific properties for the project, then click Finish.

Note
The classpath of the project uses the variable ILOG_EXECUTION_SERVER_HOME to declare the Rule Execution Server JAR files. This variable is set to <InstallDir>/executionserver. Therefore, to run the project you need to have installed Rule Execution Server.

Use the classpaths defined in <InstallDir>/executionserver/lib/classpath-executionserver.xml to call the correct libraries.

If one of the generated files already exists in the project, the name is suffixed with a number. For example, if you already have a build.xml file, the build file that is generated is renamed build2.xml.

Related Concepts

RuleApps and RuleApp Projects
RuleApp Execution Code Generators
Ruleset Parameters

Related Tasks

Creating a POJO Client Project for RuleApps
Creating a Web Service or Monitored Transparent Decision Service Project for RuleApps
Creating an SCA Component Client Project for RuleApps
Maintaining Execution Code Generators
Invoking a Ruleset Using a Stateless Rule Session
Invoking a Ruleset Using a Stateful Rule Session
Invoking a Ruleset Using a Message-Driven Rule Bean
Tracing Ruleset Execution

Related Samples and Tutorials

How to Use a Rule Session in Java SE
How to Use a Rule Session in Java EE
How to Use a Message-Driven Rule Bean