Hi Geoffrey,
Today I tried to follow the process for selecting a tabu move through
propertytabuList. correct me if I misunderstood:
Make a moveCreate a collection of objects through the method
getTabuProperties()In the class AbstractTabuAccepter I check if at least one of
these objects is conta
Hi
I have this rule in my drl file :
rule "cuentaOrigen Numerico 20 digitos y Modulo 11"
when
$detalle : ArchivoDetalleBean( msg=
eval(!ValidationUtils.validarNumeroCuenta(cuentaOrigen)) );
then
errorList.add(new ErrorPlugInBean(1, msg));
end
I would like to get the "msg"
Khalil,
Drools does support strings, as it should. Something else is going on
there. I assume you have a proper: public String getId() method.
All I can suggest is for you to open a jira and attach a test case to
reproduce the problem.
Edson
2010/2/5 Khalil Hafsi
> Hi Guys,
>
> I
Rogerio,
I don't know what javassist does with your class... if it preserves the
object hierarchy (what I think it probably does), then it must work. The
only way to find out the reason is with an isolated test case and do some
debugging to understand why it is not failing the isAssignableFr
On Fri, Feb 5, 2010 at 5:46 PM, Rogerio Baldini
wrote:
> I think you didn't understand my problem.
Perhaps. But the code you posted doesn't seem right.
> I don't have any problem related to Java arrays.
> My problem is drools is not working with proxy objects.
>
> I am executing drools rules wit
Hi Guys,
I am using Drools fusion 5, My "Event" class // @role (event) // has a
string parameter "id" , however if I try to do :
//
Rule ..
..
$a : Event(id == "a")
then
//do something
end
It complains about "Conversion from double is not supported in
java.lang.String" , is there any way to ma
Happens to me all the time, but I'm a real novice at rules. I find it
easiest to start with helloworld level rulesets until I can fully understand
how a ruleset can stay in an infinite loop by creating effects which in turn
create more effects. It's a feature, not a bug. :)
2010/2/5 Edson Tirelli
Hi,
I wonder if anyone has worked on a tranformation of SWRL rules (or RuleML)
to Drools? The use case is this: I'm loading OWL ontology to Drools (as
triples) and want to use Drools for infererence based on the SWRL
definitions. It sounds straignt forward, I wonder if it's been done yet.
Thanks
Hehe, not normal at all. :) You probably have an infinite loop in your
rules. Try using the audit log to track what is going on, and the
fireAllRules( int maxFirings ) parameter to prevent it from looping forever.
Edson
2010/2/5 Khalil Hafsi
> Hi Guys,
>
> I am using Drools fusion 5 , is
Hi,
you might want to give this book a try:
"Drools JBoss Rules 5.0 Developer's Guide"
You'll find a *LOT* of examples using BigDecimal.
Cheers,
Jarek
Nikhil S. Kulkarni wrote:
> Hi,
>
>
>
> I have a doubt that how to use java.math.BigDecimal within facts of Drools.
>
>
>
> Waiting
I think you didn't understand my problem.
I don't have any problem related to Java arrays.
My problem is drools is not working with proxy objects.
I am executing drools rules with one javassist object
(package.MyClass_$$_javassist_2) and drools is not recognizing this object
as package.MyClass a
Hi Guys,
I am using Drools fusion 5 , is it actually normal that the engine does
not terminate ? I am using fireallRules.
Thanks,
k-
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Unfortunately a Java array does not implement the Iterable interface,
so we have to use the JDK converter method Arrays.asList(...).
Try
ksession.execute( Arrays.asList( new Object[] { myObject} ) );
-W
2010/2/5 Rogerio Baldini :
> Hi guys,
>
>
>
> I am trying to execute rules passing a pro
Hi guys,
I am trying to execute rules passing a proxy object to it.
The object myObject is a javassist proxy object:
package.MyClass_$$_javassist_2
Properties p = new Properties();
p.put("url",
"http://localhost:8090/drools-guvnor/org.drools.guvnor.Guvnor/package/pacote
/LATEST");
Hi,
I want to use some "complex" conditions on the lhs of a rule.
Following the example in the drools-expert docu:
Person( girlAge : age, sex = "F" )
Person( eval( age == girlAge + 2 ), sex = 'M' )
I have try the following rule:
rule "detect stop of cars"
when
p1:PositionReportEven
Hello all,
Newbie question here, but I wasn't sure from the manual if the issue was
mine or related to OS X.
I am trying to run the drools-planner examples in
src/main/assembly/scripts/runExamples.sh, but continue to get this error
nomatter what example I try. Am I missing something simple?
Hello,
I'm using Planner in a Scala program and it almost works without problems; the
only one is in implementing the Solution interface, as it uses raw (erased)
version of Score, which is normally generic (Score). Scala
generally doesn't like raw types and in most cases it's impossible to
ext
Hi,
On Thu, 2010-02-04 at 16:04 -0500, Edson Tirelli wrote:
>
>Ok, this one was hidden for a long time. Interesting no one
> stumbled on it before you.
>
> https://jira.jboss.org/jira/browse/JBRULES-2424
>
>The problem is triggered in case your fact class/interface has a
> method that
18 matches
Mail list logo