Drools Grid & GridNode
by Charles Moulliard
Hi,
The drools project contains Grid, GridNode interfaces + implementation into
2 different maven modules
- drools-grid-impl &
- drools-spring
but interface definitions are different
Questions:
1) Is it planned to remove interfaces from drools-spring maven module ?
2) Do we need same interfaces into 2 different maven modules (risk of
clash) ?
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
13 years
Dispose Session in Finally Block
by Julian Klein
I was looking at the code for StatelessKnowledgeSessionImpl and
both execute methods dispose of the wrapped StatefulKnowledgeSession. The
calls to dispose however are not in finally blocks. Should they be? If
so, I have a local update for which I can issue a pull request.
Thanks,
Julian
13 years
Adding a priority based on enum
by André Fróes
Inside my planning a priority would be considered a soft constraing right?
I created a Enum class with 6 priority going from P1 to P6. How can I add
it to my SimpleScoreCalculator? (the lower the number is, the higher is
the priority)
For example, i have 7 workorders, each one have a requiredWorktime of 8
hours, 3 a P1, 2 P3 and the other 2 P6, and I have 4 available engineers
with 8 hours worktime each one.
At the end, this should be sorted by worktime, skill and priority.
Engineer 1 Skill ABC1, ABC2, ABC3, ABC4
Engineer 2 Skill ABC4, ABC3
Engineer 3 Skill ABC2, ABC3
Engineer 4 Skill ABC1, ABC4
Workorder 1 skill ABC1, ABC2, ABC4, P1
Workorder 2 skill ABC3, ABC4, P1
Workorder 3 skill ABC1, ABC4, P1
Workorder 4 skill ABC4, P3
Workorder 5 skill ABC3, P3
Workorder 6 skill ABC1, ABC2, ABC3, ABC4, P6
Workorder 7 skill ABC1, ABC2, ABC4, P6
at the end, the result should be
Engineer 1 - WorkOrder 1
Engineer 2 - WorkOrder 2
Engineer 4 - WorkOrder 3
Engineer 3 - WorkOrder 4
and the rest of it shouldn't be planned.
How can I manage this? Will I have to do something like that move or treat
it as a hard constraing to?
13 years
RemoveIdentities with KnowledgeAgent
by rjr201
Hi,
I'm using a KnowledgeAgent to create a KnowledgeBase. However, I need to
turn off Identities. In previous projects (not using knowledgeAgent) I've
done:
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setRemoveIdentities( true );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(conf);
I'm sure there is a very similar approach with the KAgent, but I can't seem
work out what it is. I thought maybe something like this:
KnowledgeAgentConfiguration conf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
conf.setProperty("drools.removeIdentities", "true");
kagent = KnowledgeAgentFactory.newKnowledgeAgent("MyAgent", conf);
But that doesn't seem to work. Any help with this would be greatly
appreciated.
Regards,
Rich.
--
View this message in context: http://drools.46999.n3.nabble.com/RemoveIdentities-with-KnowledgeAgent-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
Testing the count of a pattern binding variable
by David R Robison
I am developing rules using DSL so, from what I understand, I cannot use
collect and accumulate in some of my DSL definitions (especially when
using clauses that begin with a hyphen). So what I want to do is to test
the count of a pattern binding variable, such as
when
$sensors : Sensor()
accumulate($sensor; $count : count(1); $count > 3)
then
...
Is something like this possible? I cannot seem to make it work.
David
--
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drrobison(a)openroadsconsulting.com
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book: http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
This email communication (including any attachments) may contain confidential and/or privileged material intended solely for the individual or entity to which it is addressed.
If you are not the intended recipient, please delete this email immediately.
13 years