[
http://jira.jboss.com/jira/browse/JBRULES-446?page=all ]
Juergen none updated JBRULES-446:
---------------------------------
Description:
Is it possible to support rulebase configuration via jsr94 registerRuleExecutionSet
properties?
Suggestion:
- new property in
org.drools.jsr94.rules.Constants.java:41:
//jh: added to support handing a rulebase config via jsr94
/** <code>RuleExecutionSet</code> rulebase config constant. */
public static final String RES_CONFIG =
"javax.rules.admin.RuleExecutionSet.config";
- modification of method (probably catch ClassCastException too, throw some jsr94 config
exception)
org.drools.jsr94.rules.admin.RuleExecutionSetImpl.java:118:RuleExecutionSetImpl(...):
//jh: support rulebase configuration via jsr94
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase((org.drools.RuleBaseConfiguration)properties.get(org.drools.jsr94.rules.Constants.RES_CONFIG),
new Jsr94FactHandleFactory() );
/*
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase( new Jsr94FactHandleFactory() );
*/
was:
Is it possible to support rulebase configuration via jsr94 registerRuleExecutionSet
properties?
Suggestion:
- new property in
org.drools.jsr94.rules.Constants.java:41:
//jh: added to support handing a rulebase config via jsr94
/** <code>RuleExecutionSet</code> rulebase config constant. */
public static final String RES_CONFIG =
"javax.rules.admin.RuleExecutionSet.config";
- modification of method (probably secure against ClassCastException)
org.drools.jsr94.rules.admin.RuleExecutionSetImpl.java:118:RuleExecutionSetImpl(...):
//jh: support rulebase configuration via jsr94
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase((org.drools.RuleBaseConfiguration)properties.get(org.drools.jsr94.rules.Constants.RES_CONFIG),
new Jsr94FactHandleFactory() );
/*
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase( new Jsr94FactHandleFactory() );
*/
Support rulebase configuration via jsr94 registerRuleExecutionSet
properties
----------------------------------------------------------------------------
Key: JBRULES-446
URL:
http://jira.jboss.com/jira/browse/JBRULES-446
Project: JBoss Rules
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: JSR94
Affects Versions: 3.0.4
Reporter: Juergen none
Assigned To: Mark Proctor
Priority: Minor
Is it possible to support rulebase configuration via jsr94 registerRuleExecutionSet
properties?
Suggestion:
- new property in
org.drools.jsr94.rules.Constants.java:41:
//jh: added to support handing a rulebase config via jsr94
/** <code>RuleExecutionSet</code> rulebase config constant. */
public static final String RES_CONFIG =
"javax.rules.admin.RuleExecutionSet.config";
- modification of method (probably catch ClassCastException too, throw some jsr94 config
exception)
org.drools.jsr94.rules.admin.RuleExecutionSetImpl.java:118:RuleExecutionSetImpl(...):
//jh: support rulebase configuration via jsr94
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase((org.drools.RuleBaseConfiguration)properties.get(org.drools.jsr94.rules.Constants.RES_CONFIG),
new Jsr94FactHandleFactory() );
/*
final org.drools.reteoo.ReteooRuleBase ruleBase = new
org.drools.reteoo.ReteooRuleBase( new Jsr94FactHandleFactory() );
*/
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira