<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.java.drools.user">
    <title>gmane.comp.java.drools.user</title>
    <link>http://blog.gmane.org/gmane.comp.java.drools.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13156"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13148"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13147"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13144"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13139"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13134"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13128"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13125"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13124"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13121"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13120"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13119"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13117"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13116"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13114"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13109"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13101"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13100"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13098"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.drools.user/13095"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13156">
    <title>Drools 5.0.0.M3 Runtime problem in Eclipse 3.4.1</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13156</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Zhang Jing-A52198</dc:creator>
    <dc:date>2008-12-03T23:51:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13148">
    <title>Embedding Drools in Eclipse</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13148</link>
    <description>
Since my last post was so nicely hijacked I have started a new thread in the
hopes that the Drools team can shed some light on this.

My setup is as follows:

1) 2 plug-ins, one containing the drools libraries, and a second plugin
containing the facts and the rule file.
2) The rules engine plugin has a buddy-policy of "registered" and the facts
plugin has the rules engine plugin as a registered buddy.


Here is the rule(although any fact that has field assignments fails)

rule "Retrieve CID Presentation Model" 
        ruleflow-group "RetrieveCID" 
        
        when 
               
CIDPresentationModel($cidValue:cidValue,$cidExpirationDate:expirationDate)        
        then 
                boolean cidResult =
cidService.verifyCIDIsValid($cidValue,$cidExpirationDate); 
                CIDResult result = new CIDResult(cidResult); 
                insert(result); 
                System.out.println("Executing: Retrieve CID Presentation
Model"); 
end 

Deep in the bowels of drools there is a call to
ClassFieldAccessorFactory.getClassFieldReader where it attempts to create a
class using the byte array classloader, i.e. final Class&lt;?&gt; newClass =
byteArrayClassLoader.defineClass(className, bytes,PROTECTION_DOMAIN). Its at
this point that a NoClassDefFoundError on the BaseObjectClassFieldReader. I
am a little concerned when I see what appears to be a custom classloader
since if you are going to embed the rules engine it should respect the
classloader hierachy from the container, whether that be an app server like
Websphere or client side container like Eclipse.

I am wondering if the team has had success with this particular setup (the
examples for Drools work cause they are all in the same plugin). I have made
the example as simple as possible but still no luck. Seems like this is
pretty basic functionality so I can't imagine this hasn't been tested.
</description>
    <dc:creator>keithnielsen</dc:creator>
    <dc:date>2008-12-03T14:53:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13147">
    <title>design question - how to modell this in DRl</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13147</link>
    <description>Hi,

I´m totally new to Drools and DRL.
I want / (better words I must, because of my diploma thesis) to connect 
a couple of different software-applictions using Drools as logical 
middleware.

First i want to translate some kind -like the following ones- of natural 
rules into DRL and I have no idea how to do this in correct way.

Facts are
- Order
Order contain information about "creationDate" and "customerBelongingTo"

- Customer
Customer contains information (=days as int value) about 
"allowedTimePeriodWithoutNewIncomingOrder", on expiry of this time 
period this customer should me marked to inform a "Person"


- Persons
There are living persons(maybe) which are interested in
"customersWithNoNewIncomingOrder". The should be informed by mail, etc.

Please any idea to do this in best DRL way?

Thanks
Thorsten Trägenap

_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Thorsten Trägenap</dc:creator>
    <dc:date>2008-12-03T14:01:51</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13144">
    <title>Implementing a XOR Group between 2 rules with Drools3 (legacy...)</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13144</link>
    <description>Hello,

It seems that Drools 3 performs better for us (at least for now...)
then Drools 4. Drools 5 was not yet tested.


I'm wondering what is the most efficient method of implementing Drools
4 activation-group[1] feature using Drools 3 ?

In my system, in order to complete the match session I'm using a
combination of 2 rules one (and only one!) of them must pass so that
the match will be successful. I would like to use a XOR between them
and give higher salience to the first rule which is a light weight
version of the second. My motivation is keep drools from evaluating
the second more complex structure of the "heavy" rule as fast as
possible.

So, to summarize - How would you guys recommend implementing the XOR
structure between 2 Multiplicative inverse rules ?


Thank you,
Maxim.

[1] http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/html_single/index.html#d0e3088

--
Cheers,
Maxim Veksler

"Free as in Freedom" - Do u GNU ?
_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Maxim Veksler</dc:creator>
    <dc:date>2008-12-03T11:41:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13139">
    <title>NoClassDefFoundError: BaseObjectClassFieldReader</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13139</link>
    <description>
I have the following rule:

rule "Retrieve CID Presentation Model"
ruleflow-group "RetrieveCID"

when
CIDPresentationModel($cidValue:cidValue,$cidExpirationDate:expirationDate)
then
boolean cidResult =
cidService.verifyCIDIsValid($cidValue,$cidExpirationDate);
CIDResult result = new CIDResult(cidResult);
insert(result);
System.out.println("Executing: Retrieve CID Presentation Model");
end

Deep in the bowels of drools there is a call to
ClassFieldAccessorFactory.getClassFieldReader where it attempts to create a
class using the byte array classloader, i.e. final Class&lt;?&gt; newClass =
byteArrayClassLoader.defineClass(className, bytes,PROTECTION_DOMAIN). Its at
this point that a NoClassDefFoundError on the BaseObjectClassFieldReader.
two sources of the same class in the classpath or if there is some reference
from the class resulting in the error to another class that can not be
resolved. It only appears in situations where there is fields involved. It
doesnt seem to matter how simple the object is, the minute I try to use
field assignment it throws an error.

The rules engine is running as an Eclipse plug-in.
</description>
    <dc:creator>keithnielsen</dc:creator>
    <dc:date>2008-12-02T22:14:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13134">
    <title>New features in Guvnor</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13134</link>
    <description>
Is there some documentation which summarizes the new features in Guvnor that
were not in the older version of the BRMS? I saw a blog
http://blog.athico.com/2008/04/brms-for-drools-5.html which had information
on the Guvnor, but not sure if all the new features were discussed in that.

Thanks,
Seema
</description>
    <dc:creator>seemamani</dc:creator>
    <dc:date>2008-12-02T17:17:38</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13128">
    <title>Rete Tree does not load in the plugin</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13128</link>
    <description>I don't know whether this is the right place for this question.

The Rete Tree view of the Eclipse drl editor does fails for the example 
drl fild, with "Rete Tree Build Error".
I tried the suggestion given in 
http://www.nabble.com/Problems-with-drools-4.0.7-examples-tp18091849p18095457.html 
as well, but does not work.

Did any one experienced the same thing ...

I have  Version: 2.0.0.Beta1-R200810311334 of Jboss Tools
on Eclipse,
Version: 3.4.1
Build id: M20080911-1700



Stack Trace:

java.lang.Exception: Unable to parse rules to show RETE view!
at 
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:147)
at org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:244)
at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

