Hi,<div><br></div><div>I have a sample drl file in which I have written multiple rules. For each different rules when get fired I have started different processes.</div><div>for eg:</div><div><br></div><div>Rule1</div><div>
when: some condition</div><div>then:</div><div>drools.getWorkingMemory.startprocess(&quot;id1&quot;);</div><div><br></div><div>Rule2</div><div>when: some condition</div><div>then:</div><div>drools.getWorkingMemory.startprocess(&quot;id2&quot;);</div>
<div><br></div><div>But the problem is that only that rule flow process gets fired every time which I have added to builder last. Also it is clear that it goes inside the then clause of Rule2 suppose but then again it starts process with id1.</div>
<div><br></div><div>Any help on how to resolve this or why is it happening is welcom,</div><div>Thanks</div><div>Santosh  Mukherjee</div><div><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 3:39 AM, nanic23 <span dir="ltr">&lt;<a href="mailto:nanic23@hotmail.com">nanic23@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi cafebabe,<br>
<br>
Thanks for your comment. I agree with you that work item ids are database<br>
primary keys but in this simple (very simple) case I just decided to<br>
harcoded as I know for a fact that the work item id is 1 because that is the<br>
only work item and each time I run the test the tables are dropped and<br>
recreated. So, there is never more than one row in the workItemInfo table<br>
and the only row always has 1 as its id.<br>
I could have stored the work item id or a work item object as a variable<br>
(like you mentioned) but in this case wouldn&#39;t make a difference for the<br>
timers.<br>
<br>
Are timers working for you when you use persistence? I do complete work<br>
items by workItem.getId() in all my code (other than this simple example<br>
:)). My problem is NOT completing the work item, my problem is triggering<br>
timers when persistence is enabled. The timers don&#39;t even trigger, thing<br>
that should happen before even trying to complete the work item.<br>
<br>
Thanks,<br>
<br>
Nick.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p961658.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-Timers-With-Drools-Persistence-Enabled-tp923142p961658.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br></div>