[rules-users] JBoss Drools 4.0 Released

2007-07-25 Thread Mark Proctor
JBoss Drools 4.0 has just been released :) We are really proud of what 
we have done here. We believe that we now have the best and most 
powerful declarative rule language, bar none; commercial or open source. 
The Rule Flow is excellent and I really enjoyed updating the Conway's 
Game of Life to Rule Flow; sub Rule Flows and milestone support will be 
coming in a point release soon. The BRMS has long been requested and we 
put a lot of effort into the ajax based design. The Eclipse improvements 
for the  debug points and guided editor should help reduce learning 
curves, opening us to new audiences. Of course performance is now much 
better, especially for complex rules and the new Sequential Mode should 
be very popular with decision services.


Boss Drools 4.0 can be summarised as:
* More expressiveness.
* More powerful declarative keywords.
* Hibernate ready, with 'from' keyword for evaluating external data.
* Pluggable dialects, with new MVEL dialect.
* New Rule Flow and Eclipse modeller.
* Better Performance.
* IDE Improvements.
* Enterprise Ready with Web 2.0 Business Rules Management Studio.

Resources:
* Presentation from Skills Matter 
http://wiki.jboss.org/wiki/attach?page=JBossRules%2FSkillsMatter20070711.pdf
* What's new in JBoss Rules 4.0 
http://wiki.jboss.org/wiki/attach?page=JBossRules%2Fwhats_new_in_jbossrules_4.0.pdf


Enjoy :)
The Drools Team
Mark Proctor, Michael Neale, Edson Tirelli, Kris Verlaenen, Fernando Meyer
http://blog.athico.com

Here is a more detailed enhancements list:
Language Expressiveness Enhancements
* New Conditional Elements: from(hibernate ready), collect, accumulate 
and forall
* New Field Constraint operators: not matches, not contains, in, not in, 
memberOf, not memberOf

* New Implicit Self Reference field: this
* Full support to Conditional Elements nesting, for First Order Logic 
completeness.

* Support to multi-restrictions and constraint connectives  and ||
* Parser improvements to remove previous language limitations, like 
character escaping and keyword conflicts

* Support to pluggable dialects and built-in support to Java and MVEL
* Complete rewrite of DSL engine, allowing for full l10n
* Fact attributes auto-vivification for return value restrictions and 
inline-eval constraints
* Support to nested accessors, property navigation and simplified 
collection, arrays and maps syntax

* Improved support to XML rules
* Experimental Clips parser support

Core Engine Enhancements
* Native support to primitive types, avoiding constant autoboxing
* Transparent optional Shadow Facts
* Rete Network performance improvements for complex rules
* Rule-Flow
* Stateful and Stateless working memories (rule engine sessions)
* Support for Asynchronous Working Memory actions
* Rules Engine Agent for hot deployment and BRMS integration
* Pluggeable dialects and and full support to MVEL scripting language
* Dynamic salience for rules conflict resolution
* Parameterized Queries
* halt command
* Sequential execution mode, faster performance and uses less memory
* Pluggable global variable resolver

IDE Enhancements
* Support for rule break-points on debugging
* WYSIWYG support to rule-flows
* New guided editor for rules authoring
* Upgrade to support all new engine features

Business Rules Management System - BRMS
* User friendly web interface with nice WEB 2.0 ajax features (GWT)
* Package configuration
* Rule Authoring easy to edit rules both with guided editor ( drop-down 
menus ) and text editor

* Package compilation and deployment
* Easy deployment with Rule Agent
* Easy to organize with categories and search assets
* Versioning enabled, you can easily replace yours assets with 
previously saved

* JCR compliant rule assets repository

Miscellaneous Enhancements
* Slimmed down dependencies and smaller memory footprint

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


[rules-users] Re: Load working memory with old/existsing facts

2007-07-25 Thread Arjun Dhar
 tom at bergstein-soraic.de writes:

 
 
 I've a use case that is similar to the TroubleTicketExample that is part of 
the drools examples.  
 In this examples new tickets are inserted via workingMemory.assertObject
(ticket). However, tickets are usually managed and stored in a ticketing system 
(Remedy, Peregrine, etc). When I stop the drools engine, I assume that the 
state of the working memory is lost. When I start the engine again, I'd like to 
load the working memory with the tickets that are stored in the ticketing 
system, but I don't want to fire all rules, since I'd to avoid that rules are 
executed again (e.g., rule Escalate - send a e-mail), which have been 
already executed before the drools engine has
   been stopped. Existing tickets in the ticketing system are important facts 
