Re: [rules-users] Migrating from 4.0.7 to 5.4.0.Final

2012-06-29 Thread Jean-Paul Shemali

Hi again all,

Am i the only one noting these issues on the version? 
If this is not the right place to discuss this, could someone point me in the 
right direction (do I enter an issue in JIRA with potential patches, ...)?

Thanks in advance

> Date: Mon, 25 Jun 2012 00:01:16 -0700
> From: jshem...@hotmail.com
> To: rules-users@lists.jboss.org
> Subject: [rules-users] Migrating from 4.0.7 to 5.4.0.Final
> 
> Hi all,
> 
> I'm currently in the process of migrating an application using drools 4.0.7
> to 5.4.0.Final and I've stumbled into a few issues with the new version that
> I find disturbing: 
> 
> - Our unit tests failed because the JVM ran out of perm gen space, which
> looks odd as in 4.0.7 we've had quite a margin to start with.
> - Doing several Yourkit analysis, I finally find classloading leaks:   
>   * *org.drools.rule.builder.dialect.asm.ClassGenerator.EMPTY_METHOD_BODY*
> is a static instance which will hold to the last instance of
> InternalClassLoader created
>   * *org.drools.rule.constraint.MvelConstraint* uses an ExecutorHolder that
> spawns daemon threads and keeps them in a pool. Problem is these threads
> create class loaders, and can only be garbage collected when the thread
> dies, meaning never in my case...
> - I've quick fixed both issues, the second one by simply disabling the
> thread pool.
> - Once this is done, the perm gen behaves correctly, but the execution times
> are 2-3 times slower on very large set of rules (~1000). Looking at Yourkit
> analysis again, I see that the number of classes generated and the perm gen
> consumption is about 3 times higher in 5.4.0.Final. I honestly don't know
> how to address this.
> 
> I've tried to find some other posts concerning these issues, to no avail. I
> don't see any work around this, short of code changes, and for reducing the
> number of generated classes I simply have no idea.
> 
> Please correct me if I am wrong, any help would be greatly appreciated
> 
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Migrating-from-4-0-7-to-5-4-0-Final-tp4018215.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] convert drl file to rf?

2012-06-29 Thread Caillard, Quentin
I may be wrong, but i think that drl files and jpbm are not used to achieve
the same goal. Drl files to create rules and jpbm to create flows. Then i
think that converting a drl file to a jbpm file makes no sense.

2012/6/29 al so 

> or jBPM file from drl file???
>
>
> On Thu, Jun 28, 2012 at 7:50 PM, al so  wrote:
>
>> Can one convert an existing drl file to a rule flow file in eclipse?
>>
>>>
>>
>
> ___
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>


-- 

[image: Description : long_bleu_fdblanc2]

Quentin CAILLARD

*Software Engineering
*
<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] convert drl file to rf?

2012-06-29 Thread abhinay_agarwal
in the newer version of drools we cannot create a ruleflow file..we can only
create a jbpm process file

are ruleflow file(.rf) and jbpm(.bpmn) related ??

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-convert-drl-file-to-rf-tp4018344p4018352.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] convert drl file to rf?

2012-06-29 Thread Caillard, Quentin
The ruleflow file(.rf) is deprecated. You can convert your old ruleflow
(.rf) to jbpm(.bpmn) file. I did it by using the Drools plugin for Eclipse.
If you have the plugin, a simple right click should work.

2012/6/29 abhinay_agarwal 

> in the newer version of drools we cannot create a ruleflow file..we can
> only
> create a jbpm process file
>
> are ruleflow file(.rf) and jbpm(.bpmn) related ??
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-convert-drl-file-to-rf-tp4018344p4018352.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
>



-- 

[image: Description : long_bleu_fdblanc2]

Quentin CAILLARD

*Software Engineering
*

* *

quentin.caill...@ariadnext.com

Phone : +33 (0)2 30 960 874

* *

*AriadNEXT *

80 av des Buttes de Coësmes

35700 RENNES - FRANCE
Fax : +33 (0)2 30 960 423
<>___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] convert drl file to rf?

2012-06-29 Thread Michael Anstis
AFAIK, you are correct.

A DRL file contains rules and related constructs (declarative types,
functions, queries etc).

A BPMN2 file (or it's legacy RuleFlow predecessor) contains a process
definition.

The two represent different concepts and cannot be converted between each
other.

With kind regards,

Mike

On 29 June 2012 08:36, Caillard, Quentin wrote:

> I may be wrong, but i think that drl files and jpbm are not used to
> achieve the same goal. Drl files to create rules and jpbm to create flows.
> Then i think that converting a drl file to a jbpm file makes no sense.
>
> 2012/6/29 al so 
>
>> or jBPM file from drl file???
>>
>>
>> On Thu, Jun 28, 2012 at 7:50 PM, al so  wrote:
>>
>>> Can one convert an existing drl file to a rule flow file in eclipse?
>>>

>>>
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
>
> [image: Description : long_bleu_fdblanc2]
>
> Quentin CAILLARD
>
> *Software Engineering
> *
>
> ___
> 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] convert drl file to rf?

2012-06-29 Thread abhinay_agarwal
can you throw me more light on why have they integrated ruleflow with
prcoess.

Basically, What is the relationship between rules and process..??

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-convert-drl-file-to-rf-tp4018344p4018355.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] convert drl file to rf?

2012-06-29 Thread Michael Anstis
You are asking two different questions, but this is my understanding:

1) IIRC, RuleFlow was added to Drools Expert back in 4.x. As RuleFlow grew
the need to support Business Processes became jBPM and it's own project.

2) IIRC, processes can use Script Nodes that can use rules to determine
dynamic routing in a process.

I know some of the jBPM developers watch this mailing list too and will
probably be able to give a more complete answer.

With kind regards,

Mike

On 29 June 2012 09:31, abhinay_agarwal  wrote:

> can you throw me more light on why have they integrated ruleflow with
> prcoess.
>
> Basically, What is the relationship between rules and process..??
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-convert-drl-file-to-rf-tp4018344p4018355.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


[rules-users] ResourceCompilationFailedEvent - when does it happen, and why?

2012-06-29 Thread Gustaf Cele
I'm trying to understand what KnowledgeAgentEventListener. 
resourceCompilationFailed signifies, and when it occurs. The javadocs don't say 
anything, and it's not entirely obvious from looking at the code what causes 
it. Suppose I have KnowledgeAgent with newInstance=true and initialized with a 
changeset which links to a Guvnor instance like this:



 http://guvnor-host/drools-guvnor/org.drools.guvnor.Guvnor/package/com.example.rules/LATEST";
 />



Just throwing syntax errors into the rules in Guvnor obviously doesn't work, 
since I can't even build the binary package then. Is there any way to provoke 
this event with the above setup, so I can see how it affects my application? 
I'm using Drools 5.4.0.Final.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ResourceCompilationFailedEvent - when does it happen, and why?

2012-06-29 Thread Wolfgang Laun
I'd add another , pointing to a file
source="x.drl" and experiment with that file. Making syntax errors in
DRL is easy enough ;-)
-W

On 29/06/2012, Gustaf Cele  wrote:
> I'm trying to understand what KnowledgeAgentEventListener.
> resourceCompilationFailed signifies, and when it occurs. The javadocs don't
> say anything, and it's not entirely obvious from looking at the code what
> causes it. Suppose I have KnowledgeAgent with newInstance=true and
> initialized with a changeset which links to a Guvnor instance like this:
>
> 
> 
>  
> source="http://guvnor-host/drools-guvnor/org.drools.guvnor.Guvnor/package/com.example.rules/LATEST";
> />
> 
> 
>
> Just throwing syntax errors into the rules in Guvnor obviously doesn't work,
> since I can't even build the binary package then. Is there any way to
> provoke this event with the above setup, so I can see how it affects my
> application? I'm using Drools 5.4.0.Final.
>
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] ResourceCompilationFailedEvent - when does it happen, and why?

2012-06-29 Thread Gustaf Cele
Ah, I see. Then I probably don't need to worry about it in my application :)

-Original Message-
From: Wolfgang Laun [mailto:wolfgang.l...@gmail.com] 
Sent: den 29 juni 2012 12:19
To: Rules Users List
Subject: Re: [rules-users] ResourceCompilationFailedEvent - when does it 
happen, and why?

I'd add another , pointing to a file source="x.drl" and 
experiment with that file. Making syntax errors in DRL is easy enough ;-) -W

On 29/06/2012, Gustaf Cele  wrote:
> I'm trying to understand what KnowledgeAgentEventListener.
> resourceCompilationFailed signifies, and when it occurs. The javadocs 
> don't say anything, and it's not entirely obvious from looking at the 
> code what causes it. Suppose I have KnowledgeAgent with 
> newInstance=true and initialized with a changeset which links to a Guvnor 
> instance like this:
>
> 
> 
>  
> source="http://guvnor-host/drools-guvnor/org.drools.guvnor.Guvnor/package/com.example.rules/LATEST";
> />
> 
> 
>
> Just throwing syntax errors into the rules in Guvnor obviously doesn't 
> work, since I can't even build the binary package then. Is there any 
> way to provoke this event with the above setup, so I can see how it 
> affects my application? I'm using Drools 5.4.0.Final.
>
___
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] System problems

2012-06-29 Thread paco

