Re: [rules-users] Upgrade 4.0.4 to 4.0.5 failed !?

2008-03-20 Thread Edson Tirelli
The bad news is that you just won the 1st bug reported in 4.0.5..  :(

I opened a ticket for that:

http://jira.jboss.com/jira/browse/JBRULES-1519

I just committed the fix to the 4.0.x branch. Can you please double
check it is working now? you can build from source from here:

http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/

[]s
Edson

2008/3/20, Markus Helbig [EMAIL PROTECTED]:

 Dear Drools users,

 i tried to replace Drools 4.0.4 with 4.0.5 and know i get the following
 errors:

 [20.03.08 09:21:24:100 CET] 0036 SystemOut O 2008-03-20
 09:21:24 XXX  ERROR Exception executing predicate
 [EMAIL PROTECTED] -
 org.drools.RuntimeDroolsException: Exception executing predicate
 [EMAIL PROTECTED]
 org.drools.RuntimeDroolsException: Exception executing predicate
 [EMAIL PROTECTED]
at org.drools.rule.PredicateConstraint.isAllowed(
 PredicateConstraint.java:216)
at org.drools.rule.OrConstraint.isAllowed(OrConstraint.java:50)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)
at
 org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(
 CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(
 SingleObjectSinkAdapter.java:22)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(
 SingleObjectSinkAdapter.java:22)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at
 org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(
 CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.ObjectTypeNode.assertObject(
 ObjectTypeNode.java:153)
at org.drools.reteoo.Rete.assertObject(Rete.java:175)
at org.drools.reteoo.ReteooRuleBase.assertObject(
 ReteooRuleBase.java:192)
at org.drools.reteoo.ReteooWorkingMemory.doInsert(
 ReteooWorkingMemory.java:71)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:915)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:887)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:688)

 Caused by:
 java.lang.ClassCastException:

 org/drools/rule/AbstractCompositeConstraint$MultiFieldConstraintContextEntry
 incompatible with
 org/drools/rule/PredicateConstraint$PredicateContextEntry
at org.drools.rule.PredicateConstraint.isAllowed(
 PredicateConstraint.java:209)
at org.drools.rule.OrConstraint.isAllowed(OrConstraint.java:50)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)
at
 org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(
 CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(
 SingleObjectSinkAdapter.java:22)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(
 SingleObjectSinkAdapter.java:22)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
at
 org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(
 CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.ObjectTypeNode.assertObject(
 ObjectTypeNode.java:153)
at org.drools.reteoo.Rete.assertObject(Rete.java:175)
at org.drools.reteoo.ReteooRuleBase.assertObject(
 ReteooRuleBase.java:192)
at org.drools.reteoo.ReteooWorkingMemory.doInsert(
 ReteooWorkingMemory.java:71)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:915)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:887)
at org.drools.common.AbstractWorkingMemory.insert(
 AbstractWorkingMemory.java:688)

 What do i have to change? Do i miss sth important?

 Cheers

 Markus
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] Atlanta area contact?

2008-03-20 Thread Benjamin McMillan
Thanks, all!

 

Cheers,

Benjamin J McMillan | Application Development Analyst
Software Research Center
Aflac Incorporated

Tel: 770-448-9823 x. 8964 | Fax: 770-448-4770
3720 DaVinci Court, Suite 225, Norcross GA 30092

[EMAIL PROTECTED] | aflac.com

This e-mail and any attachments may contain confidential information
intended solely for the use of the addressee. If the reader of this
message is not the intended recipient, any distribution, copying, or use
of this e-mail or its attachments is prohibited.  If you received this
message in error, please notify the sender immediately by e-mail and
delete this message and any copies.  Thank you

 



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edson Tirelli
Sent: Wednesday, March 19, 2008 5:50 PM
To: Rules Users List
Subject: Re: [rules-users] Atlanta area contact?

 


   Nope, but I there are a couple consultants in USA that I think are in
Atlanta area... Jeff and Paul I think... 
   Join the IRC and talk to Mark (conan).. he can point you in the right
direction.

  []s
  Edson

