private RuleBase getRuleBase() throws InvalidRuleException,
DuplicateRuleNameException,
RuleIntegrationException,
RuleSetIntegrationException
{
Rule rule1 = new Rule( "test-rule 1" );
rule1.addParameterDeclaration( "paramVar", new MockObjectType( true ) );
//add consequence
rule1.setConsequence( new org.drools.spi.InstrumentedConsequence( ) );
//add conditions
rule1.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule1.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule1.setSalience( 42 );
Rule rule2 = new Rule( "test-rule 2" );
rule2.addParameterDeclaration( "paramVar", new MockObjectType( true ) );
//add consequence
rule2.setConsequence( new org.drools.spi.InstrumentedConsequence( ) );
//add conditions
rule2.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule2.addCondition( new org.drools.spi.InstrumentedCondition( ) );
rule2.setSalience( 12 );
RuleSet ruleSet = new RuleSet( "rule_set" );
ruleSet.addRule( rule1 );
ruleSet.addRule( rule2 );