[rules-users] 7x slower .DRL compilation after switching 5.1.1 to 5.2.0

2011-10-13 Thread Victor Cv
Hi,

while we used on Drools 5.1.1 our rules compiled in approx 1 min, after
switching to 5.2.0 the compilation time increased to approx 7 mins. 
Our compilation is performed programmatically via KnowledgeBuilder by the
user application itself.
What we are possibly doing wrong?

Just to mention that after the switch our .DRL code that compiled
successfully under 5.1.1 needed much fixing, because it completely broke
under the 5.2.0 (more strict type casting, || became or, access to
static Java methods and fields requires now explicit class imports instead
of the package imports as before, etc.).
I searched but didn't find any migration guide. Is something like that
available?

Regards,

Victor

--
View this message in context: 
http://drools.46999.n3.nabble.com/7x-slower-DRL-compilation-after-switching-5-1-1-to-5-2-0-tp3417952p3417952.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Need comprehensible drools examples

2011-10-13 Thread Geoffrey De Smet

Hi Martin,

Thanks for the info, I 'll take a look at it.
Which IDE did you use? to import the existing maven project?

Op 12-10-11 16:22, Martin A schreef:
What I did was to extract the folder examples/sources and import it as 
an existing maven project. When I did, the rules were full of 
messages, such as : cannot resolve type, mismatched token, etc. 
Besides of that, when tried to run any of the samples by running 
runExamples.bat and clicking on an example listitem I was getting this 
message:


Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError: 
org/drool

s/builder/ResourceConfiguration
at 
org.drools.examples.DroolsExamplesApp$12.actionPerformed(DroolsExampl

esApp.java:126)

Thank you,
Martin

2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com 
mailto:ge0ffrey.s...@gmail.com


Hi Martin,


full of improper project configuration

Could you explain what you mean by this?
What did you try and didn't work?

We 'd like to improve it for the next release.

Op 12-10-11 16:06, Martin A schreef:

Hi Geoffrey,
Yes, I think I experienced problems with these ones...

@Mauricio: Thanks for the other link!

Regards,
Martin

2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com
mailto:ge0ffrey.s...@gmail.com

Martin,



The several examples projects I found are full of improper
project configuration.

Which examples are you referring to in this statement?
Are you referring to the examples directory found in the
download zip?

http://download.jboss.org/drools/release/5.3.0.CR1/drools-distribution-5.3.0.CR1.zip

Op 12-10-11 15:07, Mauricio Salatino schreef:

The examples that I've provided are very basic.. if you want
to see more advanced stuff you can go to github and get the
official set of examples from there:
https://github.com/droolsjbpm/drools/tree/master/drools-examples

2011/10/12 Martin A wml...@gmail.com mailto:wml...@gmail.com

Hi Mauricio,

These examples look good enough for this kind of
framework introduction I need! Thanks for the prompt
response and for the good reference!
However, if you know other examples that may help me get
into Drools quicker, I'd be glad if you give me some
links :)

Best regards,
Martin


2011/10/12 Mauricio Salatino sala...@gmail.com
mailto:sala...@gmail.com

Hi Martin, what kind of examples are you looking for?
Here I'm writing with a couple of friends a set of
examples that will be improved over the time. All
the examples are using maven, that really helps in
the configuration side and most of them are very
introductory, but as I mention we are hoping to get
feedback so we can improve them.

https://github.com/Salaboy/Drools_jBPM5-Training-Examples

Cheers

2011/10/12 Martin A wml...@gmail.com
mailto:wml...@gmail.com

Hello, guys,

I've been looking for nice and clear drools
examples for the whole day so far, but can't
find any. The several examples projects I found
are full of improper project configuration.
Would you please refer me to a reliable drools
examples source projects?

Thanks in advance!

___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com

 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -


___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com

 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -



Re: [rules-users] Need comprehensible drools examples

2011-10-13 Thread Geoffrey De Smet

Martin,

Another big question: Did you try 5.2.0.Final (the first download on the 
page) or 5.3.0.CR1?

I did several fixes for the runExamples.bat script for 5.3.0.CR1.