2008/3/19, Benjamin McMillan [EMAIL PROTECTED]:

Hi all,

 

Is anyone involved in (as in, an actual dev or lead) Drools residing in
the Atlanta area, by any chance?

 

Thanks,

Benjamin J McMillan | Application Development Analyst
Software Research Center
Aflac Incorporated

Tel: 770-448-9823 x. 8964 | Fax: 770-448-4770
3720 DaVinci Court, Suite 225, Norcross GA 30092

[EMAIL PROTECTED] | aflac.com

This e-mail and any attachments may contain confidential information
intended solely for the use of the addressee. If the reader of this
message is not the intended recipient, any distribution, copying, or use
of this e-mail or its attachments is prohibited.  If you received this
message in error, please notify the sender immediately by e-mail and
delete this message and any copies.  Thank you

 

Confidentiality Notice: 

This e-mail and any attachments may contain confidential information
intended solely for the use of the addressee.  If the reader of this
message is not the intended recipient, any distribution, copying, or use
of this e-mail or its attachments is prohibited.  If you received this
message in error, please notify the sender immediately by e-mail and
delete this message and any copies. Thank you. 


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] How to get source code for Drools 4.0.1

2008-03-20 Thread Srinath Perera
Thanks!! will give it a try
--Srinath

On Wed, Mar 19, 2008 at 2:09 PM, Fernando Meyer [EMAIL PROTECTED] wrote:
 you can get the source from svn and build anything you want :)

 http://anonsvn.jboss.org/repos/labs/labs/jbossrules/tags/4.0.1.14754GA/





 On Wed, Mar 19, 2008 at 3:05 PM, Srinath Perera [EMAIL PROTECTED] wrote:
 
 
 
  Hi All;
 
  I need the source code and eclipse workbench for  Drools 4.0.1.
  However with 4.0.4 release old links are updated. Anybody knows those
  links?
 
  Thanks
  Srinath
 
  --
  
 
 
 
  Srinath Perera:
   Indiana University, Bloomington
   http://www.cs.indiana.edu/~hperera/
   http://www.bloglines.com/blog/hemapani
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 



 --
 Fernando Meyer http://fmeyer.org
 JBoss Rules Core Developer
 [EMAIL PROTECTED]
 ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users





-- 

Srinath Perera:
 Indiana University, Bloomington
 http://www.cs.indiana.edu/~hperera/
 http://www.bloglines.com/blog/hemapani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Convert .brl to .drl

2008-03-20 Thread Michael
Hello!

I have found this:

you can use the following snippet of code to convert the brl to a drl rule:

BRXMLPersitence read = BRXMLPersitence.getInstance();
BRDRLPersistence write = BRDRLPersistence.getInstance();
String brl = ... read from the .brl file as needed...
String outputDRL = write.marshall(read.unmarshal(brl));
//then pass the outputDRL to the PackageBuilder as normal

Can you explain please: String brl = ... read from the .brl file as needed...
for example if I have  first.brl and I want first.drl

Thank you... =)
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] What is the process to make a patch

2008-03-20 Thread Christie, Blair
What is the process to go through to make a patc?

 

Blair Christie

 

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] (no subject)

2008-03-20 Thread Saleem Lakhani
Hi,

 

I need to have two objects of the same class present in the working
memory at the same time. Both objects can have other nested objects of
different classes.

The reason is I need to compare data change b/w two objects. E.g;

 

originalObject_A.getPersonTO().getAge() !=
changedObject_A.getPersonTO().getAge()

 

I am using Drools 3.0, DRLs and DSL. 

 

My question is: how do I assert two objects belonging to the same class
in working memory in order to access them both in DSL.

 

E;g 

 

I can do: 

 

workingMemory.assertObject(originalObject_A); //instance of class A


workingMemory.assertObject(changedObject_A); //instance of class A

 

and in DRL I can write: 

 

[when]There is an instance with = originalObject_A:ClassA()

 

how do I get the changedObject_A in dsl. 

 

How does drools know which object I am requesting? I hope my question is
clear. Is it even possible in drools 3.0?

 

Thanks

Saleem Lakhani

 

 

 

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users