Running rulesets that are deployed to a file system

Specialized toolkits - release 4.3.1.0-prod20190605 > com.ibm.streams.rules 2.1.2 > Running rulesets that are deployed to a file system

When an IBM Operational Decision Manager (ODM) developer deploys a rules application to a file system, by default, the rulesets in the application are deployed to the res_data directory.

Before you begin

Ensure that the directory where the rules application is deployed is accessible to IBM Streams.

Procedure

  1. In your SPL application, use the ODMRulesetExecutor operator and specify the following parameters:
    • The ruleAppDirectory parameter that specifies the location where the rules application is deployed.
    • The rulesetPath parameter that specifies the path to the ruleset in the rules application.
  2. Develop and run the application.

Examples


composite FileDeployment{
  graph
    (stream<rstring strVal> Beacon_1_out0) as Beacon_1 = Beacon() {}
    (stream<rstring strVal> ODMRulesetExecutor_2_out0)
    as ODMRulesetExecutor_2 = ODMRulesetExecutor(Beacon_1_out0) {
      param
        rulesetPath : "/ruleapp/rules" ;
        ruleAppDirectory : "directory_where_rules_are_deployed";
    }
    () as Custom_3 = Custom(ODMRulesetExecutor_2_out0) {}
}