Op 13-10-11 09:46, Geoffrey De Smet schreef:

Hi Martin,

Thanks for the info, I 'll take a look at it.
Which IDE did you use? to import the existing maven project?

Op 12-10-11 16:22, Martin A schreef:
What I did was to extract the folder examples/sources and import it 
as an existing maven project. When I did, the rules were full of 
messages, such as : cannot resolve type, mismatched token, etc. 
Besides of that, when tried to run any of the samples by running 
runExamples.bat and clicking on an example listitem I was getting 
this message:


Exception in thread AWT-EventQueue-0 
java.lang.NoClassDefFoundError: org/drool

s/builder/ResourceConfiguration
at 
org.drools.examples.DroolsExamplesApp$12.actionPerformed(DroolsExampl

esApp.java:126)

Thank you,
Martin

2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com 
mailto:ge0ffrey.s...@gmail.com


Hi Martin,


full of improper project configuration

Could you explain what you mean by this?
What did you try and didn't work?

We 'd like to improve it for the next release.

Op 12-10-11 16:06, Martin A schreef:

Hi Geoffrey,
Yes, I think I experienced problems with these ones...

@Mauricio: Thanks for the other link!

Regards,
Martin

2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com
mailto:ge0ffrey.s...@gmail.com

Martin,



The several examples projects I found are full of improper
project configuration.

Which examples are you referring to in this statement?
Are you referring to the examples directory found in the
download zip?

http://download.jboss.org/drools/release/5.3.0.CR1/drools-distribution-5.3.0.CR1.zip

Op 12-10-11 15:07, Mauricio Salatino schreef:

The examples that I've provided are very basic.. if you
want to see more advanced stuff you can go to github and
get the official set of examples from there:
https://github.com/droolsjbpm/drools/tree/master/drools-examples

2011/10/12 Martin A wml...@gmail.com
mailto:wml...@gmail.com

Hi Mauricio,

These examples look good enough for this kind of
framework introduction I need! Thanks for the prompt
response and for the good reference!
However, if you know other examples that may help me
get into Drools quicker, I'd be glad if you give me
some links :)

Best regards,
Martin


2011/10/12 Mauricio Salatino sala...@gmail.com
mailto:sala...@gmail.com

Hi Martin, what kind of examples are you looking for?
Here I'm writing with a couple of friends a set of
examples that will be improved over the time. All
the examples are using maven, that really helps in
the configuration side and most of them are very
introductory, but as I mention we are hoping to get
feedback so we can improve them.

https://github.com/Salaboy/Drools_jBPM5-Training-Examples

Cheers

2011/10/12 Martin A wml...@gmail.com
mailto:wml...@gmail.com

Hello, guys,

I've been looking for nice and clear drools
examples for the whole day so far, but can't
find any. The several examples projects I found
are full of improper project configuration.
Would you please refer me to a reliable drools
examples source projects?

Thanks in advance!

___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com

 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -


___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



___
rules-users mailing list
rules-users@lists.jboss.org
mailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 

Re: [rules-users] Need comprehensible drools examples

2011-10-13 Thread Martin A
Hi,

I used Eclipse Indigo and m2eclipse to import.
The package I used was 5.3.0.CR1

Best regards,
Martin

