test_class.declarator: instance
test_class.modifier: private
test_class.original_string: private StatefulRuleTemplate instance;
test_class.type: StatefulRuleTemplate
test_class.var_name: instance
test_class.declarator: ruleDrl = "/rule/Gender.drl"
test_class.modifier: private
test_class.original_string: private String ruleDrl = "/rule/Gender.drl";
test_class.type: String
test_class.var_name: ruleDrl
test_class.declarator: chencao
test_class.modifier: private
test_class.original_string: private Person chencao;
test_class.type: Person
test_class.var_name: chencao
test_class.declarator: xishi
test_class.modifier: private
test_class.original_string: private Person xishi;
test_class.type: Person
test_class.var_name: xishi
test_class.declarator: yyang
test_class.modifier: private
test_class.original_string: private Person yyang;
test_class.type: Person
test_class.var_name: yyang
test_class.file: dddlib-rule-engine/src/test/java/org/dayatang/rule/StatefulRuleTemplateTest.java
test_class.identifier: StatefulRuleTemplateTest
test_case.body: @Test
  	public void testExecute() throws Exception {
  		instance.execute(new StatefulRuleCallback() {
  			
  			@Override
  			public void doInRuleSession(StatefulRuleSession session) throws Exception {
  				session.addObject(chencao);
  				session.addObject(xishi);
  				session.addObject(yyang);
  				session.executeRules();
  			}
  		});
  
  		// Validate
  		assertEquals(60, chencao.getRetireAge());
  		assertEquals(55, xishi.getRetireAge());
  		assertEquals(60, yyang.getRetireAge());
  		
  	}
