I think this is what you're looking for:
http://stackoverflow.com/questions/22181625/use-drools-6-0-new-phreak-algorithm-by-using-the-5-5-legacy-api/22190799#22190799
-W
On 10/03/2014, GrantWang wrote:
> Thanks, Mark.
>
> Would you please help with my 2nd question, i.e. the best way to monitor
Hi
Is it a good approach to apply rules on large data-sets ranging 100,000 to
50 million records Of course it depends upon the logic written in the rule
conditions and consequences.
--
Raja Sekhar Amirapu
--
"If any anyone can do it, i can do it
Thanks, Mark.
Would you please help with my 2nd question, i.e. the best way to monitor
several directories and load DRL files on the fly in Drools 6.0 release?
Best regards.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-pipeline-API-tp4028616p4028625.html
Sent from
pipeline was deprecated years ago.
Use camel.
Mark
On 10 Mar 2014, at 16:25, GrantWang wrote:
> Hi, I am new to Drools and have couple of questions:
>
> 1. I found the following in document:
>
> "The Drools pipeline API has several adapters and helpers to do that as well
> as examples on how
You should realize that the LHS ("when") and RHS ("then") are different
and use different syntaxes.
The RHS is essentially java... you can't use ":" and "from".
Also.. "Event(..) from .." is a pattern - a filter that tries to match
existing objects asserted in the WM.
What you need there is to cre
Will you please, please, PLEASE have a short look at the Drools
documentation, available just for the effort of reading it? This will
tell you that "accumulate" and "from" are constructs to be used on the
left hand side of a rule and NOT on the right hand side, where (with
the exception of a few ad
i tried this :
rule "new file"
when
FileData($old : fileOld, $new : fileNew, fileOld != fileNew)
$newFile : String( this not memberOf $old ) from $new
then
event : Event("file added", filename, new Date()) from $plus
Event.listOfEvents.add(event);
event.display();
end
this gi
"from" will iterate for you, exactly like "accumulate" counted the events.
If you need more details, please consult the documentation
On 03/10/2014 07:29 PM, Sandhya Sree wrote:
> The problem here is even if multiple files are added, there is only
> one event object created. i want to have like s
The problem here is even if multiple files are added, there is only one
event object created. i want to have like say if 3 new files are added, 3
event objects must be created, and all three event objects must be added to
List listOfEvents.
Thanks.
On Mon, Mar 10, 2014 at 11:48 PM, Davide Sotta
The "accumulates" should not be in the "then" part of a rule (see my
previous email).
That rule gave you two lists, in the variables $plus and $mins, that you
can use in the consequence.
If you need to process each file separately, you may want to do
something like this:
rule "new file"
when
hi,
im new to drools..im trying to create a project as follows. i have a class
called Monitor which monitors a folder and creates two lists called
fileOld( which is the list of filenames in that folder at time t1) and
fileNew(which is the list of filenames in that folder at time t2). i have
anoth
Hi, I am new to Drools and have couple of questions:
1. I found the following in document:
"The Drools pipeline API has several adapters and helpers to do that as well
as examples on how to do it."
Could someone please send me a link to this Drools pipeline API. I did a
search but couldn't find
Hi,
This issue has been fixed in version: 6.1.0.Beta1
Nicolas-Xavier
Le 10/03/2014 16:34, iqextremer [via Drools] a écrit :
> I am also suffering the same issue, wonder if there is any resolution
> on this yet?
>
>
> If yo
Ok, this should make it happen
1) Add new Guided Rule
2) Tick "Use DSL"
3) Click OK
4) Add a DSL sentence
5) Validated rule - OK
6) Viewed Source - OK
7) Saved - OK
8) Re-opened - OK
*9) Add a "raw DRL" to the "then" clause
10) Save and publish. You should see error in server.log*
restarting jbo
In KModuleBeanFactoryPostProcessor there are statements like
this: configFilePath = getClass().getResource("/").getPath();
which do not necessarily resolve to the path where the rule resources are.
Replacing this code with one that looks for the rule packages location
worked for me.
--
View t
Initializing references to objects is always a good idea to avoid NPE.
-W
On 10/03/2014, Sandhya Sree wrote:
> im getting the following error on doing that
>
> Exception in thread "pool-2-thread-1" Exception executing consequence for
> rule "size" in com.net: java.lang.NullPointerException
>
> wh
Thanks :)
i got it :-)
On Mon, Mar 10, 2014 at 7:18 PM, Mauricio Salatino wrote:
> If the list inside Event has never being initialised it will throw a
> null point exception.. so you need to make sure that the list
> is initialised properly.
>
> Regards
>
>
> On Mon, Mar 10, 2014 at 1:43 PM, S
If the list inside Event has never being initialised it will throw a null
point exception.. so you need to make sure that the list
is initialised properly.
Regards
On Mon, Mar 10, 2014 at 1:43 PM, Sandhya Sree wrote:
> Exception in thread "pool-2-thread-1" Exception executing consequence for
>
Exception in thread "pool-2-thread-1" Exception executing consequence for
rule "size" in com.net: java.lang.NullPointerException
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at org.drools.common.DefaultAgenda.fireActi
Please copy the entire stack trace.. what you have copied doesn't mean
anything besides that there is something wrong.
On Mon, Mar 10, 2014 at 1:29 PM, Sandhya Sree wrote:
> im getting the following error on doing that
>
> Exception in thread "pool-2-thread-1" Exception executing consequence for
im getting the following error on doing that
Exception in thread "pool-2-thread-1" Exception executing consequence for
rule "size" in com.net: java.lang.NullPointerException
what might be the problem?
On Mon, Mar 10, 2014 at 4:16 PM, Wolfgang Laun wrote:
> Seeing that the list is static you c
Seeing that the list is static you can use the usual way for accessing
a static class member:
Event.listOfEvent.add( ... );
@Mauricio: It's not unusual to maintain a static collection (even
though there may be better ways, esp. with Drools).
On 10/03/2014, Mauricio Salatino wrote:
> Can y
Actually, il have to use this List in another class and then print
list after every rule execution cycle.
On Mon, Mar 10, 2014 at 4:05 PM, Mauricio Salatino wrote:
> Can you please elaborate about why do you want to do that? what's the
> point of having a list inside of the Event class that will
Can you please elaborate about why do you want to do that? what's the point
of having a list inside of the Event class that will contain the same event?
The "Then" side of the rule is pure java.. so you just do
event.getEvents().add(event);
but I don't see the point of doing that.
Regards
On M
hi ,
i have a class called Event which is as follows:
public class Event {
private String name;
private File source;
private Date timeStamp;
public static List listOfEvents;
public Event(String name, File source, Date timeStamp) {
this.name = name;
this.source = source;
this.timeStamp = ti
25 matches
Mail list logo