<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Mark Proctor wrote:
<blockquote cite="mid:4A549039.9030009@codehaus.org" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Can you open a JIRA for this, and we'll make sure it's done in the next
few weeks:<br>
  <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://jira.jboss.org/jira/browse/JBRULES">https://jira.jboss.org/jira/browse/JBRULES</a><br>
</blockquote>
<br>
ooops, sorry this reply was meant for the other task related email.<br>
<br>
Mark<br>
<blockquote cite="mid:4A549039.9030009@codehaus.org" type="cite"><br>
thanks<br>
  <br>
Mark<br>
Bal&aacute;zs Moln&aacute;r wrote:
  <blockquote
 cite="mid:1e29d0ce0907071200n7cfe1d9bib5e8d852bfd8278d@mail.gmail.com"
 type="cite"><span class="Apple-style-span"
 style="font-family: Helvetica; font-size: medium;">Hello,
    <div><br>
    </div>
    <div>I tried to setup a sample standalone "hello" application that
attempts to run a process involving human tasks.&nbsp;</div>
    <div>Main components were:</div>
    <div>- mina &nbsp;task &nbsp;server (as documentation hinted, based on a
sample),</div>
    <div>- standalone "hello sort of" application running a ruleflow
with
some workitems including a human task too,</div>
    <div>- eclipse human task view.</div>
    <div><br>
    </div>
    <div>I setup the persistence - following the documentation, asked
for
a jta datasource and used bitronix transaction manager.</div>
    <div><br>
    </div>
    <div>The&nbsp;application:</div>
    <div>- begins a new user transaction</div>
    <div>- creates a new process instance in a stateful session</div>
    <div>- calls fireallrules</div>
    <div>- waits on the console with&nbsp;<font
 style="font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Monaco" size="3">System.</font><font
 style="font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: rgb(0, 0, 192);"
 color="#0000c0" face="Monaco" size="3">in</font><font
 style="font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Monaco" size="3">.read() (this was already a workaround to avoid
completing the user transaction before the human task is handled in the
HT view, this otherwise caused a nullpointer assigment at line 83 in
JPAWorkItemManager which tried to refer to variable "em" which when set
returned null for the following assignment if &nbsp;usertransaction were
committed:&nbsp;</font></div>
    <div><font
 style="font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; line-height: normal; font-size-adjust: none; font-stretch: normal;"
 face="Monaco" size="3">EntityManager em = (EntityManager)
this.workingMemory.getEnvironment().get( EnvironmentName.ENTITY_MANAGER
);)</font></div>
    <div><br>
    </div>
    <div>... following the above the message reaches the human task
server, and then the task appears in the human task view - so far so
good.</div>
    <div><br>
    </div>
    <div>Then when the task is started and completed in the view, the
"GetCompletedTaskResponseHandler.execute()" begins handling the
completed message. Unfortunately this call fails with :</div>
    <div><span class="Apple-tab-span" style="white-space: pre;"> </span>"&nbsp;no
transaction started on this thread"</div>
    <div><br>
    </div>
    <div>I have then checked the threads in the debug view and looked
like the message response is actually running in the "NioProcessor"
thread. At this point I got stuck. &nbsp;If there is some guideance on &nbsp;how
to correctly setup transaction management and Mina task client/human
task work item handler it would be very much appreciated.</div>
    <div><br>
    </div>
    <div>thank you.</div>
    </span>
    <pre wrap=""><hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
  </blockquote>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>