I am using Drools 5.4.0, guvnor 5.3.0  and default database.
I imported the rules with  XML file (550 KB) in Guvnor. After I can check,
validate and test (with run analysis button) the rules without problems.
Everything works fine.
After when I import ed other rules XML file (30,000 KB), I realized that the
system becomes too slow and obviously I can no longer veifier, validate or
test my rules. I get errors like the following:

Please suggest 

King regards 

--
View this message in context: 
http://drools.46999.n3.nabble.com/System-problems-tp4018361.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] System problems

2012-06-29 Thread paco
I am using Drools 5.4.0, guvnor 5.3.0  and default database.
I imported the rules with  XML file (550 KB) in Guvnor. After I can check,
validate and test (with run analysis button) the rules without problems.
Everything works fine.
After when I import ed other rules XML file (30,000 KB), I realized that the
system becomes too slow and obviously I can no longer veifier, validate or
test my rules.

Please suggest 




--
View this message in context: 
http://drools.46999.n3.nabble.com/System-problems-tp4018363.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] Drools rule template question

2012-06-29 Thread gd007
I have a decision table in an excel file. It works fine if I have empty
column values. However, if I use rule template rows with empty column values
are completely ignored. Is this known issue? Or I am doing something wrong.

Thanks,
--Gautam

--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-rule-template-question-tp4018365.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] convert drl file to rf?

2012-06-29 Thread al so
this is just based on some primitive documentation Jboss drools offers:
  earlier versions support a concept of rule flow diagrams to control the
rule execution (alternative to agenda groups,etc). I thought this is much
simpler for not so tech savvy users to create rule definition.

  latest version of drools(5.4 I guess) seem to include this Rule Flow
diagramming as part of jBPM where one could combine Process along with
Rule. So Rule Flow is a legacy now.

  Or may be need to explore DSL to come up with a more user friendly way to
define and control rule execution, if possible. Again, goal here is to
abstract away the salience, agenda group,etc.


On Fri, Jun 29, 2012 at 12:36 AM, Caillard, Quentin <
quentin.caill...@ariadnext.com> wrote:

> I may be wrong, but i think that drl files and jpbm are not used to
> achieve the same goal. Drl files to create rules and jpbm to create flows.
> Then i think that converting a drl file to a jbpm file makes no sense.
>
> 2012/6/29 al so 
>
>> or jBPM file from drl file???
>>
>>
>> On Thu, Jun 28, 2012 at 7:50 PM, al so  wrote:
>>
>>> Can one convert an existing drl file to a rule flow file in eclipse?
>>>

>>>
>>
>> ___
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
>
> --
>
> [image: Description : long_bleu_fdblanc2]
>
> Quentin CAILLARD
>
> *Software Engineering
> *
>
> ___
> 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] Drools rule template question

2012-06-29 Thread Michael Anstis
This is by design.

You have to include a value for all template keys.

The reasoning is that as you can define any arbitrary template; a missing
value could invalidate the resulting syntax; e.g.: MyFact( @{k1} == @{k2} )

Decision tables are more strict with the constructs you can define and
hence permit empty values.

With kind regards,

Mike

On 29 June 2012 17:20, gd007  wrote:

> I have a decision table in an excel file. It works fine if I have empty
> column values. However, if I use rule template rows with empty column
> values are completely ignored. Is this known issue? Or I am doing something
> wrong. Thanks, --Gautam
> --
> View this message in context: Drools rule template 
> question
> Sent from the Drools: User forum mailing list 
> archiveat 
> 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


[rules-users] break points in drl file

2012-06-29 Thread al so
has anyone tried putting break points in drl file as part of a Spring MVC
app?

no clue on which Main method to choose when doing Debug As Drools
Application from eclipse 3.6/3.7 in this situation.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Spring bean with Drools rule template

2012-06-29 Thread gd007
I can make spring bean with drools:decisiontable-conf as shown below. How do
I put the rule template in the bean defn? 










Thanks,
--Gautam

--
View this message in context: 
http://drools.46999.n3.nabble.com/Spring-bean-with-Drools-rule-template-tp4018369.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] Spring bean with Drools rule template

2012-06-29 Thread Mark Proctor
It was never exposed.

Mark
On 29/06/2012 19:07, gd007 wrote:
> I can make spring bean with drools:decisiontable-conf as shown below. How do
> I put the rule template in the bean defn?
>
>  
>  
>  
>worksheet-name="Tables" />
>  
>  
>  
>
>
> Thanks,
> --Gautam
>
> --
> View this message in context: 
> http://drools.46999.n3.nabble.com/Spring-bean-with-Drools-rule-template-tp4018369.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


[rules-users] ruleflow-group

2012-06-29 Thread al so
looks like one can't activate a ruleflow-group inside a drl file? Only
available via UI?
I was thinking there'll be some kind of setFocus way to control rule
execution using this ruleflow-group.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users