Matrix Style XLS Decision Table
by Ramon Buckland
Hi all,
I am looking at using the Matrix style decision tables.
There is not a lot of documentation on these, but I have also found the spring config for them is lacking.
There is a test case here - https://github.com/droolsjbpm/drools/blob/master/drools-decisiontables/sr...
that shows really that it complies to a DRL.
The method call for building the compiler SpreadsheetCompiler.compile() takes an extra argument .. a spreadsheet listener.
final SpreadsheetCompiler converter = new SpreadsheetCompiler();
final String drl = converter.compile( stream,
InputType.XLS,
new RuleMatrixSheetListener() );
But the Spring configuration doesn't seem to support that type.. (i.e. looking at the code in the UnitTest, a "RuleMatrixSheetListener" is passed to the compile.
but the spring config won't support tat extra listener.
<drools-spring:kbase id="kbase">
<drools-spring:resources>
<drools-spring:resource type="DTABLE" source="classpath:myco/matrix_ruletable.xls" >
<drools-spring:decisiontable-conf input-type="XLS"/>
</drools-spring:resource>
</drools-spring:resources>
</drools-spring:kbase>
I am considering making a patch to support a Matrix style spreadsheet.
Which way would you suggest I head
(a) add a new "decisionmatrixtable-conf to the schema a a new parser - because they are different
(modify droolsjbpm-integration//drools-spring/src/main/java/org/drools/container/spring/namespace/ResourceDefinitionParser.java)
(create a new DecisionTableConfiguration for Matrix sheets)
(b) add a new input type to the DecisionTable .. (XLS_MATRIX)
(c) add the ability to inject a "SheetLisner" as an optional parameter to "decisiontable-conf"
(d) other.
Something else I noted is that, when you do have a "SheetListener" passed to .compile( … ) you also cannot have a worksheetName
ie:
compile(stream, inputType, listener)
compile(stream, inputType)
compile(stream, string)
Does that need a little uplift as well ? The assumption that (stream, string) is always an XLS doesn't seem right.
regards
Ramon
Ramon Buckland
ramon(a)thebuckland.com
11 years, 6 months
Repository rename
by Michael Anstis
Hi,
Repository "kie-ide" has been renamed "kie-wb-distributions".
The Repository now contains modules for both kie-ide (BPMS) and
kie-drools-wb (BRMS).
Please either change your .git/config file, or delete kie-ide and re-clone
from here <https://github.com/droolsjbpm/kie-wb-distributions>.
With kind regards,
Mike
11 years, 6 months
GSOC project - Realtime Collaborative Editor for Drools Decision Tables using Errai OT/EC
by Mark Proctor
Errai has recently added OTEC support, which is a web based system for collaborative editing. I thought this would be really interesting project, working on cutting edge web technologies for anyone doing a GSOC submission. Or actually anyone looking for an engaging task :)
https://community.jboss.org/wiki/GSOC13Ideas#Realtime_Collaborative_Edito...
Errai OTEC (Operationaly Transformed, Eventually Consistent Data Syncrhonization) facilitates builing Google Wave and Google Docs type applications, with multiple authors in real time on the same document. Two videos showing OTEC editing working in real time for collaboritive authoring:
https://www.youtube.com/watch?v=ChCasRr0cZc
https://www.youtube.com/watch?v=Wvf5pbOM920
Drools has extensive Decision Table support, which provides a spreadsheet like authoring tool for rules. Errai OTEC can allow two authors to work on the document at the same time. It would provide the following features:
-Current cursor/edit location for each user in the document.
-Edits to Cells to appear as they happen.
-Cell locking, so only one Cell can be updated by one user at a time.
Knowledge prerequisite:
Java, GWT, Errai
Skill level: Medium
Contact(s): Michael Anstis
Mentor(s): Michael Anstis
Associated project(s): Drools, Guvnor, Errai
Notes:
11 years, 6 months
Guvnor 6 on Tomcat 7
by Charles Moulliard
Hi,
Does anybody knows to solve this issue when we tried to deploy Guvnor 6
(war) on Tomcat 7 (increase memory of Tomcat - already started with
1024Mb,...) ?
SEVERE: Error listenerStart
May 03, 2013 9:09:51 AM org.apache.catalina.core.StandardContext
startInternal
SEVERE: Context
[/guvnor-distribution-wars-6.0.0-20130502.103718-294-tomcat7.0] startup
failed due to previous errors
May 03, 2013 9:09:51 AM org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application
[/guvnor-distribution-wars-6.0.0-20130502.103718-294-tomcat7.0] appears to
have started a thread named [pool-6-thread-1] but has failed to stop it.
This is very likely to create a memory leak.
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
11 years, 6 months
Re: [rules-dev] Access a static variable from Java file to DRL File
by Roopa
Hi,
I am a newbie to Drools. Can anyone give me some inputs on
1) How to access a static variable constant from java file into drl file.
say a static constant is declared in a java file VCRuleServiceConstants.java
public static final double
ORDER_AMOUNT_FOP_REVIEWED_ADD_TO_EXISTING_ORDER_TIER1 = 100000;
How to access this variable in the drl file.
Since its not an instance variable of that class, even if I insert as a
"fact", unable to access the variable in drl file.
I can very well use the constant value directly in the drl file, but wanted
to know.
Please do suggest me some options available.
--
View this message in context: http://drools.46999.n3.nabble.com/Access-a-static-variable-from-Java-file...
Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.
11 years, 6 months
Rete?
by Wolfgang Laun
Some time ago I read an email where the end of Rete with Drools was
announced: Rete RIP, IIRC. Has this been postponed, and if so, which
version will have the new Engine?
Cheers
Wolfgang
11 years, 6 months