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

Michael Neale (JIRA) jira-events at lists.jboss.org
Sun Mar 4 18:58:10 EST 2007


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

The RuleModel class, in jbrms: org.drools.brms.client.modeldriven.brxml.RuleModel

Needs to either:

a) Render to DRL
or
b) Map to Descrs (bypassing DRL)

There are advantages to either approach. Round tripping is not required at this stage. 
Approach a) This involves iterating through the Patterns and Actions, and adding to a DRL string, which will then be fed to the normal parser (but just for a single rule).

Approach b) Similar to above, but creating instances of Descr objects. the complication with this approach (which I am not sure how to solve) is if there is a DSL sentence involved - this HAS to be expanded, and then put through the parser - that may make it difficult or impossible.
Unlike the Descrs, the RuleModel has classes for specific actions.

There will need to be some intelligence for when user entered values are to be treated as strings: If the field on a fact is a string, then obviously we are dealing with a string UNLESS: 1) The user has placed a "=" at the start - to indicate its a "formula" or b) the value is the same name as a bound variable. 




> 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: Michael Neale
>


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