[rules-dev] A drools flow persistence example that behaves strangely

Chrystall, Greg GChrystall at nds.com
Fri Aug 27 10:44:48 EDT 2010


I have written a test based as much as possible on the Drools Flow 5.1 Persistence Documentation. You can see the code here:

http://pastebin.com/33QXK4iU

And I have attached my eclipse project but without the jars as its too big, if anyone wants a zip of the whole project ready to run, I can put it on an http server for you.

My question is why when I change the code from running without persistence to running with persistence does it become "single threaded"? You can see by toggling the persistence variable in the top of the test file that when persistence is enabled each flow will complete before the next one begins yet without persistence they run in parallel.

Any advice on what I am doing wrong or whether persistence simply does not support what I want to do is much appreciated.


Greg



________________________________

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at 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
**************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20100827/51be8359/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drools-test.zip
Type: application/x-zip-compressed
Size: 7369 bytes
Desc: drools-test.zip
Url : http://lists.jboss.org/pipermail/rules-dev/attachments/20100827/51be8359/attachment.bin 


More information about the rules-dev mailing list