Michael Neale <michael.neale <at> gmail.com> writes:

> 
> at present, to do this you would need to use the Decision Table API to
> create a DRL, which you then deploy into your runtime environment.
> Then access that rulebase as normal through JSR-94 (JSR-94 support
> directly for decision tables is not there yet).
> 
> On 12/8/05, Subir Das <subir_k_das <at> hotmail.com> wrote:
> > Hi,
> >
> > I have multiple decision tables in my application that point to specific 
rule
> > sets for different use cases. I am planning to load all of them during the
> > start-up of the application server with different Names and then each client
> > application will execute different rule sets with specific Names.
> >
> > According JSR-94, a client application should be able to create a rule 
session
> > based on the rule set name and then execute that rule set on that session by
> > passing the input values in the form of a List.
> >
> > I couldn't find an API to do the same with decision tables.
> > I would appreciate if anyone can help me out.
> >
> > Thanks and best regards,
> >
> > Subir


I have an InputStream (inStream) which represents an Excel decision table and 
am coverting that to DRL as follows :
-----------------------------------------------------------------
String ruleSetName = "RuleSet1";
SpreadsheetDRLConverter converter = new SpreadsheetDRLConverter( );
String drl = converter.convertToDRL( inStream, ruleSetName );
-----------------------------------------------------------------
First of all, it throws an error saying it can not read the excel data.
The above stream works fine if I use the following API, though.
-----------------------------------------------------------------
droolsRuleBase = DecisionTableLoader.loadFromInputStream(inStream);
-----------------------------------------------------------------

Secondly, even if it could read it correctly, can you please let me know how to 
load this DRL. I couldn't find any API to load this String returned by the 
method 'convertToDRL'.

As I said before, I need to use one which will load the rule set definitions 
with specific names so that I can lookup a specific rule with a specific name 
at runtime.

Cheers.

Subir

> 
> 




Reply via email to