for the rules!
   and therefore the need to be loaded into the morking memory.
 
  
 Is there a way to build up the working memory with initial facts? 
 Can I persist the state of the working memory and load it later again? 
 
  
 Many thanks in advance, 
   Tom 
 

Hey my two bits,

Assuming I dont know much about StatefulSessions holding objects I wanted to 
check with you, is this safe? I'm not sure over a period of time if your 
objects would be released with a StatefulSession/WorkingMemory, would recommend 
you 'soak test' (test over a period of time with consistent load)

But here is the possibility:
Well the interface WorkinfgMemory -- extends -- Eventmanager which extends 
Serializable.

You could try serializing the object, or query your WorkingMemory for its state 
and save it to a database. Am assuming you are using StatefulSession so you 
will have access to WorkingMemory.

Conceptually I just think its worng to use a Rule Engine to persist state over 
a such a long period of time. Any expert opinion?

regards,
Arjun

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


Re: [rules-users] Re: Load working memory with old/existsing facts

2007-07-25 Thread Edson Tirelli

  Technically it is possible and supported to serialize working memories.
Although, we did faced problems with large serializations due to a known
recursion issue in JDK. There is a JIRA for that, but I don't have the link
right now.

   Now, if you want to reassert objects without firing rules, maybe what
you can do is call WorkingMemory.clearAgenda() after reasserting the
objects. Not sure if that will give you the results you expect.

   []s
   Edson


2007/7/25, Arjun Dhar [EMAIL PROTECTED]:


tom at bergstein-soraic.de writes:



 I've a use case that is similar to the TroubleTicketExample that is part
of
the drools examples.
 In this examples new tickets are inserted via workingMemory.assertObject
(ticket). However, tickets are usually managed and stored in a ticketing
system
(Remedy, Peregrine, etc). When I stop the drools engine, I assume that the
state of the working memory is lost. When I start the engine again, I'd
like to
load the working memory with the tickets that are stored in the ticketing
system, but I don't want to fire all rules, since I'd to avoid that rules
are
executed again (e.g., rule Escalate - send a e-mail), which have been
already executed before the drools engine has
   been stopped. Existing tickets in the ticketing system are important
facts
for the rules!
   and therefore the need to be loaded into the morking memory.


 Is there a way to build up the working memory with initial facts?
 Can I persist the state of the working memory and load it later again?


 Many thanks in advance,
 Tom


Hey my two bits,

Assuming I dont know much about StatefulSessions holding objects I wanted
to
check with you, is this safe? I'm not sure over a period of time if your
objects would be released with a StatefulSession/WorkingMemory, would
recommend
you 'soak test' (test over a period of time with consistent load)

But here is the possibility:
Well the interface WorkinfgMemory -- extends -- Eventmanager which
extends
Serializable.

You could try serializing the object, or query your WorkingMemory for its
state
and save it to a database. Am assuming you are using StatefulSession so
you
will have access to WorkingMemory.

Conceptually I just think its worng to use a Rule Engine to persist state
over
a such a long period of time. Any expert opinion?

regards,
Arjun

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





--
 Edson Tirelli
 Software Engineer - JBoss Rules Core Developer
 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 write constraint about a Map inside a Map?

2007-07-25 Thread Edson Tirelli

   What error are you getting?

   I just tested this in MVELSH and it works:

mvel$ map[outerKey][innerKey]
OUT: innerValue

   []s
   Edson


2007/7/24, Felipe Piccolini [EMAIL PROTECTED]:


Suppouse I have a Map attribute and one of the values is another Map...how
can I check a member of the inner Map?
class MyFact{
 Map map;
 public MyFact(){
   this.map = new HashMap();
 }

 setter and getter...

}

-- test --
MyFact myFact = new MyFact();

Map innerMap = new HashMap();
innerMap.put(innerKey, new String(InnerValue));

Map map = new HashMap();
map.put(mapKey, innerMap);

myFact.setMap(map);

 set the RuleBase and insert myFact as a fact for the WorkingMemory...

---

Now... how should I write the rule to check the innerKey ??

rule test InnerMap
 when
   $mf: MyFact( map['mapKey']['innerKey'] == InnerValue ) //
