Hi,
I have a hashmap inserted as global variable and some objects as facts.
In drools i try to locate object from hashmap using facts. It behaves
differently and i dont know why. I will post my code and then try to
describe the behaviour
global java.util.Map encapsulationMap;
rule test rule
On 12-02-14 20:55, Karri Niemelä wrote:
1) So for example when using toy1.xml there is 140 shifts/assigments.
This means each nurse(11 of them) will get about 10-15 assignments.
(= DayOfWeekCover/cover/shift/preferred is 2)
But what if I want to make sure in contract MinNumAssignments = 20
Hi Davide. I'll try to explain.
We inserting a lot of events per second into StatefulKnowledgeSession, this
process performs in single thread. There is possible situation when our
event processor engine (CEP) can crash under high load, so we trying to save
actual last state of knowledge session as
Not sure what you're asking.
It already has a rule minimumTotalAssignments and a rule
maximumTotalAssignments:
https://github.com/droolsjbpm/optaplanner/blob/master/optaplanner-examples/src/main/resources/org/optaplanner/examples/nurserostering/solver/nurseRosteringScoreRules.drl#L92
So
With this marshalling in the listener, I'd never insert from more than
one thread.
If multiple threads procure the events, queue them to a single thread
that does the actual insertion.
(Note that this is just my gut feeling, not based on experience in
this particular case.)
-W
On 13/02/2014,
Hello,
I am having a hard time with a custom operator. It works great in 5.2 but
not in 5.6. Do you mind sharing your email ample for 5.6 please? I spent
the whole day today on this issue.
There are Any differences between a 5.2 5.6 and 6.0.x.
Your example works great for 6.0.x btw.
Sorry, just double check to see if you miss typed --
Do you mean eval() is the slowest and has the most overhead?
Your reply seems to say opposite and said that eval() is the faster and have
the least overhead.
You really meant eval() is the slowest and has the most overhead right?
thx!