[jboss-jira] [JBoss JIRA] Commented: (JBRULES-629) SuggestionCompletionEngine to be populated from rule object model classes

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


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

Some answers:

* The package has a "header" attribute - which just will contain whatever goes at the top of a package - imports and globals.
So perhaps the current parser can be used for this? 

* As for the "heavyness" - it is needed - at least at the package level - as if you are starting a rule from scratch, you need to have that info available on hand.
Some possibly ways of improving it:
1) "cache" a streamed out version of this (using xpath) into the package node - when the package is changed, this gets updated, then it can be just read out and supplied.
Also, the "front end" can (if needed) load and cache this for a whole package at a time. 

2) Break it down - so there simpler objects, FactDefinitions, and you load each fact definiton on demand.

I am favouring 1 - as its simpler, but am prepared to discuss other options.


> SuggestionCompletionEngine to be populated from rule object model classes 
> --------------------------------------------------------------------------
>
>                 Key: JBRULES-629
>                 URL: http://jira.jboss.com/jira/browse/JBRULES-629
>             Project: JBoss Rules
>          Issue Type: Sub-task
>      Security Level: Public(Everyone can see) 
>          Components: drools-brms
>            Reporter: Michael Neale
>         Assigned To: Edson Tirelli
>             Fix For: 3.1-m2
>
>
> In drools-jbrms there is a call SuggestionCompletionEngine.
> this class needs to be populated from a model. This model will come from the import statements in a rule package, and also include deftemplates (if possible).
> Basiaclly the model classes will need to be interrogated to work out fields, and similar with templates, and a populated SuggestionCompletionEngine is the output (it will then have any globals added to it).

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