[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-4326) Allow to specify a directory with rule resources to Seam RuleBase
Tihomir Surdilovic (JIRA)
jira-events at lists.jboss.org
Mon Aug 3 10:03:29 EDT 2009
[ https://jira.jboss.org/jira/browse/JBSEAM-4326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12478605#action_12478605 ]
Tihomir Surdilovic commented on JBSEAM-4326:
--------------------------------------------
Correct. The difference is that Seam RuleAgent delegates to org.drools.agent.RuleAgent (and finally org.drools.agent.FileScanner) to load all rule resources from a directory for example. The addition to Seam RuleBase is a little enhancement but it would use the Seam ResourceLoader instead. If you have a large number of static rule resources, having to use RuleAgent and setting poll to zero for example is not most intuitive.
> Allow to specify a directory with rule resources to Seam RuleBase
> -----------------------------------------------------------------
>
> Key: JBSEAM-4326
> URL: https://jira.jboss.org/jira/browse/JBSEAM-4326
> Project: Seam
> Issue Type: Feature Request
> Affects Versions: 2.2.0.CR1
> Reporter: Tihomir Surdilovic
> Assignee: Tihomir Surdilovic
> Fix For: 2.2.1.CR1
>
>
> Currently org.jboss.seam.drools.RuleBase allows to add a list of rule resources individually, for example:
> <drools:rule-base name="policyPricingRules" dsl-file="policyPricing.dsl">
> <drools:rule-files>
> <value>/my/rules/dir/policyPricingRules.drl</value>
> <value>/my/rules/dir/policyPricingRules2.drl</value>
> </drools:rule-files>
> </drools:rule-base>
> However when you have a large number of rules it would be easier if we could specify the directory where RuleBase can find rule resources and register them, for example:
> <drools:rule-base name="policyPricingRules" dsl-file="policyPricing.dsl">
> <drools:rule-files-dir>
> <value>/my/rules/dir<value>
> </drools:rule-files>
> </drools:rule-base>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list