Delay between rule firing using Drools 5.6
by Arul Prashanth
We have a series of decision tables and for a particular set of decision
table we see that for the first time when the rule is fired, there is a
delay between the After Activation of Rule 1 and Before Activation of Rule
2. This happens only when the Rules are fired for the first time. Since
there are 200 decision table rows each execution seems to take longer.
The condition for the rules to fire is
$if : facts()
$fact : Fact(factType == "XYZ") from $if.Fact
$if.Fact is an array list which has 200 Fact objects. Does this iteration
takes time?
We use Drools 5.6
Any help would be great.
-----
- Prashanth
--
View this message in context: http://drools.46999.n3.nabble.com/Delay-between-rule-firing-using-Drools-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
BRMS Build & Deploy
by Shrinath Managuli
Hi Drools,
Is it possible to automate the Build & Deploy processes in BRMS?
[cid:image001.png@01CF90A3.E6E26760]
Thanks,
Shrinath
[Aspire Systems]
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
[Aspire Systems]
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
11 years, 6 months
Drools calculation of a date function
by Ravi
Hi,
>
> I am new to drools. I want to write a function that accepts two strings and returns a date. The two strings are one for the payment frequency and the other for the payment day. Following are my requirements:
>
> 1.If the payment frequency is daily, return current date
> 2.If the payment frequency is weekly and the payment day is let's say Monday, and the current day is Monday, then return current date. If the current day is Monday and the payment day is Tuesday, return current date + 1. Likewise, if the payment day is Wednesday, return current date + 2.
> 3.If the payment frequency is monthly and payment day is 15, retrieve the current month and current year and return MM-15-YYYY.
> Please help me write a function for this. Thank you so much in advance.
>
11 years, 6 months
Coarse Grained Moves
by DwProd .
Hello there,
I'm pretty new to OptaPlanner, and I must say I'm really impressed with the
maturity of it all. Great software with a great documentation !
I've been working on a variation of the Cloud Balancing example, with a few
differences, which make it look like the Machine Reassignment problem as
well :
- Some processes are already placed and are immovable (using a Selection
Filter checking a boolean property of the planning entity)
- The Computer (the planning variable) is nullable (basically this is
Multiple Muti-Dimensional Knapsack problem) which means I added a soft
constraint penalty for processes with a null host.
- Processes can only be of a few classes (which I called services, a
Problem Fact). Processes of a given service type have a certain amount of
required cpu and ram.
Taking these elements into account, I do get very good results with
OptaPlanner. However, the following constraints always put me into a score
trap :
- For some services, processes work in groups. For instance, if groups are
of size 3, having 7 processes is not any better than having 6 processes. If
there were already 2 processes (immovable and placed), I should only add 4
processes and not 5, even if there are enough resources. For this
constraint, I have tried using a rule (medium constraint) accumulating
processes of that service and using the modulo operator with the group size.
- Some services are dependant on one another. For instance, I know that if
I have n1 groups of processes of the service 1, I require Math.ceil(2.5*n1)
groups of processes of the service 2. I have implemented this similarly
with a medium constraint...
With any (or both) of these constraints, little to no processes of the
concerned services are added and I fail to reach a good solution. I have
tried benchmarking with several local search methods and various
parameters, but all give the same results...
I feel like the next logical step would be to used the often mentioned in
the documentation "Coarse Grained Moves" but I fail to locate any simple
example. The Nurse Rostering example seems to use that technique to some
extent but it seems like an overly complicated example, is it not.
Thank you very much for reading this far, if you have any question,
guideline, or just a trick, I'd be absolutely delighted to hear from you !
Cheers,
Woody
11 years, 6 months
Can we user RDBMS in BRMS 6.0.1 version?
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I am using kie-drools-wb-distribution-6.0.1.Final.
I see that,In this version of BRMS,it stores all the
rule/packages/assets/DRL's in Git repository not in RDBMS, Please confirm
on this?
In case if we can use RDBMS like Guvnor 5.1.1/5.3.3.Final in 6.0.1.Final
version, please let me know how to setup to RDBMS in BRMS 6.0.1 version?
Regards,
lakhi
11 years, 6 months
Drools Fusion - Intersection Of Events
by code4dc
Hey guys,
I am using the Drools Fusion temporal parameters to try to detect if two
events have *any* overlap between the two of them. Can anyone suggest the
cleanest way to do this using the temporal parameters? Currently I am
comparing the two events using 'overlaps', 'overlappedby', 'includes' and I
feel like I am still missing a few cases.
Can anyone suggest how to perform this check in the cleanest way possible?
Thanks
Eugene
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Fusion-Intersection-Of-Events-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
Fwd: Regarding drools 6 workbench
by Michael Anstis
---------- Forwarded message ----------
From: Ganesh Neelekani <ganeshneelekani(a)gmail.com>
Date: 26 June 2014 06:35
Subject: Re: Regarding drools 6 workbench
I am facing some strange issue if you use webservice "Unknown kieSession
name:ksession-rules if use @webservice", Do I need to change code if you I
use webservice
Please follow up in below link
http://drools.46999.n3.nabble.com/quot-Unknown-KieSession-name-ksession-r...
Thanking you.
----------------------------------------------------------------------
With regards.
Ganesh N Neelekani
11 years, 6 months