doesnt work...


   $mf: MyFact( map['mapKey'].this['innerKey'] == InnerValue )
// doesnt work...
   $mf: MyFact( map['mapKey'].['innerKey'] == InnerValue ) // doesnt
work...
   $mf: MyFact( $innerMap: map['mapKey'], $innerMap['innerKey'] ==
InnerValue ) // doesnt work...
   $mf: MyFact( $innerMap: map['mapKey'] - ($innerMap['innerKey']
== InnerValue )) // doesnt work...


Thanks.
*Felipe
Piccolini M.*
[EMAIL PROTECTED]





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





--
 Edson Tirelli
 Software Engineer - JBoss Rules Core Developer
 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] Problem with function

2007-07-25 Thread Dean Jones

Isn't the problem that the function parameter (loanAmount) doesn't
have a type? Or am I missing something?

Dean.

On 7/25/07, Edson Tirelli [EMAIL PROTECTED] wrote:


Natraj,

Can you try it with the 4.0GA release please? We fixed a couple issues
related to functions for the final release.

[]s
Edson


2007/7/24, Natraj Gudla  [EMAIL PROTECTED]:

 With 4.0.0 i am getting the run time exception on functions. what could be
the problem

 Exception



 java.lang.NullPointerException

 at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:127)
 at
org.drools.rule.builder.dialect.java.JavaFunctionBuilder.build(JavaFunctionBuilder.java:72)
 at
org.drools.rule.builder.dialect.java.JavaDialect.addFunction
(JavaDialect.java:434)
 at
org.drools.compiler.PackageBuilder.addFunction(PackageBuilder.java:350
)
 at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:259)
 at org.drools.compiler.PackageBuilder.addPackageFromDrl
(PackageBuilder.java:147)
 at
com.drools.sample.ParseDRL.readRuleFromDrl(ParseDRL.java:86
)
 at com.drools.sample.ParseDRL.main(ParseDRL.java:25)
 Exception in thread main



 My Function:

 function double getROI(loanAmount){



 double roI=0.0;
 if( loanAmount = 499000 )
 roI = 18;
 else if( loanAmount = 999000 )
 roI = 17;
 else if( loanAmount = 199 )
 roI = 14.5 ;
 else if( loanAmount = 399 )
 roI = 12;
 else if( loanAmount = 749 )
 roI = 11.5 ;
 else if( loanAmount  749 )
 roI = 9.99 ;
 return roI;



 }

 Thanks
 Natraj Gudla


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





--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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



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


[rules-users] or split

2007-07-25 Thread hypnosat7

Hi,

   When I set the split type to OR I have this exception :

Exception in thread AWT-EventQueue-0 java.lang.ClassCastException:
org.drools.common.RuleFlowGroupNode cannot be cast to
org.drools.spi.Activation

What it could be
-- 
View this message in context: 
http://www.nabble.com/or-split-tf4142836.html#a11784787
Sent from the drools - user mailing list archive at Nabble.com.

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


Re: [rules-users] How to write constraint about a Map inside a Map?

2007-07-25 Thread Felipe Piccolini

Edson,

Im so sorry, stupid me I dont know what happened but this  
doesnt worked yesterday...
dont remember the error, but now is working... must be murphy and his  
dominating laws :)


Thanks for reply :)

Confirm:  $mf: MyFact( map['mapKey']['innerKey'] == InnerValue ) //  
DOes work !! :)


On 25-07-2007, at 8:53, Edson Tirelli wrote:



What error are you getting?

I just tested this in MVELSH and it works:

mvel$ map[outerKey][innerKey]
OUT: innerValue

[]s
Edson


2007/7/24, Felipe Piccolini [EMAIL PROTECTED]:
Suppouse I have a Map attribute and one of the values is another  
Map...how can I check a member of the inner Map?


class MyFact{
 Map map;
 public MyFact(){
   this.map = new HashMap();
 }

 setter and getter...

}

-- test --
MyFact myFact = new MyFact();

Map innerMap = new HashMap();
innerMap.put(innerKey, new String(InnerValue));

Map map = new HashMap();
map.put(mapKey, innerMap);

myFact.setMap(map);

 set the RuleBase and insert myFact as a fact for the  
WorkingMemory...


---

Now... how should I write the rule to check the innerKey ??

