[
http://jira.jboss.com/jira/browse/JBRULES-821?page=comments#action_12368043 ]
steve barfield commented on JBRULES-821:
----------------------------------------
This comment follows on from my interpretation of Michael N's original post (25/4)
which as I read it would result in a rule with a single value hard coded in the condition.
Michael A's post, if I understand it correctly, is asking for some of the more
powerful features like 'from' to be added which provide dynamic conditions derived
at time of rule execution.
This idea was prompted by the user requirement for drop down lists within JBRMS which we
are proposing to provide by importing a java bean into the package. This enables a drop
down list as shown in the attached document.
Would it be possible to introduce shared code+descriptor table(s) that could be used both
by JBRMS for the LHS rule conditions and the application that will be asserting objects
for the rules to process. Rather than hard coding conditions in rules :
Person( country=="IRQ" )
This would permit drop down lists using the descriptor
Person( country==IRAQ)
INDIA
POLAND
which when IRAQ was selected would generate the same rule
Person( country=="IRQ" )
This would have 2 advantages :
1) the same code "IRQ" would be used in all rules for Iraq
2) the calling application would use the same table for populating country in the
object to be asserted ie."IRQ" thus ensuring the rule would be fired.
ValueList in rule model
-----------------------
Key: JBRULES-821
URL:
http://jira.jboss.com/jira/browse/JBRULES-821
Project: JBoss Rules
Issue Type: Sub-task
Security Level: Public(Everyone can see)
Reporter: Michael Neale
Assigned To: Michael Neale
Attachments: jbrmsDropDown.doc
--
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