[jboss-jira] [JBoss JIRA] Assigned: (JBRULES-2700) Allow setting globals for access by the scoring rules

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Fri Sep 17 13:59:28 EDT 2010


     [ https://jira.jboss.org/browse/JBRULES-2700?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Geoffrey De Smet reassigned JBRULES-2700:
-----------------------------------------

    Assignee: Geoffrey De Smet  (was: Mark Proctor)


> Allow setting globals for access by the scoring rules
> -----------------------------------------------------
>
>                 Key: JBRULES-2700
>                 URL: https://jira.jboss.org/browse/JBRULES-2700
>             Project: Drools
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: drools-planner
>            Reporter: Wouter Horré
>            Assignee: Geoffrey De Smet
>
> Currently, it is not possible to set a global variable in the working memory used by the solver. If a scoring rule needs an external helper for calculating scores (e.g. a dependency injected with OSGi DS), a workaround using a static variable in some class accessible by the scoring rules is needed.
> The easiest implementation is probably a new method in the Solver interface:
> public WorkingMemory getWorkingMemory();
> which provides access to the working memory used by the solver.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list