org.drools.RuntimeDroolsException: Unable to resolve class 
'com.sample.DroolsTest$Message'
at 
org.drools.base.ClassFieldAccessorCache.getClass(ClassFieldAccessorCache.java:282)
at 
org.drools.base.ClassFieldAccessorCache.getClassObjectType(ClassFieldAccessorCache.java:206)
at 
org.drools.base.ClassFieldAccessorStore.merge(ClassFieldAccessorStore.java:309)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:463)
at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:381)
at 
org.drools.eclipse.editors.rete.ReteViewer.getRuleBase(ReteViewer.java:115)
at 
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:145)
at org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:244)
at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

java.lang.reflect.InvocationTargetException
at org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:251)
at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.Exception: Unable to parse rules to show RETE view!
at 
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:147)
at org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:244)
... 1 more
Root exception:
java.lang.Exception: Unable to parse rules to show RETE view!
at 
org.drools.eclipse.editors.rete.ReteViewer.loadReteModel(ReteViewer.java:147)
at org.drools.eclipse.editors.DRLRuleEditor2$3.run(DRLRuleEditor2.java:244)
at 
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Anil</dc:creator>
    <dc:date>2008-12-02T09:53:28</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13125">
    <title>german manual available?</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13125</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Trägenap</dc:creator>
    <dc:date>2008-12-02T06:51:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13124">
    <title>Re :Action firing twice</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13124</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Vithal  Kuchibhotla</dc:creator>
    <dc:date>2008-12-02T06:11:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13121">
    <title>Re :Action firing twice</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13121</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Vithal  Kuchibhotla</dc:creator>
    <dc:date>2008-12-02T05:28:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13120">
    <title>Action firing twice</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13120</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Vithal  Kuchibhotla</dc:creator>
    <dc:date>2008-12-02T05:20:26</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13119">
    <title>Inline eval problem!</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13119</link>
    <description>
