RE: [rules-users] Templates / Generated rules debugging

2009-06-08 Thread Malenfant, Andre
Perfect!

B.T.W. I realized I can debug if I have drools sources and add a breakpoint at 
a strategic spot... Thanks

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter
Sent: Monday, June 08, 2009 12:47 PM
To: Rules Users List
Subject: Re: [rules-users] Templates / Generated rules debugging

Yes, check this out:
http://blog.athico.com/2008/02/looking-under-drools-skirt.html


Am 08.06.2009 um 18:34 schrieb Malenfant, Andre:

> Is it possible to see the generated Java code for the rules?
>
> -Original Message-
> From: rules-users-boun...@lists.jboss.org 
> [mailto:rules-users-boun...@lists.jboss.org 
> ] On Behalf Of Ingomar Otter
> Sent: Monday, June 08, 2009 12:00 PM
> To: Rules Users List
> Subject: Re: [rules-users] Templates / Generated rules debugging
>
>
>> -  Since this is a web application, I cannot debug the rules
> in Eclipse (unless I am missing something)
> You are missing something. :-) That's possible.
>
> However we have found regular debuggers "not to helpful".
> Have a look at the WorkingMemoryLoggers, they can give you a detailed
> insight of what's going on inside Drools, ie.
> * Facts inserted, changed, retracted
> * Activations
> * Rules fired
>
> 4.0.7: 
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html
> (The Drools Eclipse Plugin can be used to view these logs).
>
> To be useful, this requires a usable toString, we have created those
> using apache commmons-lang.
>
> Happy hunting!
>
>  -- Ingomar
>
>
>
> Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:
>
>> Hi,
>>
>>
>>
>> Can some of your share your technique for debugging/troubleshooting
>> rules:
>>
>>
>>
>> Here is the situation:
>>
>>
>>
>> -  I have a web application that uses rules at specific
>> points.
>>
>> -  I use templates and decision tables so the actual rules
>> are compiled by my application using a spread sheet compiler.
>>
>> -  Since this is a web application, I cannot debug the rules
>> in Eclipse (unless I am missing something)
>>
>>
>>
>> I must not be the only one asking this question but I cannot find
>> answers in the archives.
>>
>>
>>
>> Thanks,
>>
>>
>>
>> André Malenfant
>>
>>
>>
>> ___
>> 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 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Templates / Generated rules debugging

2009-06-08 Thread Edson Tirelli
   Yes, check the PackageBuilderConfiguration class for the method
setDumpDir(). Please note that drools generates and compile files in memory,
so after you stop debugging, remember to turn this option off again to not
consume unnecessary IO time.

   Also, the java code is usually not much helpful. Best to use the loggers
as suggested by Ingomar.

  []s
  Edson

2009/6/8 Malenfant, Andre 

> Is it possible to see the generated Java code for the rules?
>
> -Original Message-
> From: rules-users-boun...@lists.jboss.org [mailto:
> rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter
> Sent: Monday, June 08, 2009 12:00 PM
> To: Rules Users List
> Subject: Re: [rules-users] Templates / Generated rules debugging
>
>
>  >-  Since this is a web application, I cannot debug the rules
> in Eclipse (unless I am missing something)
> You are missing something. :-) That's possible.
>
> However we have found regular debuggers "not to helpful".
> Have a look at the WorkingMemoryLoggers, they can give you a detailed
> insight of what's going on inside Drools, ie.
> * Facts inserted, changed, retracted
> * Activations
> * Rules fired
>
> 4.0.7:
> http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html
> (The Drools Eclipse Plugin can be used to view these logs).
>
> To be useful, this requires a usable toString, we have created those
> using apache commmons-lang.
>
> Happy hunting!
>
>  -- Ingomar
>
>
>
> Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:
>
> > Hi,
> >
> >
> >
> > Can some of your share your technique for debugging/troubleshooting
> > rules:
> >
> >
> >
> > Here is the situation:
> >
> >
> >
> > -  I have a web application that uses rules at specific
> > points.
> >
> > -  I use templates and decision tables so the actual rules
> > are compiled by my application using a spread sheet compiler.
> >
> > -  Since this is a web application, I cannot debug the rules
> > in Eclipse (unless I am missing something)
> >
> >
> >
> > I must not be the only one asking this question but I cannot find
> > answers in the archives.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > André Malenfant
> >
> >
> >
> > ___
> > 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 mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of 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] Templates / Generated rules debugging

2009-06-08 Thread Ingomar Otter

Yes, check this out:
http://blog.athico.com/2008/02/looking-under-drools-skirt.html


Am 08.06.2009 um 18:34 schrieb Malenfant, Andre:


Is it possible to see the generated Java code for the rules?

-Original Message-
From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org 
] On Behalf Of Ingomar Otter

Sent: Monday, June 08, 2009 12:00 PM
To: Rules Users List
Subject: Re: [rules-users] Templates / Generated rules debugging



-  Since this is a web application, I cannot debug the rules

in Eclipse (unless I am missing something)
You are missing something. :-) That's possible.

However we have found regular debuggers "not to helpful".
Have a look at the WorkingMemoryLoggers, they can give you a detailed
insight of what's going on inside Drools, ie.
* Facts inserted, changed, retracted
* Activations
* Rules fired

4.0.7: 
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html
(The Drools Eclipse Plugin can be used to view these logs).

To be useful, this requires a usable toString, we have created those
using apache commmons-lang.

Happy hunting!

 -- Ingomar



Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:


Hi,



Can some of your share your technique for debugging/troubleshooting
rules:



Here is the situation:



-  I have a web application that uses rules at specific
points.

-  I use templates and decision tables so the actual rules
are compiled by my application using a spread sheet compiler.

-  Since this is a web application, I cannot debug the rules
in Eclipse (unless I am missing something)



I must not be the only one asking this question but I cannot find
answers in the archives.



Thanks,



André Malenfant



___
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 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] Templates / Generated rules debugging

2009-06-08 Thread Malenfant, Andre
Is it possible to see the generated Java code for the rules?

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ingomar Otter
Sent: Monday, June 08, 2009 12:00 PM
To: Rules Users List
Subject: Re: [rules-users] Templates / Generated rules debugging


 >-  Since this is a web application, I cannot debug the rules  
in Eclipse (unless I am missing something)
You are missing something. :-) That's possible.

However we have found regular debuggers "not to helpful".
Have a look at the WorkingMemoryLoggers, they can give you a detailed  
insight of what's going on inside Drools, ie.
* Facts inserted, changed, retracted
* Activations
* Rules fired

4.0.7: 
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html
(The Drools Eclipse Plugin can be used to view these logs).

To be useful, this requires a usable toString, we have created those  
using apache commmons-lang.

Happy hunting!

  -- Ingomar



Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:

> Hi,
>
>
>
> Can some of your share your technique for debugging/troubleshooting  
> rules:
>
>
>
> Here is the situation:
>
>
>
> -  I have a web application that uses rules at specific  
> points.
>
> -  I use templates and decision tables so the actual rules  
> are compiled by my application using a spread sheet compiler.
>
> -  Since this is a web application, I cannot debug the rules  
> in Eclipse (unless I am missing something)
>
>
>
> I must not be the only one asking this question but I cannot find  
> answers in the archives.
>
>
>
> Thanks,
>
>
>
> André Malenfant
>
>
>
> ___
> 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 mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Templates / Generated rules debugging

2009-06-08 Thread Ingomar Otter
>-  Since this is a web application, I cannot debug the rules  
in Eclipse (unless I am missing something)

You are missing something. :-) That's possible.

However we have found regular debuggers "not to helpful".
Have a look at the WorkingMemoryLoggers, they can give you a detailed  
insight of what's going on inside Drools, ie.

* Facts inserted, changed, retracted
* Activations
* Rules fired

4.0.7: 
http://downloads.jboss.com/drools/docs/4.0.7.19894.GA/apidocs/org/drools/audit/WorkingMemoryFileLogger.html
(The Drools Eclipse Plugin can be used to view these logs).

To be useful, this requires a usable toString, we have created those  
using apache commmons-lang.


Happy hunting!

 -- Ingomar



Am 08.06.2009 um 17:46 schrieb Malenfant, Andre:


Hi,



Can some of your share your technique for debugging/troubleshooting  
rules:




Here is the situation:



-  I have a web application that uses rules at specific  
points.


-  I use templates and decision tables so the actual rules  
are compiled by my application using a spread sheet compiler.


-  Since this is a web application, I cannot debug the rules  
in Eclipse (unless I am missing something)




I must not be the only one asking this question but I cannot find  
answers in the archives.




Thanks,



André Malenfant



___
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