[rules-users] Multiple Files Problem

Fnu Mahalakshmi FMahalakshmi at nyx.com
Tue Jun 8 12:59:45 EDT 2010


Hi,

I need to load data contained in many Lists as my input.
In what way is it possible for me to load multiple lists in drools?
I am doing this currently:

public void runStatelessRules(String[] rulesFiles,String dslFileName,Collection<Object>al,
            String ruleFlowFileName) throws Exception {
      RuleBase ruleBase = loadRules(rulesFiles);
        StatelessSession workingMemory = ruleBase.newStatelessSession();
        workingMemory.execute(al);

    }


Collection<Object>al is my input. In this I have dumped data from multiple arrayLists.

All rules get processed accurately.
But creates a mess when I need to write to my output file.

Is it in some way possible for me to give separate lists to load to my working memory???

Please help. Thanks in advance.

-M
</pre>

<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>

*****************************************************************************
<br>
Note:  The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system.  Thank you.  NYSE Euronext.

</STRONG></P><pre>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100608/41416177/attachment.html 


More information about the rules-users mailing list