Re: [rules-users] Question about custom accumulation functions

2011-09-14 Thread Bruno Freudensprung

Hi Edson,

Good news: the problem does not happen, neither with the 5.2.0.Final nor 
with the latest snapshot.
Best regards,

Bruno.

Le 08/09/2011 17:17, Edson Tirelli a écrit :

Bruno,

Can you please test it with latest snapshot? If it is still a 
 problem, then please open a JIRA and provide the test to reproduce it...

 https://hudson.jboss.org/jenkins/view/Drools%20jBPM/job/drools/lastSuccessfulBuild/artifact/drools-distribution/target/

Thanks,
  Edson

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


Re: [rules-users] Question about custom accumulation functions

2011-09-14 Thread Edson Tirelli
   Good. Thanks for letting us know.

   Edson

2011/9/14 Bruno Freudensprung bruno.freudenspr...@temis.com


 Hi Edson,

 Good news: the problem does not happen, neither with the 5.2.0.Final nor
 with the latest snapshot.
 Best regards,

 Bruno.

 Le 08/09/2011 17:17, Edson Tirelli a écrit :
 
 Bruno,
 
 Can you please test it with latest snapshot? If it is still a
  problem, then please open a JIRA and provide the test to reproduce it...
 
 
 https://hudson.jboss.org/jenkins/view/Drools%20jBPM/job/drools/lastSuccessfulBuild/artifact/drools-distribution/target/
 
 Thanks,
   Edson

 ___
 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] Memory leak in 5.2/5.3

2011-09-14 Thread Swindells, Thomas
This probably isn't very optimal but it should work:

CollectionFactHandle factHandles = session.getFactHandles();
for(FactHandle f : factHandles) {
session.retract(f);
}

Thomas
 -Original Message-
 From: rules-users-boun...@lists.jboss.org [mailto:rules-users-
 boun...@lists.jboss.org] On Behalf Of vadlam
 Sent: 14 September 2011 02:39
 To: rules-users@lists.jboss.org
 Subject: Re: [rules-users] Memory leak in 5.2/5.3


 we are seeing similar memory leak with 5.2.0.Cr1 version of drools.

 are there any other alternatives such as using a different version of jbpm jar
 if that is the cause of the problem?
 we are currently using the jbpm-flow-5.1.0.Cr1.jar.

 If not,

 is there a method that removes all the facts from the ksession so that it can
 be reused?

 for ex, the existing code (simplified) is as follows:

 ksession = knowledgeBase.newStatefulKnowledgeSession();

 for (Object obj : objList)
 {
 ksession.insert(obj);

 }
  ksession.startProcess(ruleFlowProcessName);
 ksession.fireAllRules();
  do some response processing here


 ksession.dispose();

 Thomas,

 Can you please elaborate on what you did to clean out the facts from the
 memory ?




 --
 View this message in context: http://drools.46999.n3.nabble.com/rules-
 users-Memory-leak-in-5-2-5-3-tp3280351p3334543.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


**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@nds.com and delete it from your system as well as any copies. The 
content of e-mails as well as traffic data may be monitored by NDS for 
employment and security purposes. To protect the environment please do not 
print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, 
United Kingdom. A company registered in England and Wales. Registered no. 
3080780. VAT no. GB 603 8808 40-00
**

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


[rules-users] [Guvnor] template keys in formula and metadata

2011-09-14 Thread Hans Boerstra
Is it possible to use template keys in a formula and metadata in a rule
template in Guvnor?

I can't find a way to get them in and if I just use $var notation it does
not get used when I load template data.

In Guvnor I can only use template keys in the expression editor.
In the drt format I could put keys everywhere I wanted.
Is there a way to make Guvnor accept that too?


Regards,

Hans


--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-template-keys-in-formula-and-metadata-tp3336774p3336774.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] [Guvnor] template keys in formula and metadata

2011-09-14 Thread Michael Anstis
Hi,

This is not possible at present, there is an unresolved JIRA for it already:
https://issues.jboss.org/browse/GUVNOR-1431.

It is unlikely to make 5.3.0.Final, however not completely ruled out at the
moment.

With kind regards,

Mike

2011/9/14 Hans Boerstra hans.boers...@hotmail.com

 Is it possible to use template keys in a formula and metadata in a rule
 template in Guvnor?
 I can't find a way to get them in and if I just use $var notation it does
 not get used when I load template data.
 In Guvnor I can only use template keys in the expression editor. In the drt
 format I could put keys everywhere I wanted.

 Is there a way to make Guvnor accept that too?
 Regards,

 Hans

 --
 View this message in context: [Guvnor] template keys in formula and
 metadatahttp://drools.46999.n3.nabble.com/Guvnor-template-keys-in-formula-and-metadata-tp3336774p3336774.html
 Sent from the Drools: User forum mailing list 
 archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htmlat 
 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] [Guvnor] template keys in formula and metadata

2011-09-14 Thread Hans Boerstra

Ok, would be great if it would be part of 5.3.0 as it would make the lives
of our business users a lot easier.

Is there a workaround available by creating a drt file and importing that
somehow? 

What's in the template file in the webdav repository when a rule template is
saved?


We have a group of users that only need to use the webgrid to enter rules.

Regards,
Hans


