Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Seam and Drools Rule Engine

 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does seam provide supports or modules for configuring drools in enterprise application ?

Any link...

Thanks in Advance
 
Paras Jain
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think Seam provides the ability to configure JBoss rules(previously Drools)

http://docs.jboss.org/seam/1.1GA/reference/en/html/drools.html
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a more updated version of that chapter:

http://docs.jboss.org/seam/latest/reference/en-US/html/drools.html

When posting Seam documentation links, make sure that it is a reference to "latest" rather than a specific version number.
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seam provides a built-in component named rulesAgent that handles loading the rules and which you can use to fire rules and affect values in the working memory. After the rules have fired, you can access the working memory to see what changed.

My feeling is that the best way to get into Drools with Seam is to start with the rule-based authorization. You don't have to fire the rules, since Seam takes care of that for you, so it is a good way to concentrate on the syntax of the rules and the idea behind them. Once you are comfortable writing and using rules, then you can branch off and do your own thing.
 
Kuladip Yadav
Ranch Hand
Posts: 162
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dan Allen and Paras Jain for reply.

I have one more query.

I had used drools rule engine 2.5 based on spring frame work
that provide way to write rule in annotation based java class instead of drl file.
Does seam provide such facility to write business rules in java annotated class ?

Thanks
 
Dan Allen
Author
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does seam provide such facility to write business rules in java annotated class?


Not to my knowledge. I would either post on seamframework.org or create a JIRA issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic