[jboss-jira] [JBoss JIRA] (JBRULES-3329) Add API to allow globals to be specified for the working memory
David Glassborow (JIRA)
jira-events at lists.jboss.org
Sat Jan 21 07:07:18 EST 2012
[ https://issues.jboss.org/browse/JBRULES-3329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660958#comment-12660958 ]
David Glassborow commented on JBRULES-3329:
-------------------------------------------
So an example is constraint costs. I'm looking at this for scheduling field workers, both what work, and what order, over a large amount of work and workers.
For some sorts of work, being late is very expensive (for example where they are meeting a member of the public, and by law they have to be on time or there are financial penalties), where as for others the primary factor is travel time (when there are number of small pieces of work to do and travel costs dominate).
These scaling factors between the different constraints need to be adjustable between runs, because they need to be adjustable per business area.
As we discussed on IRC, these could be done by inserting facts, but that is going to slow and verbose for constantly looking them up as part of the rules.
Make sense ?
> Add API to allow globals to be specified for the working memory
> ---------------------------------------------------------------
>
> Key: JBRULES-3329
> URL: https://issues.jboss.org/browse/JBRULES-3329
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-planner
> Affects Versions: FUTURE
> Reporter: David Glassborow
> Assignee: Geoffrey De Smet
>
> Provide an API to allow globals to be specified to be inserted into the working memory.
> This would allow customisation of things like constraint costs. Although this could be done by non-global facts being inserted, performance would be better using a global rather than requiring an instance fact to be matched.
> Discussions with Ge0ffrey on IRC revealed that more than 1 working memory exists, and in fact in future versions supporting multithreading or GAs, they may well be many more than one WM, so we need an API that will inject the global into all instances of the WM, just like the global cost constraint global is.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list