rule test InnerMap
 when
   $mf: MyFact( map['mapKey']['innerKey'] ==  
InnerValue ) // doesnt work...



   $mf: MyFact( map['mapKey'].this['innerKey'] ==  
InnerValue ) // doesnt work...
	   $mf: MyFact( map['mapKey'].['innerKey'] == InnerValue ) //  
doesnt work...
	   $mf: MyFact( $innerMap: map['mapKey'], $innerMap['innerKey'] ==  
InnerValue ) // doesnt work...
   $mf: MyFact( $innerMap: map['mapKey'] - ($innerMap 
['innerKey'] == InnerValue )) // doesnt work...



Thanks.

Felipe Piccolini M.
[EMAIL PROTECTED]





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




--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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



Felipe Piccolini M.
[EMAIL PROTECTED]




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


Re: [rules-users] JBoss Drools 4.0 Released

2007-07-25 Thread Felipe Piccolini
Congratz to all the team!!! Amazing work, really fast and hard work  
done in last months :)



On 25-07-2007, at 5:04, Mark Proctor wrote:

JBoss Drools 4.0 has just been released :) We are really proud of  
what we have done here. We believe that we now have the best and  
most powerful declarative rule language, bar none; commercial or  
open source. The Rule Flow is excellent and I really enjoyed  
updating the Conway's Game of Life to Rule Flow; sub Rule Flows and  
milestone support will be coming in a point release soon. The BRMS  
has long been requested and we put a lot of effort into the ajax  
based design. The Eclipse improvements for the  debug points and  
guided editor should help reduce learning curves, opening us to new  
audiences. Of course performance is now much better, especially for  
complex rules and the new Sequential Mode should be very popular  
with decision services.


Boss Drools 4.0 can be summarised as:
* More expressiveness.
* More powerful declarative keywords.
* Hibernate ready, with 'from' keyword for evaluating external data.
* Pluggable dialects, with new MVEL dialect.
* New Rule Flow and Eclipse modeller.
* Better Performance.
* IDE Improvements.
* Enterprise Ready with Web 2.0 Business Rules Management Studio.

Resources:
* Presentation from Skills Matter http://wiki.jboss.org/wiki/attach? 
page=JBossRules%2FSkillsMatter20070711.pdf
* What's new in JBoss Rules 4.0 http://wiki.jboss.org/wiki/attach? 
page=JBossRules%2Fwhats_new_in_jbossrules_4.0.pdf


Enjoy :)
The Drools Team
Mark Proctor, Michael Neale, Edson Tirelli, Kris Verlaenen,  
Fernando Meyer

http://blog.athico.com

Here is a more detailed enhancements list:
Language Expressiveness Enhancements
* New Conditional Elements: from(hibernate ready), collect,  
accumulate and forall
* New Field Constraint operators: not matches, not contains, in,  
not in, memberOf, not memberOf

* New Implicit Self Reference field: this
* Full support to Conditional Elements nesting, for First Order  
Logic completeness.

* Support to multi-restrictions and constraint connectives  and ||
* Parser improvements to remove previous language limitations, like  
character escaping and keyword conflicts

* Support to pluggable dialects and built-in support to Java and MVEL
* Complete rewrite of DSL engine, allowing for full l10n
* Fact attributes auto-vivification for return value restrictions  
and inline-eval constraints
* Support to nested accessors, property navigation and simplified  
collection, arrays and maps syntax

* Improved support to XML rules
* Experimental Clips parser support

Core Engine Enhancements
* Native support to primitive types, avoiding constant autoboxing
* Transparent optional Shadow Facts
* Rete Network performance improvements for complex rules
* Rule-Flow
* Stateful and Stateless working memories (rule engine sessions)
* Support for Asynchronous Working Memory actions
* Rules Engine Agent for hot deployment and BRMS integration
* Pluggeable dialects and and full support to MVEL scripting language
* Dynamic salience for rules conflict resolution
* Parameterized Queries
* halt command
* Sequential execution mode, faster performance and uses less memory
* Pluggable global variable resolver

IDE Enhancements
* Support for rule break-points on debugging
* WYSIWYG support to rule-flows
* New guided editor for rules authoring
* Upgrade to support all new engine features

Business Rules Management System - BRMS
* User friendly web interface with nice WEB 2.0 ajax features (GWT)
* Package configuration
* Rule Authoring easy to edit rules both with guided editor ( drop- 
down menus ) and text editor

