I am loading Rules and Facts dynamically and I want to get result(Action) of fired 
rules in the form
of Vector of result strings.
I know that you can store the result string as
(defrule rule1
 (head1 ?var1) 
(head2 ?var2)
 => 
(assert (head3 ?v1 ?v2))
 (store v1 ?var1)
(store v2 ?var2) )
....................
and get it in java as 
after loading rules and facts and  rete.run();
                Value v1Value = new Value(String s1, RU.STRING);
                v1Value = rete.fetch("v1");
                ValueVector vv = new ValueVector(); 
                vv.add(v1Value); 

Is there in other way or design pattern through which result of fired rules can be 
sored in the form 
of Vector(or ValueVector) without knowing the stored Value variable (in the RHS of 
rules ;in the example above "v1").
I may sound fool but I mean after (run) ;it should store all the fired rules RHS to a 
list(or Vector).
Like : public ValueVector run()  throws JessException;
where ValueVector has structure of Elements ((ruleNo. or any other identifier for 
key), String[]).
Sorry, if I have asked stupid Que.
Manish





MASTEK
Investing in relationships
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek 
Limited, unless specifically indicated to that effect. Mastek Limited does not accept 
any responsibility or liability for it. This e-mail and attachments (if any) 
transmitted with it are confidential and/or privileged and solely for the use of the 
intended person or entity to which it is addressed. Any review, re-transmission, 
dissemination or other use of or taking of any action in reliance upon this 
information by persons or entities other than the intended recipient is prohibited. 
This e-mail and its attachments have been scanned for the presence of computer 
viruses. It is the responsibility of the recipient to run the virus check on e-mails 
and attachments before opening them. If you have received this e-mail in error, kindly 
delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to