[jboss-jira] [JBoss JIRA] Commented: (JBRULES-647) RuleModel to populate Descr for rendering to DRL

Michael Neale (JIRA) jira-events at lists.jboss.org
Mon Apr 30 21:01:30 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBRULES-647?page=comments#action_12360963 ] 
            
Michael Neale commented on JBRULES-647:
---------------------------------------

OK, I woke up this morning in a panic (I tend to wake up like that - I hate the clarity and perspective that waking up brings):
What about date literals? 
Dates are also kind of a special case I think. On the LHS in drl dates are pretty easy, we just slap quotes around them and the compiler takes care of it. But on the RHS we need to new java.util.Date() - although MVEL may take care of it.

Some general questions I am not sure about (regarding the RHS):

* Do we allow a field to be set to a bound variable? 
* We can deal with string/number literals, but what about dates? 
* Say we want to set a field to a calculation, for a non String, this should work as it is now right? 
so we have a "value" of "x *3.0 - someVar"
then that will be: boundVariable.setSomeField(x * 3.0 - someVar)
UNLESS it is a string, in which case it will try to wrap quotes around it (which is not really a problem, as you generall don't do calculations with a string).

I guess my original question remains: shoudl we ask the user to classify if they are doing a literal, a formula or choosing from a list of variables? or is that overkill and unhelpful? 

> RuleModel to populate Descr for rendering to DRL
> ------------------------------------------------
>
>                 Key: JBRULES-647
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-647
>             Project: JBoss Rules
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>            Reporter: Michael Neale
>         Assigned To: Edson Tirelli
>


-- 
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

        



More information about the jboss-jira mailing list