Hi Dan, did you manage to get it working?<br>I didn&#39;t have time to look at your problem yet. I&#39;m having very complicated times, but I&#39;m looking forward to have at least one day to fix that issue.<br>Can you update me your situation right now?<br>
<br><div class="gmail_quote">On Wed, Apr 20, 2011 at 1:26 PM, Dan Nathanson <span dir="ltr">&lt;<a href="mailto:dan@ddnconsulting.com">dan@ddnconsulting.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Bump<br>
<br>
Regards,<br>
<font color="#888888"><br>
Dan Nathanson<br>
</font><div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Mon, Apr 11, 2011 at 4:37 PM, Dan Nathanson &lt;<a href="mailto:dan@ddnconsulting.com">dan@ddnconsulting.com</a>&gt; wrote:<br>
&gt; Hi Mauricio,<br>
&gt;<br>
&gt; This is now happening intermittently for another user and a couple of<br>
&gt; times on our build machine.  I have never seen it happen on my<br>
&gt; machine.  This will be a show-stopper for us if we cannot figure out<br>
&gt; the cause.  Our business processes will stall after one user completes<br>
&gt; their task and the next user is never notified that they have a task,<br>
&gt; and no errors will be reported.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Dan Nathanson<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Apr 4, 2011 at 9:27 PM, Dan Nathanson &lt;<a href="mailto:dan@ddnconsulting.com">dan@ddnconsulting.com</a>&gt; wrote:<br>
&gt;&gt; Hi Mauricio,<br>
&gt;&gt;<br>
&gt;&gt; Were you able to make determine anything from the info I sent you?<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; Dan Nathanson<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Apr 1, 2011 at 11:03 AM, Dan Nathanson &lt;<a href="mailto:dan@ddnconsulting.com">dan@ddnconsulting.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Hi Mauricio,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks for looking into this. These are the types of errors that scare<br>
&gt;&gt;&gt; me.  They only happen in one environment and I cannot reproduce them.<br>
&gt;&gt;&gt; How will I know if it happens in production?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We generate our rule flow&#39;s dynamically from our own concept of a<br>
&gt;&gt;&gt; process flow.  I don&#39;t have a custom work item implementation, but I<br>
&gt;&gt;&gt; do have a custom WorkItemHandler registered against work items of type<br>
&gt;&gt;&gt; &quot;Step&quot; called StepWorkItemHandler. StepWorkItemHandler has uses and<br>
&gt;&gt;&gt; injected CallbackHandler to do actual processing.  In test code, the<br>
&gt;&gt;&gt; injected callback handler just records what steps (work items) have<br>
&gt;&gt;&gt; been activated.  In production code, the injected handler sends JMS<br>
&gt;&gt;&gt; messages to notify assigned users that work needs to be completed.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Below is an example of a simple generated flow that fails<br>
&gt;&gt;&gt; intermittently for one developer here.  I captured it using the<br>
&gt;&gt;&gt; XmlRuleFlowProcessDumper.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&gt;&gt;&gt; &lt;process xmlns=&quot;<a href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a>&quot;<br>
&gt;&gt;&gt;         xmlns:xs=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>&quot;<br>
&gt;&gt;&gt;         xs:schemaLocation=&quot;<a href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a><br>
&gt;&gt;&gt; drools-processes-5.0.xsd&quot;<br>
&gt;&gt;&gt;         type=&quot;RuleFlow&quot; name=&quot;flow-1&quot;<br>
&gt;&gt;&gt; id=&quot;bd5556f7_581d_422f_a382_3bb3ac041c4f&quot;<br>
&gt;&gt;&gt; package-name=&quot;com.xxx.process.manager&quot; &gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  &lt;header&gt;<br>
&gt;&gt;&gt;    &lt;imports&gt;<br>
&gt;&gt;&gt;      &lt;import name=&quot;org.drools.ruleflow.instance.RuleFlowProcessInstance&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;/imports&gt;<br>
&gt;&gt;&gt;  &lt;/header&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  &lt;nodes&gt;<br>
&gt;&gt;&gt;    &lt;start id=&quot;1&quot; name=&quot;flow-1 Start&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;join id=&quot;2&quot; name=&quot;step-1 Reject Join&quot; type=&quot;2&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;workItem id=&quot;3&quot; name=&quot;step-1 Step&quot; &gt;<br>
&gt;&gt;&gt;      &lt;work name=&quot;Step&quot; &gt;<br>
&gt;&gt;&gt;      &lt;/work&gt;<br>
&gt;&gt;&gt;    &lt;/workItem&gt;<br>
&gt;&gt;&gt;    &lt;workItem id=&quot;4&quot; name=&quot;step-1 Approval&quot; &gt;<br>
&gt;&gt;&gt;      &lt;work name=&quot;Step&quot; &gt;<br>
&gt;&gt;&gt;      &lt;/work&gt;<br>
&gt;&gt;&gt;    &lt;/workItem&gt;<br>
&gt;&gt;&gt;    &lt;split id=&quot;5&quot; name=&quot;step-1 Approval Split&quot; type=&quot;2&quot; &gt;<br>
&gt;&gt;&gt;      &lt;constraints&gt;<br>
&gt;&gt;&gt;        &lt;constraint toNodeId=&quot;2&quot; toType=&quot;DROOLS_DEFAULT&quot;<br>
&gt;&gt;&gt; name=&quot;rejected&quot; priority=&quot;110&quot; type=&quot;code&quot; dialect=&quot;java&quot; &gt;return<br>
&gt;&gt;&gt; true;&lt;/constraint&gt;<br>
&gt;&gt;&gt;        &lt;constraint toNodeId=&quot;6&quot; toType=&quot;DROOLS_DEFAULT&quot;<br>
&gt;&gt;&gt; name=&quot;approved&quot; priority=&quot;100&quot; type=&quot;rule&quot; dialect=&quot;mvel&quot;<br>
&gt;&gt;&gt;&gt;StepApproval( approved == true, sliceValue == &quot;NO_SLICE&quot;,<br>
&gt;&gt;&gt; approvalStepNodeId == &quot;1a8a5a64-1e32-46a9-8b04-806c1706a97a&quot;<br>
&gt;&gt;&gt; )&lt;/constraint&gt;<br>
&gt;&gt;&gt;      &lt;/constraints&gt;<br>
&gt;&gt;&gt;    &lt;/split&gt;<br>
&gt;&gt;&gt;    &lt;state id=&quot;6&quot; name=&quot;null Wait&quot; &gt;<br>
&gt;&gt;&gt;      &lt;onEntry&gt;<br>
&gt;&gt;&gt;        &lt;action type=&quot;expression&quot; dialect=&quot;java&quot;<br>
&gt;&gt;&gt;&gt;Terminator.terminateFlow(context);&lt;/action&gt;<br>
&gt;&gt;&gt;      &lt;/onEntry&gt;<br>
&gt;&gt;&gt;      &lt;constraints&gt;<br>
&gt;&gt;&gt;        &lt;constraint toNodeId=&quot;7&quot; &gt;Terminator()&lt;/constraint&gt;<br>
&gt;&gt;&gt;      &lt;/constraints&gt;<br>
&gt;&gt;&gt;    &lt;/state&gt;<br>
&gt;&gt;&gt;    &lt;end id=&quot;7&quot; name=&quot;null End&quot; /&gt;<br>
&gt;&gt;&gt;  &lt;/nodes&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  &lt;connections&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;1&quot; to=&quot;2&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;5&quot; to=&quot;2&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;2&quot; to=&quot;3&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;3&quot; to=&quot;4&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;4&quot; to=&quot;5&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;5&quot; to=&quot;6&quot; /&gt;<br>
&gt;&gt;&gt;    &lt;connection from=&quot;6&quot; to=&quot;7&quot; /&gt;<br>
&gt;&gt;&gt;  &lt;/connections&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &lt;/process&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m attaching the log at trace level (there are no WARN level messages<br>
&gt;&gt;&gt; at all) that shows this flow failing to complete.  Lines of interest:<br>
&gt;&gt;&gt; 631: Generating the flow from our internal model<br>
&gt;&gt;&gt; 634: starting the flow<br>
&gt;&gt;&gt; 785: Process event listener shows that flow has started and proceeded<br>
&gt;&gt;&gt; to work item 1 (&quot;step-1 Step&quot;)<br>
&gt;&gt;&gt; 802: StepWorkItemHandler called for work item 1 &quot;step-1 Step&quot;<br>
&gt;&gt;&gt; 803: Process event listener shows &quot;unwinding&quot;of activations<br>
&gt;&gt;&gt; 904: Work item 1 &quot;step-1 Step&quot; completed<br>
&gt;&gt;&gt; 921: work item loaded<br>
&gt;&gt;&gt; 939: process instance loaded<br>
&gt;&gt;&gt; 956: Process event listener shows leaving &quot;step-1 Step&quot;, activating<br>
&gt;&gt;&gt; work item 2 &quot;step-1 Approval&quot;<br>
&gt;&gt;&gt; 969: StepWorkItemHandler called forwork item 2 &quot;step-1 Approval&quot;<br>
&gt;&gt;&gt; 970: Process event listener shows &quot;unwinding&quot;of activations<br>
&gt;&gt;&gt; 1024: work item 1 deleted<br>
&gt;&gt;&gt; 1032: Work item 2 &quot;step-1 Approval&quot; completed<br>
&gt;&gt;&gt; 1049: work item loaded<br>
&gt;&gt;&gt; 1067: process instance loaded<br>
&gt;&gt;&gt; ---Should now see leaving &quot;step-1 Approval&quot; and completing flow, but<br>
&gt;&gt;&gt; don&#39;t see any further progress in the flow.---<br>
&gt;&gt;&gt; 1141: work item 2 deleted<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The execution thread is part of the log output and it seems that<br>
&gt;&gt;&gt; everything is done in one thread.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I&#39;ve also attached a log file (without verbose hibernate output) for a<br>
&gt;&gt;&gt; successful test run.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Dan Nathanson<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Fri, Apr 1, 2011 at 2:42 AM, Mauricio Salatino &lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; Hi Dan,<br>
&gt;&gt;&gt;&gt; That&#39;s strange, it could be related to a non updated version of the fluent<br>
&gt;&gt;&gt;&gt; API.<br>
&gt;&gt;&gt;&gt; Send us the logs with warn verbosity and we will definitely take a look on<br>
&gt;&gt;&gt;&gt; it.<br>
&gt;&gt;&gt;&gt; If the workflow don&#39;t continue after a work item completion could be related<br>
&gt;&gt;&gt;&gt; with some kind of threading problem.<br>
&gt;&gt;&gt;&gt; What kind of work item are you implementing? Can you share some test with us<br>
&gt;&gt;&gt;&gt; that shows the desired behavior?<br>
&gt;&gt;&gt;&gt; Greetings.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Thu, Mar 31, 2011 at 4:32 PM, Dan Nathanson &lt;<a href="mailto:dan@ddnconsulting.com">dan@ddnconsulting.com</a>&gt;<br>
&gt;&gt;&gt;&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Hi,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;m seeing some odd behavior in some of my test cases.  And it only<br>
&gt;&gt;&gt;&gt;&gt; seems to happen to one guy. And he&#39;s done fresh checkouts of the code,<br>
&gt;&gt;&gt;&gt;&gt; blown away his local M2 repository and verified installed software<br>
&gt;&gt;&gt;&gt;&gt; like OS and Java is same as everyone else&#39;s.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I have some test cases that build up some simple flows programatically<br>
&gt;&gt;&gt;&gt;&gt; using fluent API.  Very simple (start --&gt; work item --&gt; work item --&gt;<br>
&gt;&gt;&gt;&gt;&gt; state --&gt; end).  I am using Drools Flow 5.1.1 with JPA (in-memory H2<br>
&gt;&gt;&gt;&gt;&gt; DB for unit tests).  Intermittently, after completing a work item, the<br>
&gt;&gt;&gt;&gt;&gt; flow doesn&#39;t continue.  Logging in a process event listener shows that<br>
&gt;&gt;&gt;&gt;&gt; the the work item node is never left, although I can see in the logs<br>
&gt;&gt;&gt;&gt;&gt; that the work item is deleted from DB.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; There are no errors, warning or info level messages coming out of<br>
&gt;&gt;&gt;&gt;&gt; Drools or Hibernate prior to the failure.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; It only happens to one guy, but he can reproduce the problem<br>
&gt;&gt;&gt;&gt;&gt; regularly, although it moves around in different test cases and<br>
&gt;&gt;&gt;&gt;&gt; different points in the flows.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Anyone ever seen this behavior before?  Any possible explanations?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; I&#39;d attach the log file, but it is huge since I&#39;ve got hibernate<br>
&gt;&gt;&gt;&gt;&gt; logging set very verbose.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Dan Nathanson<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; rules-users mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;  - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a><br>
&gt;&gt;&gt;&gt;  - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>
&gt;&gt;&gt;&gt;  - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;  - Salatino &quot;Salaboy&quot; Mauricio -<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>