* Package compilation and deployment
* Easy deployment with Rule Agent
* Easy to organize with categories and search assets
* Versioning enabled, you can easily replace yours assets with  
previously saved

* JCR compliant rule assets repository

Miscellaneous Enhancements
* Slimmed down dependencies and smaller memory footprint

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



Felipe Piccolini M.
[EMAIL PROTECTED]




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


Re: [rules-users] [URGENT] Update in BRMS 1.0 released with drools 4.0.0

2007-07-25 Thread Zidboy

Fernando you writing spanish?

On 7/25/07, Fernando Meyer [EMAIL PROTECTED] wrote:


 Hi peeps,


For those who downloaded BRMS 1.0 from 4.0.0 (just released), you will
need to download the BRMS archive again due a missing step during the
yesterdays release process.



We are really sorry about that. just follow to downloads page
http://labs.jboss.com/drools/downloads


Regards

 Fernando Meyer http://fmeyer.org
[EMAIL PROTECTED]
 PGP: 0xD804DDFB






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





--
-
Eduardo Ibarra Flores
Analista Programador de Sistemas
mailto:[EMAIL PROTECTED]
--
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Job Board

2007-07-25 Thread Mark Proctor
Want to recruite a Drools developer? Then please use our Job Board, 
which is linked into our blog:

http://jobs.athico.com/

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


Re: [rules-users] [URGENT] Update in BRMS 1.0 released with drools 4.0.0

2007-07-25 Thread Mark Proctor

It's a Harry Enfield thing:
http://www.youtube.com/watch?v=yICyNLWAmvk
http://www.youtube.com/watch?v=0mYssEXILjc
http://en.wikipedia.org/wiki/Harry_Enfield
http://www.everything2.com/index.pl?node_id=642064

Zidboy wrote:

Fernando you writing spanish?

On 7/25/07, *Fernando Meyer* [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi peeps, 

 
For those who downloaded BRMS 1.0 from 4.0.0 (just released), you

will need to download the BRMS archive again due a missing step
during the yesterdays release process. 
 

 
We are really sorry about that. just follow to downloads page 
http://labs.jboss.com/drools/downloads


 
Regards 


Fernando Meyer http://fmeyer.org http://fmeyer.org/
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
PGP: 0xD804DDFB

 



 


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




--
-
Eduardo Ibarra Flores
Analista Programador de Sistemas
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
--


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


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


[rules-users] [URGENT] Update in BRMS 1.0 released with drools 4.0.0

2007-07-25 Thread Fernando Meyer

Hi peeps,

	For those who downloaded BRMS 1.0 from 4.0.0 (just released), you  
will need to download the BRMS archive again due a missing step  
during the yesterdays release process.


	We are really sorry about that. just follow to downloads page http:// 
labs.jboss.com/drools/downloads


Regards

Fernando Meyer http://fmeyer.org
[EMAIL PROTECTED]
PGP: 0xD804DDFB



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


[rules-users] IDE update site and Drools 4.0.0 maven Repository

2007-07-25 Thread Fernando Meyer
We have just updated maven repository and drools IDE update site to  
include drools 4.0.0 GA libraries. You can check both at the  
following addresses:


http://repository.jboss.com/maven2/org/drools/

http://downloads.jboss.com/drools/updatesite/site.xml

Last but not less important, remember that the new drools page at  
jboss.org is http://labs.jboss.com/drools/ as same as the new  
downloads page http://labs.jboss.com/drools/downloads


Fernando Meyer - http://fmeyer.org
Y! [EMAIL PROTECTED]
Software Engineer - JBoss Rules Core Developer
Office:   +55 11 3124-6000
Mobile: +55 11 8524-1298
JBoss, a division of Red Hat @ www.jboss.com
PGP: 0xAB29DA3A

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


Re: [rules-users] Problem with function

2007-07-25 Thread Natraj Gudla
Hello Jones,

I am extremely sorry of not updating the users. After i posted the query, i
realised the problem infact was what you pointed. It was quite
silly.Itworks now.

Thanks a lot for your reply.

Thanks
Natraj Gudla.


On 7/25/07, Dean Jones [EMAIL PROTECTED] wrote:

 Isn't the problem that the function parameter (loanAmount) doesn't
 have a type? Or am I missing something?

 Dean.

 On 7/25/07, Edson Tirelli [EMAIL PROTECTED] wrote:
 
  Natraj,
 
  Can you try it with the 4.0GA release please? We fixed a couple
 issues
  related to functions for the final release.
 
  []s
  Edson
 
 
  2007/7/24, Natraj Gudla  [EMAIL PROTECTED]:
  
   With 4.0.0 i am getting the run time exception on functions. what
 could be
  the problem
  
   Exception
  
  
  
   java.lang.NullPointerException
  
   at
  org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java
 :127)
   at
  org.drools.rule.builder.dialect.java.JavaFunctionBuilder.build(
 JavaFunctionBuilder.java:72)
   at
  org.drools.rule.builder.dialect.java.JavaDialect.addFunction
  (JavaDialect.java:434)
   at
  org.drools.compiler.PackageBuilder.addFunction(PackageBuilder.java:350
  )
   at
  org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:259)
   at org.drools.compiler.PackageBuilder.addPackageFromDrl
  (PackageBuilder.java:147)
   at
  com.drools.sample.ParseDRL.readRuleFromDrl(ParseDRL.java:86
  )
   at com.drools.sample.ParseDRL.main(ParseDRL.java:25)
   Exception in thread main
  
  
  
   My Function:
  
   function double getROI(loanAmount){
  
  
  
   double roI=0.0;
   if( loanAmount = 499000 )
   roI = 18;
   else if( loanAmount = 999000 )
   roI = 17;
   else if( loanAmount = 199 )
   roI = 14.5 ;
   else if( loanAmount = 399 )
   roI = 12;
   else if( loanAmount = 749 )
   roI = 11.5 ;
   else if( loanAmount  749 )
   roI = 9.99 ;
   return roI;
  
  
  
   }
  
   Thanks
   Natraj Gudla
  
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
  
  
 
 
 
  --
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
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
 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

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


