<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Santosh,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Based on your description, different processes 
should be started.&nbsp; Do you have&nbsp;a simple standalone example that shows 
this behaviour, so I can take a look?&nbsp; If not, using an audit logger might 
help in determining which rules are fired and which processes are being 
started.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Kris</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=sam.sensation@gmail.com href="mailto:sam.sensation@gmail.com">santosh 
  mukherjee</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org 
  href="mailto:rules-users@lists.jboss.org">Rules Users List</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, July 20, 2010 10:03 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [rules-users] Implementing 
  Timers With Drools PersistenceEnabled</DIV>
  <DIV><BR></DIV>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("id1");</DIV>
  <DIV><BR></DIV>
  <DIV>Rule2</DIV>
  <DIV>when: some condition</DIV>
  <DIV>then:</DIV>
  <DIV>drools.getWorkingMemory.startprocess("id2");</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 &nbsp;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 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote><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'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'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>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-users mailing 
  list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE><br>
<FONT FACE=3D"Helvetica" SIZE=3D2>Disclaimer: <A HREF="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</A> for more information.</FONT>
 <BR>

</BODY></HTML>