Constants.RES_SOURCE_TYPE_DECISION_TABLE );
RuleServiceProviderManager.registerRuleServiceProvider( ExampleRuleEngineFacade.RULE_SERVICE_PROVIDER,
RuleServiceProviderImpl.class );
RuleServiceProvider ruleServiceProvider = RuleServiceProviderManager.getRuleServiceProvider( ExampleRuleEngineFacade.RULE_SERVICE_PROVIDER );
RuleAdministrator ruleAdministrator = ruleServiceProvider.getRuleAdministrator();
LocalRuleExecutionSetProvider ruleSetProvider = ruleAdministrator.getLocalRuleExecutionSetProvider( null );
RuleExecutionSet ruleExecutionSet = ruleSetProvider.createRuleExecutionSet( SpreadsheetIntegrationExampleTest.class.getResourceAsStream( "IntegrationExampleTest.xls" ),
properties );
ruleAdministrator.registerRuleExecutionSet( "IntegrationExampleTest.xls",
ruleExecutionSet,
properties );
properties.clear();
final List list = new ArrayList();
properties.put( "list",
list );
RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
StatefulRuleSession session = (StatefulRuleSession) ruleRuntime.createRuleSession( "IntegrationExampleTest.xls",
properties,
RuleRuntime.STATEFUL_SESSION_TYPE );
//ASSERT AND FIRE