2011/10/13 Geoffrey De Smet ge0ffrey.s...@gmail.com

 **
 Martin,

 Another big question: Did you try 5.2.0.Final (the first download on the
 page) or 5.3.0.CR1?
 I did several fixes for the runExamples.bat script for 5.3.0.CR1.

 Op 13-10-11 09:46, Geoffrey De Smet schreef:

 Hi Martin,

 Thanks for the info, I 'll take a look at it.
 Which IDE did you use? to import the existing maven project?

 Op 12-10-11 16:22, Martin A schreef:

 What I did was to extract the folder examples/sources and import it as an
 existing maven project. When I did, the rules were full of messages, such as
 : cannot resolve type, mismatched token, etc. Besides of that, when tried to
 run any of the samples by running runExamples.bat and clicking on an example
 listitem I was getting this message:

  Exception in thread AWT-EventQueue-0 java.lang.NoClassDefFoundError:
 org/drool
 s/builder/ResourceConfiguration
 at
 org.drools.examples.DroolsExamplesApp$12.actionPerformed(DroolsExampl
 esApp.java:126)

  Thank you,
 Martin

 2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com

  Hi Martin,

  full of improper project configuration

 Could you explain what you mean by this?
 What did you try and didn't work?

 We 'd like to improve it for the next release.

 Op 12-10-11 16:06, Martin A schreef:

 Hi Geoffrey,
 Yes, I think I experienced problems with these ones...

  @Mauricio: Thanks for the other link!

  Regards,
 Martin

  2011/10/12 Geoffrey De Smet ge0ffrey.s...@gmail.com

  Martin,


 The several examples projects I found are full of improper project
 configuration.

  Which examples are you referring to in this statement?
 Are you referring to the examples directory found in the download zip?

 http://download.jboss.org/drools/release/5.3.0.CR1/drools-distribution-5.3.0.CR1.zip

 Op 12-10-11 15:07, Mauricio Salatino schreef:

 The examples that I've provided are very basic.. if you want to see more
 advanced stuff you can go to github and get the official set of examples
 from there:
 https://github.com/droolsjbpm/drools/tree/master/drools-examples

 2011/10/12 Martin A wml...@gmail.com

 Hi Mauricio,

  These examples look good enough for this kind of framework
 introduction I need! Thanks for the prompt response and for the good
 reference!
 However, if you know other examples that may help me get into Drools
 quicker, I'd be glad if you give me some links :)

  Best regards,
 Martin


 2011/10/12 Mauricio Salatino sala...@gmail.com

 Hi Martin, what kind of examples are you looking for?
 Here I'm writing with a couple of friends a set of examples that will
 be improved over the time. All the examples are using maven, that really
 helps in the configuration side and most of them are very introductory, 
 but
 as I mention we are hoping to get feedback so we can improve them.

  https://github.com/Salaboy/Drools_jBPM5-Training-Examples

  Cheers

  2011/10/12 Martin A wml...@gmail.com

  Hello, guys,

  I've been looking for nice and clear drools examples for the whole
 day so far, but can't find any. The several examples projects I found are
 full of improper project configuration.
 Would you please refer me to a reliable drools examples source
 projects?

  Thanks in advance!

  ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




  --
  - CTO @ http://www.plugtree.com
  - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
  - Co-Founder @ http://www.jbug.com.ar

  - Salatino Salaboy Mauricio -


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




  --
  - CTO @ http://www.plugtree.com
  - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
  - Co-Founder @ http://www.jbug.com.ar

  - Salatino Salaboy Mauricio -


 ___
 rules-users mailing 
 listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users


   --
 With kind regards,
 Geoffrey De Smet


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing 
 listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users


 --
 With kind regards,
 Geoffrey De Smet


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 

Re: [rules-users] 7x slower .DRL compilation after switching 5.1.1 to 5.2.0

2011-10-13 Thread Mark Proctor
This thread has been covered in previous user mailing list postings. The 
issue is fixed in 5.3.CR1, we are trying to release .final this week.

Mark
On 13/10/2011 08:20, Victor Cv wrote:
 Hi,

 while we used on Drools 5.1.1 our rules compiled in approx 1 min, after
 switching to 5.2.0 the compilation time increased to approx 7 mins.
 Our compilation is performed programmatically via KnowledgeBuilder by the
 user application itself.
 What we are possibly doing wrong?

 Just to mention that after the switch our .DRL code that compiled
 successfully under 5.1.1 needed much fixing, because it completely broke
 under the 5.2.0 (more strict type casting, || became or, access to
 static Java methods and fields requires now explicit class imports instead
 of the package imports as before, etc.).
 I searched but didn't find any migration guide. Is something like that
 available?

 Regards,

 Victor

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/7x-slower-DRL-compilation-after-switching-5-1-1-to-5-2-0-tp3417952p3417952.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [planner] Problem setting configuration file

2011-10-13 Thread Guilherme Kunigami
Geoffrey,