I need to convert a variable from string to intger in the rule. That variable
here is rank, so, I create a helper class called 'Conversion' with just one
function/method, which is supposed to convert the string argument passed to
it, to an integer and then I call that method in rule as inline eval. What's
wrong here because this is not working and I don't want to change 'When'
part too much because it has 10 or so other variable with &amp;&amp; connective,
which I've removed for clarity here. Any input would be appreciated much.

package harules;
import com.hibernate.Person;
import com.uhg.utils.Conversion;

rule "one"
salience 10
when
$con: Conversion();
pers: Person(age!= null , age &gt;= 18 , eval($con.getInteger(rank) &gt; 140))
then
System.out.println("Evaluated true");
end

//content of Conversion class
package com.utils;
public class Conversion {
public Integer getInteger(String s)
{
return Integer.parseInt(s);
}
}
</description>
    <dc:creator>vanshi</dc:creator>
    <dc:date>2008-12-02T05:08:50</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13117">
    <title>[drools-user] The Eclipse JDT Core jar is not in the classpath error</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13117</link>
    <description>I am using drools 4.0.7 plug in with eclipse 3.4.1. I created a drools project with the example generated by the wizard. However I am getting this exception when trying to run the example. I see there are discussion around this topic but I still do not have clear understand what the final solution should be. Does anyone have final solution?

thanks

Xiandong

 org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java'
    at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:160)
    at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:146)
    at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:121)
    at org.drools.compiler.PackageBuilderConfiguration.&lt;init&gt;(PackageBuilderConfiguration.java:98)
    at org.drools.compiler.PackageBuilder.&lt;init&gt;(PackageBuilder.java:124)
    at org.drools.compiler.PackageBuilder.&lt;init&gt;(PackageBuilder.java:86)
    at com.sample.DroolsTest.readRule(DroolsTest.java:50)
    at com.sample.DroolsTest.main(DroolsTest.java:21)
Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not in the classpath
    at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:91)
    at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:52)
    at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:156)
    ... 7 more

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



</description>
    <dc:creator>Xiandong Su</dc:creator>
    <dc:date>2008-12-02T04:18:18</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13116">
    <title>decision tables - no agenda group?</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13116</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Evans, Jess</dc:creator>
    <dc:date>2008-12-02T03:05:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13114">
    <title>Proper termination of a CommandService</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13114</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Michal Bali</dc:creator>
    <dc:date>2008-12-02T00:24:44</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13109">
    <title>Precompilation of Rule Flows</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13109</link>
    <description>
I have a number of questions as it relates the creation of rule flows:

1) I am assuming that when creating the constraints within a given node
within a rule flow that the selection of "rule"  as the type will create a
rule behind the scenes while selection of "code" will create some java
object representation? If this is a correct understanding is there any
preference from an engine perspective, are there performance or other
considerations that must be taken into account?

2) Is there any way to precompile rule flows like rule files are (as opposed
to at runtime with a call to packageBuilder.addRuleFlow(source))? With the
Drools builder any errors in the .drl files are highlighted. Not so with the
.rf. In order to see what is generated it appears that you have to step
through in debug mode at runtime and buried inside there is a string
representation of everything that was generated as well a list of errors
which refer to errors such as parse errors. Unfortunately this manifests
itself eventually (at least with my flow) as a NullPointerException giving
absolutely no indication as to the root of the problems, which I am assuming
are these parser errors. Seems to me that these errors should be returned
with a call to packageBuilder.hasErrors() which is empty in my case.
3) Code assist doesnt appear to work in action editor or constraint editor
which is I think is a pretty big usablity issue. Anything planned to make
this available?

Thanks
</description>
    <dc:creator>keithnielsen</dc:creator>
    <dc:date>2008-12-01T16:47:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13101">
    <title>drools 4.0 and enum in java 1.5</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13101</link>
    <description>Hello,

I'd like to use enum in java 1.5 with drools.

I try that :

A message class :
package com.pv.rules.beans;

public class Message {

String payload;
Type type;

public enum Type {
   XML;
}

public Message(){
this.type = Type.XML;
}

public Message(String payload){
this.type = Type.XML;
this.payload = payload;
};

public String getPayload(){
return payload;
}

public void setPayload(String payload){
this.payload = payload;
}

public Type getType(){
return type;
}
}

and in my drl :

rule "Contexte1"
when
&gt;msg : Message(type == "XML", payload : payload)
xpathEquals "/Root/aaaa" "bbbb"
xpathEquals "/Root/cccc" "dddd
then
Log : "Contexte 1 ************* : OK";
end

but I've this error :

