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
Declare your maven dependency <version> only in the droolsjbpm-parent pom
by Geoffrey De Smet
Hi guys,
Some maven poms declare their dependency <version> in the pom itself.
For example in guvnor-webapp-core (mea culpa):
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>2.3.2.Final</version>
</dependency>
The problem is that if other modules use the same dependency, they
duplicate the version.
And in time, as the <version> in 1 module is upgraded, the other gets
forgotten.
Why is this a problem?
Both modules unit test with their own version of the dependency,
but in production, when both modules are combined, only 1 version of the
dependency can exist on the classpath.
Solution: don't declare dependency <version> in your poms, declare it in
the droolsjbpm-parent pom.
12 years, 2 months
Re: [rules-dev] [rules-users] how is Integer converted when comparing with primitive?
by Wolfgang Laun
This is a bug, manifest in all versions since 5.2.0. Actually it is a
"multibug", exhibiting a series of surprising inconsistencies.
* That null is silently ignored isn't documented (not for operators
'<' and '>').
* One might expect 0 to be used as the only reasonable default, but it isn't.
* One might any expression such as a < count < b involving a null
Integer 'count' to return false, but this isn't so either. One might
think that the default is "any integer in [a+1,b-1]" - but read on!
* Surprisingly, an expression with (count == null) such as 1 <
count < 1 or 10 < count < 1 will always fail, but 1 < count < 2
succeeds, although there is no integer that would ever make this
expression true.
* One would really (REALLY!) expect that 1 < count < 100 and 1 <
count && count < 100 would always produce the same result, no matter
what the value of count is, but for null this isn't so.
* One would really expect that count <= Integer.MAX_VALUE would
always return true, given that it doesn't throw a NPE, but it returns
true for count == null. But, sure enough, Integer.MIN_VALUE <= count
<= Integer.MAX_VALUE always returns true.
In other words, if you have an Integer that might be null, always add
a test against null.
-W
On 26/09/2012, mpgong <michael.p.gong(a)lmco.com> wrote:
> Hello
>
> I have a rule that looks something like this
>
> when
> $mydate : TaskRowDate(0 < currentLateCount < 100)
> then
> doSomething();
>
> My problem is that currentLateCount is an Integer type because i want to be
> able to store null. 0 means something different in my app.
>
> The problem is when a fact that is inserted with the currentLateCount =
> null, the above rule matches and is fired.
>
> Is this suppose to be the case and what value does currentLateCount take
> that makes it match?
>
> Thanks
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/how-is-Integer-converted-when-comparing...
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
12 years, 2 months
Drools 5.5.0.beta1 \ jBPM 5.4.0.beta1
by Michael Anstis
Hi,
I have heard mention that we will be launching the captioned soon,
commencing (as it stands) this coming Monday, 10th September.
Please be sure to:-
- Check Jenkins in blue (master) and fix anything that might be broken
- Remove any use of SNAPSHOT dependencies (I checked last week and we
appear OK, but it's best not to assume)
- Commit anything you want to be in the release
- Update the N&N
I am the build monkey this time, so I'm sure I'll be asking lots of
questions :)
Things I am unclear on:-
- Are we releasing jBPM 5.4.0.beta1 too?
- Do we need a new MVEL version?
Thanks in advance for your patience and co-operation.
Cheers,
Mike
12 years, 3 months
Re: [rules-dev] [rules-users] "factorize" rules
by Wolfgang Laun
@dev: When will "extends" for rules be documented in the proper place?
@John: There is a feature doing just that:
rule pre_conditions_for_rules
when
condition0
then end
rule "Rule 1" extends pre_conditions_for_rules
ruleflow-group "work"
when
//...
-W
On 20/09/2012, John Dujon <johndujon(a)gmail.com> wrote:
> Hello,
>
> I am trying to make my rules more readable and wonder wether or not we can
> factorize rules for a particular ruleflow-group. As an example, I would
> like to convert this:
>
> // begin rules
> rule "Rule 1"
> ruleflow-group "work"
> when
> condition 0
> condition1
> then
> doSomething();
>
> rule "Rule 2"
> ruleflow-group "work"
> when
> condition0
> condition2
> then
> doSomethingElse();
>
> // end rules
>
> to the following
>
> // begin rules
>
> pre_conditions_for_rules
> ruleflow-group "work"
> condition0
>
> rule "Rule 1"
> ruleflow-group "work"
> when
> condition1
> then
> doSomething();
> end
>
> rule "Rule 2"
> ruleflow-group "work"
> when
> condition2
> then
> doSomethingElse();
> end
>
> // end rules
>
>
> Thank you for your time. I apologize in advance if that does not make
> sense, as I am new to drools
>
> John
>
12 years, 3 months