Thank you, that worked!

I was wondering now if I can achieve the same with the drools rule file. The
method below wouldn't work because it's not me who load the file (I think
it's at AbstractSolverConfig.buildRuleBase, which seems to use
getResourceAsStream too).


2011/10/11 Geoffrey De Smet ge0ffrey.s...@gmail.com

 **
 Hi Guilharme,

 There's an overloaded method called configure(InputStream in) and
 configure(Reader reader)  too, use either of those instead:

 try {
   InputStream in = new FileInputStream(
 /path/to/xml/file/SolverConf.xml);
   configurer.configure(in);
 } finally {
   IOUtils.closeSilently(in);
 }

 Op 11-10-11 15:01, Guilherme Kunigami schreef:

 Hi,

  I'm trying to load a configuration file (namely SolverConf.xml) into
 XmlSolver with the code below:

  XmlSolverConfigurer configurer = new XmlSolverConfigurer();
 configurer.configure(SOLVER_CONFIG);
 Solver solver = configurer.buildSolver();

  If I bundle SolverConf.xml file with the application .jar file, then
 using SOLVER_CONFIG as /path/to/xml/file/SolverConf.xml works fine.

  But I want to use SolverConf.xml outside the .jar, so I can easiliy edit
 it, but I don't know what path should I pass to it.

  I know it's a Java related question, but I was wondering if anyone had a
 similar problem when configuring drools planner. (I've asked on
 stackoverflow, but none of the answers worked for me:
 http://stackoverflow.com/questions/7718807/can-getresourceasstream-find-files-outside-the-jar-file
 )

  (Supposing my .jar is in /some/path and the SolverConf.xml will be on
 /some/path/conf for example)

  Thanks,



 ___
 rules-users mailing 
 listrules-users@lists.jboss.orghttps://lists.jboss.org/mailman/listinfo/rules-users


 --
 With kind regards,
 Geoffrey De Smet


 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] [planner] The presumed score is corrupted

2011-10-13 Thread Guilherme Kunigami
Hi,

I've implemented a very simple application using drools planner consisting
of a bunch of activities. My rule file is very simple too and just counts
the number of activities not assigned. When I run Solver.solve(), I get the
following error message:

Exception in thread AWT-EventQueue-0 java.lang.IllegalStateException: The
presumedScore (-10hard/0soft) is corrupted because it is not the realScore
 (0hard/0soft).

Presumed workingMemory:
  Score rule (remainingActivitiesCount) has count (1) and weight total (11).
Real workingMemory:
  Score rule (remainingActivitiesCount) has count (1) and weight total (0).

I've tracked down this message and found this piece of code
@DefaultLocalSearchSolver.solveImplementation():

// there is no need to recalculate the score, but we still need to set it
localSearchSolverScope.getWorkingSolution().setScore(localSearchStepScope.getScore());
if (assertStepScoreIsUncorrupted) {

localSearchSolverScope.assertWorkingScore(localSearchStepScope.getScore());
}

It seems that the working score is never updated along the algorithm, but
the score in the working memory changes. Thus, when we use the DEBUG
environment, assertStepScoreIsUncorrupted is turned on and the assertion
fails.

Should the score be updated or am I using the library incorrectly?

Thanks,
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor5.1.1 resource local cache

2011-10-13 Thread DroolersEye
set the system property along with other system properties...
drools.resource.urlcache=  /location/to/the/local/cache

-
with kind regards,

--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor5-1-1-resource-local-cache-tp3241162p3419773.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] StatefulKnowledgeSession construction executes sequentially (no multithread)

2011-10-13 Thread Juan Carlos Fernández
I solved the problem. I experienced some memory leak using
StatefulKnowledgeSession and immediately I discovered this 
http://drools.46999.n3.nabble.com/rules-users-Memory-leak-in-5-2-5-3-td3280351.html
post . It's a bug in JBPM 5.1.0 in conjunction with drools 5.2. JBPM leaks
some memory when creating new StatefulKnowledgeSessions.

When memory reaches certain memory threshold, GC seems to execute trying to
free some memory and all we know part of GC is single-threaded.

