Semantic Web Drools Module, Request for Feedbak
by Xavier Breton
Hi,
I'm looking for feedback, I'll develop a Semantic Web Drools Module that
will be the subject of my Master Degree Tesis.
The idea is to use Eclipse Modelling Framework (EMF) for prototyping and
follow a Model Driven Architecture (MDA) where the source language is
Semantic of Business Vocabularies and Business Rules (SBVR) and the target
language is Drools DRL.
The mapping could be (PIM level):
- Semantic Web Rule Language (SWRL)
- Ontology Web Language (OWL)
- RuleML
- Rule Interchange Format (RIF)
- REWERSE Rule Markup Language (R2ML)
It could be added to the module at the source UML or Entity Relationship
like models to transform the models into SBVR.
Regards
Xavier Breton
10 years, 10 months
Attach custom editor on guided decision table cell
by c3310082
Hi,
We would like to render a custom editor when a user double-clicks on a cell
that is present in web guided decision table in Guvnor 5.1 (or later). The
custom editor needs to be invoked for cells that represent a particular fact
model attribute only.
This is somewhat similar to WS custom forms functionality available for
guided business rules.
So far we have seen the
org.drools.guvnor.client.decisiontable.GuidedDecisionTableWidget class that
contains implementation for:
public void onCellDblClick(GridPanel grid,
int rowIndex,
int colIndex,
EventObject e)
in the GridCellListenerAdapter class that opens up text editor or drop down
editor.
We're new to GWT and Guvnor so would appreciate it if anyone can provide the
high level steps.
Thanks
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Attach-custom-editor-...
Sent from the Drools - Dev mailing list archive at Nabble.com.
12 years, 2 months
Help
by Olfa h
good morning,
can you help me to install drools ( for windows)
thanks
12 years, 8 months
Guided Editor in BRMS / Guvnor Version 5 (Snapshot of 26 June)
by Paul Browne
Folks,
For various reasons I'm trying out the Guided Editor for Business Rules in
the Guvnor Version 5 (Snapshot of 26 June from Hudson, deployed on JBoss App
Server 4.2.2GA).
I've created the Package / Category and uploaded a simple fact model (as
works in BRMS version 4). I create a new business rule using the guided
editor and the screen shows successfully with both 'When' and 'Then'
parts.Assume the next question is due to me missing something, but wanted to
double check:
When I press the green '+' to the right of the screen I am shown the message
/ dialog layer saying '
*Add a condition to the rule... *or* Add an action to the rule.
*Problem is that there doesn't appear to be a way of adding a condition or
action. The only thing I'm seeing in the logs is
* (Contexts.java:flushAndDestroyContexts:335) could not discover
transaction status
*Am I missing something or should I come back to Guvnor later in the
development Cycle?
Thanks
Paul
12 years, 9 months
5.3.x regression in TypeDeclarationDescr
by Michael Anstis
Hi,
There appears to be a regression in TypeDeclarationDescr in 5.3.x branch,
as illustrated by the below.
Bean2 is shown as having a super-type of "Object" whereas it should be
"Bean1". The fields are correctly listed.
This is causing tests in Guvnor to fail.
Could somebody please take a look?
Thanks,
Mike
package org.drools.ide.common.server.rules;
import java.io.StringReader;
import java.util.List;
import org.drools.compiler.DrlParser;
import org.drools.compiler.DroolsError;
import org.drools.compiler.PackageBuilder;
import org.drools.definition.type.FactField;
import org.drools.lang.descr.PackageDescr;
import org.drools.lang.descr.TypeDeclarationDescr;
import org.junit.Test;
public class RegressionTest {
@Test
public void regression() {
String drl = "package foo \n"
+ "declare Bean1 \n"
+ "age: int \n"
+ "name : String \n"
+ "end \n"
+ "declare Bean2 extends Bean1\n"
+ "cheese : String \n"
+ "end";
PackageBuilder builder = new PackageBuilder();
try {
DrlParser parser = new DrlParser();
PackageDescr pkgDescr = parser.parse( drl );
for ( TypeDeclarationDescr baseType :
pkgDescr.getTypeDeclarations() ) {
String declaredSuperTypeName = baseType.getSuperTypeName();
System.out.println( baseType.getTypeName() + " extends " +
declaredSuperTypeName );
}
builder.addPackageFromDrl( new StringReader( drl ) );
System.out.println("foo.Bean1 fields=");
List<FactField> fieldsBean1 = builder.getPackage().getFactType(
"foo.Bean1" ).getFields();
for ( FactField field : fieldsBean1 ) {
System.out.println( field.getName() );
}
System.out.println("foo.Bean2 fields=");
List<FactField> fieldsBean2 = builder.getPackage().getFactType(
"foo.Bean2" ).getFields();
for ( FactField field : fieldsBean2 ) {
System.out.println( field.getName() );
}
if ( builder.hasErrors() ) {
for ( DroolsError e : builder.getErrors().getErrors() ) {
System.out.println( e.getMessage() );
}
}
} catch ( Exception e ) {
e.printStackTrace();
}
}
}
12 years, 10 months
Drools & jBPM Event : London 8th March 2012
by Mark Proctor
http://blog.athico.com/2012/02/drools-jbpm-event-london-8th-march-2012.html
-----
Register now to join us for the free Drools & jBPM London 2012 event,
hurry limited spaces :)
http://redhat-mail.com/t/XRU-OE4J-824IMOYW1D/cr.aspx
When Thursday 8th March
Where Stationers Hall, London
Agenda trans
trans trans trans
trans
trans
09:00 trans Registration, tea and coffee
trans
09:30 trans Introduction/ Welcome
trans
09:45 trans Rules, Events & Processes: the Open Source way
Mark Proctor - Worldwide Technical Lead for BRMS & BPMS, Red Hat
trans
10:45 trans Decision Tables
Michael Anstis, JBoss Core Developer, Red Hat
trans
11:15 trans Tea/Coffee Break
trans
11:30 trans BPMN2 and jBPM5
Kris Verlaenen, JBoss Core Developer, Red Hat
trans
12:15 trans Solving Planning Problems
Geoffrey de Smet, JBoss Core Developer, Red Hat
trans
12:45 trans Case Studies
trans
13:00 trans Lunch and Networking
trans
12 years, 10 months
BUG: [5.3.0.Final] CollectSetAccumulateFunction should probably use IdentityHashMap internally
by SirMungus
[First post. I apologize in advance if I'm following the wrong protocol to
report a bug.]
I had a rule using the collectSet() accumulator that was giving me an NPE at
line 123 of CollectSetAccumulateFunction.java, highlighted below:
public void reverse(Serializable context,
Object value) throws Exception {
CollectListData data = (CollectListData) context;
CollectListData.MutableInt counter = data.map.get( value );
*/if( (--counter.value) == 0 ) {/*
data.map.remove( value );
}
}
When looking in the debugger, I could see that the "value" passed in was
indeed present within the "data.map". However, the "data.map.get(value)" was
returning null. I thankfully realized this was because the object had
changed, which changed its hashCode(). The stored hashCode() in the HashMap
was different from its current hashCode().
I solved my problem by reimplementing my hashCode() as
System.identityHashCode(this) and my equals as "this == other".
However, I suspect the CollectSetAccumulateFunction should really use an
IdentityHashMap in this situation. It's a really bad idea to allow mutable
objects as keys in HashMap, and there is nothing about the collectSet()
accumulator function that suggests that it should only collect immutable
objects.
Thanks.
P.S. I'm loving Drools. Great tool.
--
View this message in context: http://drools.46999.n3.nabble.com/BUG-5-3-0-Final-CollectSetAccumulateFun...
Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.
12 years, 10 months
Rule failes silently
by Wolfgang Laun
public class SimpleType {
private String state;
private int count;
}
Insert facts with count == 1 and 2 and 99 and 100. The following rule
compiles but does not fire:
rule "show +98"
when
$st1: SimpleType($c1: count )
$st2: SimpleType( count == $st1.count + 98 ) // use $c1 + 98 and rule fires
then
System.out.println( "SimpleType: " + $st1.getCount() );
end
-W
12 years, 10 months
jboss tohu
by Olfa h
hi,
can someone help me to deploy jboss tohi 1.2.0 into jboss 4.3.2 and eclipse
indigo ?????????????????
thx
12 years, 10 months