test_case.class_method_signature: StatefulRuleTemplateTest.testExecute()
test_case.full_signature: @Test public void testExecute()
test_case.identifier: testExecute
test_case.invocations: execute addObject addObject addObject executeRules assertEquals getRetireAge assertEquals getRetireAge assertEquals getRetireAge
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExecute()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(StatefulRuleTemplate.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger LOGGER = LoggerFactory.getLogger(StatefulRuleTemplate.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: sessionProperties = new HashMap()
focal_class.modifier: private
focal_class.original_string: private Map sessionProperties = new HashMap();
focal_class.type: Map
focal_class.var_name: sessionProperties
focal_class.declarator: ruleAdministrator
focal_class.modifier: private
focal_class.original_string: private RuleAdministrator ruleAdministrator;
focal_class.type: RuleAdministrator
focal_class.var_name: ruleAdministrator
focal_class.declarator: ruleExecutionSetProvider
focal_class.modifier: private
focal_class.original_string: private LocalRuleExecutionSetProvider ruleExecutionSetProvider;
focal_class.type: LocalRuleExecutionSetProvider
focal_class.var_name: ruleExecutionSetProvider
focal_class.declarator: ruleRuntime
focal_class.modifier: private
focal_class.original_string: private RuleRuntime ruleRuntime;
focal_class.type: RuleRuntime
focal_class.var_name: ruleRuntime
focal_class.declarator: ruleExecutionSet
focal_class.modifier: private
focal_class.original_string: private RuleExecutionSet ruleExecutionSet;
focal_class.type: RuleExecutionSet
focal_class.var_name: ruleExecutionSet
focal_class.file: dddlib-rule-engine/src/main/java/org/dayatang/rule/StatefulRuleTemplate.java
focal_class.identifier: StatefulRuleTemplate
focal_class.class_method_signature: StatefulRuleTemplate.sessionProperties(Map sessionProperties)
focal_class.full_signature: public final StatefulRuleTemplate sessionProperties(Map sessionProperties)
focal_class.identifier: sessionProperties
focal_class.modifiers: public final
focal_class.parameters: (Map sessionProperties)
focal_class.return: StatefulRuleTemplate
focal_class.signature: StatefulRuleTemplate sessionProperties(Map sessionProperties)
focal_class.class_method_signature: StatefulRuleTemplate.ruleSource(Object ruleSource, Map executionSetProperties)
focal_class.full_signature: public final StatefulRuleTemplate ruleSource(Object ruleSource, Map executionSetProperties)
focal_class.identifier: ruleSource
focal_class.modifiers: public final
focal_class.parameters: (Object ruleSource, Map executionSetProperties)
focal_class.return: StatefulRuleTemplate
focal_class.signature: StatefulRuleTemplate ruleSource(Object ruleSource, Map executionSetProperties)
focal_class.class_method_signature: StatefulRuleTemplate.ruleSource(Object ruleSource)
focal_class.full_signature: public final StatefulRuleTemplate ruleSource(Object ruleSource)
focal_class.identifier: ruleSource
focal_class.modifiers: public final
focal_class.parameters: (Object ruleSource)
focal_class.return: StatefulRuleTemplate
focal_class.signature: StatefulRuleTemplate ruleSource(Object ruleSource)
focal_class.class_method_signature: StatefulRuleTemplate.StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider)
focal_class.full_signature: public  StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider)
focal_class.identifier: StatefulRuleTemplate
focal_class.modifiers: public
focal_class.parameters: (RuleServiceProvider ruleServiceProvider)
focal_class.signature:  StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider)
focal_class.class_method_signature: StatefulRuleTemplate.StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties)
focal_class.full_signature: public  StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties)
focal_class.identifier: StatefulRuleTemplate
focal_class.modifiers: public
focal_class.parameters: (RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties)
focal_class.signature:  StatefulRuleTemplate(RuleServiceProvider ruleServiceProvider, Map serviceProviderProperties)
focal_class.class_method_signature: StatefulRuleTemplate.createRuleExecutionSet(Object ruleSource, Map executionSetProperties)
focal_class.full_signature: private RuleExecutionSet createRuleExecutionSet(Object ruleSource, Map executionSetProperties)
focal_class.identifier: createRuleExecutionSet
focal_class.modifiers: private
focal_class.parameters: (Object ruleSource, Map executionSetProperties)
focal_class.return: RuleExecutionSet
focal_class.signature: RuleExecutionSet createRuleExecutionSet(Object ruleSource, Map executionSetProperties)
focal_class.class_method_signature: StatefulRuleTemplate.execute(StatefulRuleCallback callback)
focal_class.full_signature: public void execute(StatefulRuleCallback callback)
focal_class.identifier: execute
focal_class.modifiers: public
focal_class.parameters: (StatefulRuleCallback callback)
focal_class.return: void
focal_class.signature: void execute(StatefulRuleCallback callback)
focal_class.class_method_signature: StatefulRuleTemplate.releaseStatefulRuleSession(StatefulRuleSession session)
focal_class.full_signature: private void releaseStatefulRuleSession(StatefulRuleSession session)
focal_class.identifier: releaseStatefulRuleSession
focal_class.modifiers: private
focal_class.parameters: (StatefulRuleSession session)
focal_class.return: void
focal_class.signature: void releaseStatefulRuleSession(StatefulRuleSession session)
focal_class.class_method_signature: StatefulRuleTemplate.getStatefulRuleSession()
focal_class.full_signature: public StatefulRuleSession getStatefulRuleSession()
focal_class.identifier: getStatefulRuleSession
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: StatefulRuleSession
focal_class.signature: StatefulRuleSession getStatefulRuleSession()
focal_method.body: public void execute(StatefulRuleCallback callback) throws Exception {
  		StatefulRuleSession session = getStatefulRuleSession();
  		try {
  			callback.doInRuleSession(session);
  		} finally {
  			releaseStatefulRuleSession(session);
  		}
  	}
focal_method.class_method_signature: StatefulRuleTemplate.execute(StatefulRuleCallback callback)
focal_method.full_signature: public void execute(StatefulRuleCallback callback)
focal_method.identifier: execute
focal_method.invocations: getStatefulRuleSession doInRuleSession releaseStatefulRuleSession
focal_method.modifiers: public
focal_method.parameters: (StatefulRuleCallback callback)
focal_method.return: void
focal_method.signature: void execute(StatefulRuleCallback callback)