Using Drools 5.2 you can avoid this problem if you do not use JBPM
integration (BPMN2 resources).

In order to test it in a proper scenario I put some code (cpu consuming)
between creation and dispose ( double a =
Math.sqrt(2828282)*Math.sqrt(2828282) with several bucles)

Thank you very much for your help,

--
View this message in context: 
http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-construction-executes-sequentially-no-multithread-tp3412107p3418933.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread slyfox
It seems like I have fusion working correctly, yet the rules are not firing.

I have a quote object 

class Quote {
private String symbol;
private double bid;
private double ask;

   //eclipse generated getters and setter
}

in my drl I have the following:
import path.to.quote;

declare entry-point Incoming Quotes
@doc (incoming quotes)
end

declare Quote
@role (event)
//@expires(2s)
end

rule show something
when
FXQuote(symbol == EUR/USD, s:symbol) from entry-point 
Incoming Quotes
then
System.out.println(euro quote);
end

in my code I am inserting manually:
quoteStream = ksession.getWorkingMemoryEntryPoint(Incoming Quotes);
...
quoteStream.insert(quote); 

I have verified I am getting quote objects with symbol == EUR/USD yet the
rule is not firing


I only say that it *appears* that I have the stream set up properly because
everything compiles and runs and in my log file I see the incoming quotes:

org.drools.audit.event.ObjectLogEvent
  type1/type
  factId6/factId
  objectToStringcom.trendfx.fxlib.FXQuote@103ec0d/objectToString
/org.drools.audit.event.ObjectLogEvent
org.drools.audit.event.ObjectLogEvent
  type3/type
  factId2/factId
  objectToStringcom.trendfx.fxlib.FXQuote@145f918/objectToString
/org.drools.audit.event.ObjectLogEvent
org.drools.audit.event.ObjectLogEvent
  type3/type
  factId3/factId
  objectToStringcom.trendfx.fxlib.FXQuote@184843c/objectToString
/org.drools.audit.event.ObjectLogEvent
org.drools.audit.event.ObjectLogEvent
  type3/type
  factId5/factId
  objectToStringcom.trendfx.fxlib.FXQuote@1912b66/objectToString
/org.drools.audit.event.ObjectLogEvent

etc..

simple rule but no output, tried debugging but since I can only add
breakpoints to RHS this doesnt really help me

Thanks,
Bobby







--
View this message in context: 
http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420043.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread Mauricio Salatino
did you call the fire all rules method?

On Thu, Oct 13, 2011 at 7:23 PM, slyfox bobby.richa...@gmail.com wrote:

 It seems like I have fusion working correctly, yet the rules are not
 firing.

 I have a quote object

 class Quote {
private String symbol;
private double bid;
private double ask;

   //eclipse generated getters and setter
 }

 in my drl I have the following:
 import path.to.quote;

 declare entry-point Incoming Quotes
@doc (incoming quotes)
 end

 declare Quote
@role (event)
//@expires(2s)
 end

 rule show something
when
FXQuote(symbol == EUR/USD, s:symbol) from entry-point
 Incoming Quotes
then
System.out.println(euro quote);
 end

 in my code I am inserting manually:
 quoteStream = ksession.getWorkingMemoryEntryPoint(Incoming Quotes);
 ...
 quoteStream.insert(quote);

 I have verified I am getting quote objects with symbol == EUR/USD yet the
 rule is not firing


 I only say that it *appears* that I have the stream set up properly because
 everything compiles and runs and in my log file I see the incoming quotes:

 org.drools.audit.event.ObjectLogEvent
  type1/type
  factId6/factId
  objectToStringcom.trendfx.fxlib.FXQuote@103ec0d/objectToString
 /org.drools.audit.event.ObjectLogEvent
 org.drools.audit.event.ObjectLogEvent
  type3/type
  factId2/factId
  objectToStringcom.trendfx.fxlib.FXQuote@145f918/objectToString
 /org.drools.audit.event.ObjectLogEvent
 org.drools.audit.event.ObjectLogEvent
  type3/type
  factId3/factId
  objectToStringcom.trendfx.fxlib.FXQuote@184843c/objectToString
 /org.drools.audit.event.ObjectLogEvent
 org.drools.audit.event.ObjectLogEvent
  type3/type
  factId5/factId
  objectToStringcom.trendfx.fxlib.FXQuote@1912b66/objectToString
 /org.drools.audit.event.ObjectLogEvent

 etc..

 simple rule but no output, tried debugging but since I can only add
 breakpoints to RHS this doesnt really help me

 Thanks,
 Bobby







 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420043.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread slyfox