Re: [rules-users] Trouble with BRMS on newly released 4.0

2007-07-25 Thread Fernando Meyer


Hi Rick

	Have you resolved all seam dependencies? you can access tomcat/ 
jbossws logs dir ( apache-tomcat/logs ), look for localhost 
$timestamp.log (where $timestamp is your latest run date) and search  
for something like this.


	Jul 25, 2007 3:50:53 PM org.apache.catalina.core.StandardContext  
listenerStart
	SEVERE: Exception sending context initialized event to listener  
instance of class org.jboss.seam.servlet.SeamListener

java.lang.NoClassDefFoundError: javax/faces/context/FacesContext


Fernando Meyer http://fmeyer.org
[EMAIL PROTECTED]
PGP: 0xD804DDFB



On Jul 25, 2007, at 1:52 PM, Wagner Rick - rwagne wrote:


Hi all,



Thanks for all the hard work going into 4.0.



Could you please help me diagnose a problem I’m having with the  
BRMS?  I’ve installed it on Tomcat 6 and JBossWS1.0.1, but under  
both when I try to access localhost/drools-jbrms I get only a  
banner header and a new URL:


http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/JBRMS.html



The log shows nothing out of the ordinary…



Thanks,



Rick



** 
*

The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be  
legally

privileged.

If the reader of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or copying of  
this

communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any  
copy

of it from your computer system.

Thank You.
** 
**

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


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


[rules-users] contains...

2007-07-25 Thread Manukyan, Sergey

Folks,

 

I am using MR3, have a situation when Parent has multiple Children, and
there is a rule that needs to be fired when parent has a child with
certain attribute (active == true)

 

Will need to do something like that :

 

rule

  when

 $p : Parent( active == false,  children contains Child() [ active
== true  ] )

  then

 ... register error: inactive parent cannot have active
child.

end

 

 

Please advice on correct syntaxes how to do that. Also please keep in
mind, I don't want to insert children in facts memory.

 

Thanks,

 

-Sergey

 

 

 

 

 

 



**
** LEGAL DISCLAIMER **
**

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Re: JBoss Drools 4.0 Released

2007-07-25 Thread Mark Proctor

thanks,

The wiki is open to all and an easy way to put up info.

Mark
Arjun Dhar wrote:

CONGRATULATIONS :o) And BIG Thanks guys! Brilliant Job.

Hope we can contribute better to your release. If nothing else atelast the 
documentation.