--
View this message in context: 
http://drools.46999.n3.nabble.com/Guvnor-template-keys-in-formula-and-metadata-tp3336774p3337058.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] Changeset does not monitor folder correctly

2011-09-14 Thread wendy
Hi,
  I'm trying to use a change set to monitor a folder for drl files but I
can't get it to work right.  If I list all the files in the folder all the
rules load correctly and everything thing is happy.  If I just specify a
folder the mapping resource are associating rules from the test-two.drl file
with the test.drl file.  Also the 'KnowledgeAgent adding' adds two test.two
(which is the package for the test-two.drl file) instead of a test and a
test.two.  Which is what happens when I list the files in the change-set.

From the documentation it seems like this should work.  Has anyone run into
this before?  What am I doing wrong? I'm using 5.2.0.M1.

Wendy

?xml version=1.0 encoding=UTF-8?
change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set.xsd
drools-change-set-5.0.xsd'
add




resource source='file:Rules/DailyRules/' 
type='DRL'/ 

/add
/change-set

[2011:09:257 20:09:317:info] ResourceChangeScanner reconfigured with
interval=60
[2011:09:257 20:09:317:info] ResourceChangeScanner created with default
interval=60
[2011:09:257 20:09:327:info] ResourceChangeScanner reconfigured with
interval=60
[2011:09:257 20:09:327:info] ResourceChangeScanner reconfigured with
interval=60
[2011:09:257 20:09:327:info] ResourceChangeNotification scanner has started
[2011:09:257 20:09:327:debug] ResourceChangeScanner attempt to scan 0
resources
[2011:09:257 20:09:347:debug] ResourceChangeScanner thread is waiting for 60
seconds.
[2011:09:257 20:09:377:info] ResourceChangeNotification created
[2011:09:257 20:09:417:info] ResourceChangeNotification has started
listening for ChangeSet publications
[2011:09:257 20:09:417:debug] ResourceChangeNotification thread is waiting
for queue update
[2011:09:257 20:09:667:debug] ResourceChangeNotification monitor added
monitor=org.drools.io.impl.ResourceChangeScannerImpl@1f4cf6f
[2011:09:257 20:09:677:debug] KnowledgeAgent building resource map
[2011:09:257 20:09:677:info] KnowledgeAgent has started listening for
ChangeSet notifications
[2011:09:257 20:09:677:info] KnowledgeAgent created, with configuration:
monitorChangeSetEvents=true scanResources=true scanDirectories=true
newInstance=true
(null: 4, 103): cvc-elt.1: Cannot find the declaration of element
'change-set'.
[2011:09:257 20:09:797:info] KnowledgeAgent applying ChangeSet
[2011:09:257 20:09:797:debug] KnowledgeAgent subscribing to
directory=[UrlResource path='file:Rules/DailyRules/']
[2011:09:257 20:09:797:debug] ResourceChangeNotification subscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@aee320 to
resource=[UrlResource path='file:Rules/DailyRules/']
[2011:09:257 20:09:797:debug] ResourceChangeScanner subcribing
notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1c160cb to
resource=[UrlResource path='file:Rules/DailyRules/']
[2011:09:257 20:09:817:debug] KnowledgeAgent mapping resource=[FileResource
file='Rules\DailyRules\test-two.drl'] to KnowledgeDefinition=null
[2011:09:257 20:09:817:debug] KnowledgeAgent notifier subscribing to
resource=[FileResource file='Rules\DailyRules\test-two.drl']
[2011:09:257 20:09:817:debug] ResourceChangeNotification subscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@aee320 to
resource=[FileResource file='Rules\DailyRules\test-two.drl']
[2011:09:257 20:09:817:debug] ResourceChangeScanner subcribing
notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1c160cb to
resource=[FileResource file='Rules\DailyRules\test-two.drl']
[2011:09:257 20:09:817:debug] KnowledgeAgent mapping resource=[FileResource
file='Rules\DailyRules\test.drl'] to KnowledgeDefinition=null
[2011:09:257 20:09:817:debug] KnowledgeAgent notifier subscribing to
resource=[FileResource file='Rules\DailyRules\test.drl']
[2011:09:257 20:09:817:debug] ResourceChangeNotification subscribing
listener=org.drools.agent.impl.KnowledgeAgentImpl@aee320 to
resource=[FileResource file='Rules\DailyRules\test.drl']
[2011:09:257 20:09:817:debug] ResourceChangeScanner subcribing
notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1c160cb to
resource=[FileResource file='Rules\DailyRules\test.drl']
[2011:09:257 20:09:878:debug] KnowledgeAgent rebuilding KnowledgeBase using
ChangeSet
[2011:09:257 20:09:936:debug] KnowledgeAgent obtaining pkg
resource=[FileResource file='Rules\DailyRules\test-two.drl']
[2011:09:257 20:09:936:debug] KnowledgeAgent mapping resource=[FileResource
file='Rules\DailyRules\test-two.drl'] to KnowledgeDefinition=[Rule
name=hello one test two, agendaGroup=MAIN, salience=0, no-loop=false]
[2011:09:257 20:09:936:debug] KnowledgeAgent notifier subscribing to
resource=[FileResource file='Rules\DailyRules\test-two.drl']
[2011:09:257 20:09:936:debug] ResourceChangeNotification subscribing