i did not but I was under the impression that the fireallrules method was for
expert an not fusion.  So anytime I have an 'event' come in I must call this
method?

I see that it works now, but this seems inefficient to me, how does this
differentiate fusion, if its just like expert in a loop?

Thanks for the response,
Bobby



--
View this message in context: 
http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420143.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread Edson Tirelli
   Fusion is a set of features added to all the Expert features, so in the
end, they just leverage each other... it is not like Fusion only uses
events, and Expert only uses facts... the goal of the Drools platform is to
make it completely transparent for the user to write their
rules/queries/processes using all the features together...

   Having said that, yes, you must either call fireAllRules() from time to
time (for instance, after each insert, or every 20 seconds, or whatever), or
you can start a thread and call fireUntilHalt() to place the engine in
reactive mode (probably what you were looking for).

   Edson

2011/10/13 slyfox bobby.richa...@gmail.com

 i did not but I was under the impression that the fireallrules method was
 for
 expert an not fusion.  So anytime I have an 'event' come in I must call
 this
 method?

 I see that it works now, but this seems inefficient to me, how does this
 differentiate fusion, if its just like expert in a loop?

 Thanks for the response,
 Bobby



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420143.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  JBoss Drools Core Development
  JBoss by Red Hat @ www.jboss.com
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread slyfox
thanks for the response, that makes a little more sense.  That is an issue
because the whole idea of CEP is to process events as they happen.  My next
step is adding camel support so that I can consume the amqp feed without
manually inserting into the session.  I guess fireuntilhalt is my only
option.  But what does fire until halt do, is it just a continuous loop or
is is smart enough to only process events when they come in?

so what would happen if the event is given an expiration of say 2 seconds? 
if you were calling fireallrules in anything over a 2 second interval you
would miss a lot.  

I do not really see the benefit of fusion then, seems like its redundant?  I
hope that I am missing something.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420701.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Fusion appears to be working properly, but...

2011-10-13 Thread Wolfgang Laun
On 14 October 2011 06:31, slyfox bobby.richa...@gmail.com wrote:

 thanks for the response, that makes a little more sense.  That is an issue
 because the whole idea of CEP is to process events as they happen.  My next
 step is adding camel support so that I can consume the amqp feed without
 manually inserting into the session.  I guess fireuntilhalt is my only
 option.  But what does fire until halt do, is it just a continuous loop or
 is is smart enough to only process events when they come in?


There is one reasons for the thread running a Drools engine until halt
to become active: when a fact is inserted. After doing the work resulting
from this, the thread falls back into suspension.


 so what would happen if the event is given an expiration of say 2 seconds?
 if you were calling fireallrules in anything over a 2 second interval you
 would miss a lot.


An event that has expired any time before you fireAllRules is discarded
soon after this call is entered. What could you miss in the time between
the scheduled expiry and the actual removal?

Note that any application that expects to produce real-time reactions
is bound to fireUntilHalt.



 I do not really see the benefit of fusion then, seems like its redundant?
  I
 hope that I am missing something.


There isn't really a Fusion thing. (Think of it as a marketing gag.)
The Drools Rule Engine is capable of dealing with facts that have the
distinct traits of what is called event: timestamp, duration and
expiry; the Engine is clever enough to retract stale events automatically,
and there's a set of operators for comparing numbers that may
represent points in time with some fancy overlap options. If you don't
need anything of this, don't use it; OTOH, if you compare dates, just
using the temporal operators may help.

-W


 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Fusion-appears-to-be-working-properly-but-tp3420043p3420701.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users