Unable to resolve ObjectType 'Message' : [Rule name=Contexte1,
agendaGroup=MAIN, salience=0, no-loop=false]
Rule Compilation error : [Rule name=Contexte1, agendaGroup=MAIN,
salience=0, no-loop=false]

Do you have an idea?

Thanks :-)

_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Thierry B</dc:creator>
    <dc:date>2008-12-01T10:01:33</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13100">
    <title>expand rules with dsl</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13100</link>
    <description>Hello,

I've a question about drl and dsl with drools 4.0.

I've this rule :

rule "Contexte1"
when
   msg : Message(payload : payload)
   eval (DOMUtil.xpathEquals(payload, "/Root/aaaa", "bbb"))
   eval (DOMUtil.xpathEquals(payload, "/Root/cccc", "dddd"))
then
           System.out.println ("Contexte 1 ************* : OK");
end

I use a dsl, to make it work, so now my drl is like that :

rule "Contexte1"
when
&gt;msg : Message(payload : payload)
xpathEquals "/Root/aaaa" "bbb"
xpathEquals "/Root/cccc" "dddd"
then
Log : "Contexte 1 ************* : OK";
end

I was forced to make an "&gt;" at the line "msg : Message(payload : payload)"
otherwise, he tells me that he can't expand that line.

There is a way to :
- avoid to put the "&gt;" even if I have to add something else to the dsl ?
- avoid the line "msg : Message(payload : payload)" in my drl and simplify
my dsl so that xPathEquals "know" that the "payload" variable come from
any object Message in Working Memory ?

Thanks :-)

_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Thierry B</dc:creator>
    <dc:date>2008-12-01T08:56:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13098">
    <title>recommend way about same when , different then</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13098</link>
    <description>Hi. I'm newbie to Drools.

I'm just wondering how I define the rules with my web application that has
several layers, web,business-logic,and data access.
one rule is used in the wab layer, and another one is used in the
business-logic layer.
Both rule's "when" are the same, but the "then"(action) is different.

It looks like code dupulication.
(I mean when the "when" changes, every rules that has same "when" has to be
changed, right?)

What's the recommended way in this situation?

thanks

Shige


_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

</description>
    <dc:creator>Shigeaki Wakizaka</dc:creator>
    <dc:date>2008-12-01T04:28:02</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13095">
    <title>Oring conditions</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13095</link>
    <description>_______________________________________________
rules-users mailing list
rules-users&lt; at &gt;lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
</description>
    <dc:creator>Waleed Zedan</dc:creator>
    <dc:date>2008-11-30T12:27:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.drools.user/13092">
    <title>Best (better) practices question</title>
    <link>http://comments.gmane.org/gmane.comp.java.drools.user/13092</link>
    <description>
I am working on an application that tells how much insulin should be given to
a patient with different glucose values.  I have a decision object that
contains the current value of glucose and the rules alter the decision
object to include advice or explanations.

Since the decision object is modified, I have to have some kind of state
object so that rules do not loop;  I have created a state object that has a
series of boolean fields which are checked.  However, this feels like I am
circumventing the whole idea of an inference engine.  So I have made an
alternative helper class that contains inner classes that can be inserted as
facts.

Here is a sample rule with the first method:
[code]
rule "Detect mild hypoglycemia"
when
decision : GlucoseDecision( serumGlucoseConcentration &lt; 80, 
serumGlucoseConcentration &gt;= 60 )
decisionState : GlucoseDecisionState(currentGlucoseBelowRange == true,
mildHypoglycemia == false)
then
decisionState.setMildHypoglycemia(true); 
decision.explain("The patient has mild hypoglycemia (serum glucose is " + 
decision.getSerumGlucoseConcentration() +" mg/dL).");
end
[/code]

Here is the same rule using the second approach:
[code]
rule "Detect mild hypoglycemia"
when
decision : GlucoseDecision( serumGlucoseConcentration &lt; 80, 
serumGlucoseConcentration &gt;= 60 )
currentGlucoseBelowRange()
not(mildHypoglycemia())
then
insert(new mildHypoglycemia());
decision.explain("The patient has mild hypoglycemia (serum glucose is " + 
decision.getSerumGlucoseConcentration() +" mg/dL).");
end
[/code]

My question is whether one or the other of these approaches is a better
practice?  Using facts would make my rules trace more sensible, I think, but
perhaps it is much less efficient.  Comments are appreciated.  Thank you.

- Mike
</description>
    <dc:creator>Mike Dean</dc:creator>
    <dc:date>2008-11-28T23:47:31</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.java.drools.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.drools.user</link>
  </textinput>
</rdf:RDF>