Actually, have discovered a lot of things and notes and am wondering how to 
share it back.


Example, writing multi table decision tables, rule sequencing without using 
Agenda Groups in Decision Tables etc.


How can we contribute back, is this the best place to post? Not sayin its all 
quality, but you filter it out ;o) 


congrats again,
Arjun

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

  


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


Re: [rules-users] JBoss Drools 4.0 Released

2007-07-25 Thread Mark Proctor

Hopefully tomorrow.

Mark
Eric Miles wrote:

Mark,

Any idea when 4.0GA will be up on the jboss maven repo?

Thanks!
Eric


On Wed, 2007-07-25 at 10:04 +0100, Mark Proctor wrote:
JBoss Drools 4.0 has just been released :) We are really proud of what 
we have done here. We believe that we now have the best and most 
powerful declarative rule language, bar none; commercial or open source. 
The Rule Flow is excellent and I really enjoyed updating the Conway's 
Game of Life to Rule Flow; sub Rule Flows and milestone support will be 
coming in a point release soon. The BRMS has long been requested and we 
put a lot of effort into the ajax based design. The Eclipse improvements 
for the  debug points and guided editor should help reduce learning 
curves, opening us to new audiences. Of course performance is now much 
better, especially for complex rules and the new Sequential Mode should 
be very popular with decision services.


Boss Drools 4.0 can be summarised as:
* More expressiveness.
* More powerful declarative keywords.
* Hibernate ready, with 'from' keyword for evaluating external data.
* Pluggable dialects, with new MVEL dialect.
* New Rule Flow and Eclipse modeller.
* Better Performance.
* IDE Improvements.
* Enterprise Ready with Web 2.0 Business Rules Management Studio.

Resources:
* Presentation from Skills Matter 
http://wiki.jboss.org/wiki/attach?page=JBossRules%2FSkillsMatter20070711.pdf
* What's new in JBoss Rules 4.0 
http://wiki.jboss.org/wiki/attach?page=JBossRules%2Fwhats_new_in_jbossrules_4.0.pdf


Enjoy :)
The Drools Team
Mark Proctor, Michael Neale, Edson Tirelli, Kris Verlaenen, Fernando Meyer
http://blog.athico.com

Here is a more detailed enhancements list:
Language Expressiveness Enhancements
* New Conditional Elements: from(hibernate ready), collect, accumulate 
and forall
* New Field Constraint operators: not matches, not contains, in, not in, 
memberOf, not memberOf

* New Implicit Self Reference field: this
* Full support to Conditional Elements nesting, for First Order Logic 
completeness.

* Support to multi-restrictions and constraint connectives  and ||
* Parser improvements to remove previous language limitations, like 
character escaping and keyword conflicts

* Support to pluggable dialects and built-in support to Java and MVEL
* Complete rewrite of DSL engine, allowing for full l10n
* Fact attributes auto-vivification for return value restrictions and 
inline-eval constraints
* Support to nested accessors, property navigation and simplified 
collection, arrays and maps syntax

* Improved support to XML rules
* Experimental Clips parser support

Core Engine Enhancements
* Native support to primitive types, avoiding constant autoboxing
* Transparent optional Shadow Facts
* Rete Network performance improvements for complex rules
* Rule-Flow
* Stateful and Stateless working memories (rule engine sessions)
* Support for Asynchronous Working Memory actions
* Rules Engine Agent for hot deployment and BRMS integration
* Pluggeable dialects and and full support to MVEL scripting language
* Dynamic salience for rules conflict resolution
* Parameterized Queries
* halt command
* Sequential execution mode, faster performance and uses less memory
* Pluggable global variable resolver

IDE Enhancements
* Support for rule break-points on debugging
* WYSIWYG support to rule-flows
* New guided editor for rules authoring
* Upgrade to support all new engine features

Business Rules Management System - BRMS
* User friendly web interface with nice WEB 2.0 ajax features (GWT)
* Package configuration
* Rule Authoring easy to edit rules both with guided editor ( drop-down 
menus ) and text editor

* Package compilation and deployment
* Easy deployment with Rule Agent
* Easy to organize with categories and search assets
* Versioning enabled, you can easily replace yours assets with 
previously saved

* JCR compliant rule assets repository

Miscellaneous Enhancements
* Slimmed down dependencies and smaller memory footprint

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




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


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