<span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Hello,<div><br></div><div>I tried to setup a sample standalone &quot;hello&quot; application that attempts to run a process involving human tasks. </div>
<div>Main components were:</div><div>- mina  task  server (as documentation hinted, based on a sample),</div><div>- standalone &quot;hello sort of&quot; 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 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 <font face="Monaco" size="3" style="font: normal normal normal 11px/normal Monaco; ">System.</font><font face="Monaco" size="3" color="#0000c0" style="font: normal normal normal 11px/normal Monaco; color: rgb(0, 0, 192); ">in</font><font face="Monaco" size="3" style="font: normal normal normal 11px/normal Monaco; ">.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 &quot;em&quot; which when set returned null for the following assignment if  usertransaction were committed: </font></div>
<div><font face="Monaco" size="3" style="font: normal normal normal 11px/normal Monaco; ">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 &quot;GetCompletedTaskResponseHandler.execute()&quot; begins handling the completed message. Unfortunately this call fails with :</div>
<div><span class="Apple-tab-span" style="white-space: pre; ">                </span>&quot; no transaction started on this thread&quot;</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 &quot;NioProcessor&quot; thread. At this point I got stuck.  If there is some guideance on  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>