Location: PHPKode > projects > PHP Business Rules > test/action_fassade.php
<?php
	require_once('phprules/phprules.php');
	require_once('test/test_facts.php');
	 
	$wm = new WorkingMemory();
	$wm->insert(new A(1,3));
	$wm->insert(new A(1,4));
	
	$wm->insertActionFassade('component1', new ActionComponent1());
	 
	$rr = new RuleReader();
	$rs = new RuleSession($rr->parseFile("test/rules/action_fassade.srl"),$wm);
	$rs->verbosity = 1;
	$rs->fireAll();
 ?>
Return current item: PHP Business Rules