<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: In memory TaskClient without Mina or JMS
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/frankee787">Franklin Antony</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/617173#617173">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>First of all, thanks a lot for all the help especially Daniele Ulrich for the patched files. After 10-12 hours night out slogging, following are my findings.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Only the patched files(jbpm-human-task-jpa-5.0.0-patched.jar) work with JTA and the default (jbpm-human-task-5.0.0.jar) doesnt work saying <strong>java.lang.IllegalStateException: A JTA EntityManager cannot use getTransaction()</strong></p><p><strong><br/></strong></p><p>Hence I would humbly as the authors of jBPM5 to reconsider the option of making the TaskServiceSession support JTA transactions as well.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I have been able to support the following usecase with the <strong>Bitronix JTA implementation.</strong></p><p><strong><br/></strong></p><p>The main serivce class is MainService</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code jive-java"><font color="navy"><b>import</b></font> org.springframework.context.support.ClassPathXmlApplicationContext;
&#160;
<font color="navy"><b>public</b></font> <font color="navy"><b>class</b></font> MainService <font color="navy"><b>implements</b></font> IMainService <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IBusinessProcessService jbpmService;
IBusinessProcessService ourService;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> IBusinessProcessService getJbpmService() <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>return</b></font> jbpmService;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> <font color="navy"><b>void</b></font> setJbpmService(IBusinessProcessService jbpmService) <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.jbpmService = jbpmService;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> IBusinessProcessService getOurService() <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>return</b></font> ourService;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> <font color="navy"><b>void</b></font> setOurService(IBusinessProcessService ourService) <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.ourService = ourService;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> <font color="navy"><b>static</b></font> <font color="navy"><b>void</b></font> main(String[] args) 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ClassPathXmlApplicationContext cp = <font color="navy"><b>new</b></font> ClassPathXmlApplicationContext(<font color="navy"><b>new</b></font> String[]<font color="navy">{</font><font color="red">"jBPM-layer.xml"</font>,<font color="red">"dao-layer.xml"</font><font color="navy">}</font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; IMainService mainService = (IMainService)cp.getBean(<font color="red">"mainService"</font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; mainService.doThis();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>public</b></font> <font color="navy"><b>void</b></font> doThis() 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getOurService().createTask(<font color="navy"><b>null</b></font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getJbpmService().createTask(<font color="navy"><b>null</b></font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getOurService().createTask(<font color="navy"><b>null</b></font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; getJbpmService().createTask(<font color="navy"><b>null</b></font>);
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>if</b></font>(1==1)
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">{</font>
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy"><b>throw</b></font> <font color="navy"><b>new</b></font> RuntimeException();
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <font color="navy">}</font>
&#160;
<font color="navy">}</font>
&#160;
</code></pre><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>As can be seen the MainService is something like a fa&#231;ade which calls two other service. One creates a record in the application database(getOurService()) and the other (getJbpmService()) creates a task/user inside the jBPM database. I have been trying to transactionalize this for quite sometime but in vain. However now its possible , but again only with the patched files.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This is ourService TXNJBPMServiceImp. Although the class name says JBPM, it has nothing to do with jBPM . Just a copy paste of a class &#8230;was so&#160; tired to give even a proper name. So, basically this is our application service which inserts a dummy testUser record in our application database.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import java.util.List;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import javax.persistence.EntityManager;</p><p>import javax.persistence.EntityManagerFactory;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import org.apache.log4j.Logger;</p><p>import org.springframework.context.support.ClassPathXmlApplicationContext;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>public class TXNJBPMServiceImp implements IBusinessProcessService{</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; private static Logger log = Logger.getLogger(TXNJBPMServiceImp.class); </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; private EntityManagerFactory entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public EntityManagerFactory getEntityManagerFactory() {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.entityManagerFactory = entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160; public static void main(String[] args) </p><p>&#160;&#160;&#160; {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>}</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public BPMTaskResponse createTask(Task task) {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.println("Creating...Task!!");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; EntityManager em = getEntityManagerFactory().createEntityManager();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TestUser testUser = new TestUser();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; testUser.setName("TXNJBPMServiceImp");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //em.getTransaction().begin();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; em.persist(testUser);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; //em.getTransaction().commit();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.println("Creating...Task DONE!!");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return null;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Next comes the actual jBPM service which now just creates a user in the jBPM database. As can be seen, it does nothing great. It just hacks into jBPM and gets a taskSession and creates a user. You can use the same taskSession and create Tasks, claim them, complete them etc.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import java.util.List;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import javax.persistence.EntityManagerFactory;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>import org.apache.log4j.Logger;</p><p>import org.drools.SystemEventListenerFactory;</p><p>import org.jbpm.task.service.TaskService;</p><p>import org.jbpm.task.service.TaskServiceSession;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>public class FinalTXNJBPMServiceImp implements IBusinessProcessService{</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; private static Logger log = Logger.getLogger(FinalTXNJBPMServiceImp.class); </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160; </p><p>&#160;&#160;&#160; public TaskServiceSession getTaskSession()</p><p>&#160;&#160;&#160; {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return getTaskService().createSession();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public TaskService getTaskService() {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return new TaskService(getEntityManagerFactory(), SystemEventListenerFactory.getSystemEventListener());</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; private EntityManagerFactory entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public EntityManagerFactory getEntityManagerFactory() {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public void setEntityManagerFactory(EntityManagerFactory entityManagerFactory) {</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; this.entityManagerFactory = entityManagerFactory;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160; public static void main(String[] args) </p><p>&#160;&#160;&#160; {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; @Override</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; public BPMTaskResponse createTask(Task task) {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TaskService taskService = new TaskService(getEntityManagerFactory(), SystemEventListenerFactory.getSystemEventListener());</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; TaskServiceSession taskSession = taskService.createSession();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; org.jbpm.task.User aUser = new org.jbpm.task.User();</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; aUser.setId("DELNOW2");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; taskSession.addUser(aUser);</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; System.out.println("Creating...Task DONE!!");</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; return null;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Almost there. Now the spring configuration file.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;?</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">xml</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">version</span><span style="color: black;">=</span><em style="color: #2a00ff;">"1.0"</em> <span style="color: #7f007f;">encoding</span><span style="color: black;">=</span><em style="color: #2a00ff;">"UTF-8"</em><span style="color: teal;">?&gt;</span></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">beans</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">xmlns</span><span style="color: black;">=</span><em style="color: #2a00ff;"><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span>"</span></em></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';">&#160;&#160;&#160;&#160;&#160; <span style="color: #7f007f;">xmlns:xsi</span><span style="color: black;">=</span><em style="color: #2a00ff;"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></em></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';">&#160;&#160;&#160;&#160;&#160; <span style="color: #7f007f;">xmlns:context</span><span style="color: black;">=</span><em style="color: #2a00ff;"><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a><span>"</span></em></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';">&#160;&#160;&#160;&#160;&#160; <span style="color: #7f007f;">xsi:schemaLocation</span><span style="color: black;">=</span><em style="color: #2a00ff;"><span>"</span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans" target="_blank">http://www.springframework.org/schema/beans</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/beans/spring-beans-3.0.xsd" target="_blank">http://www.springframework.org/schema/beans/spring-beans-3.0.xsd</a></em></span></p><p style="margin-bottom: .0001pt;"><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context" target="_blank">http://www.springframework.org/schema/context</a><span> </span><a class="jive-link-external-small" href="http://www.springframework.org/schema/context/spring-context.xsd" target="_blank">http://www.springframework.org/schema/context/spring-context.xsd</a><span>"</span></em><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">context:property-placeholder</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">location</span><span style="color: black;">=</span><em style="color: #2a00ff;">"classpath:jdbc.properties"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"mainServiceRef"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ae.emaratech.em.bpm.jbpm.MainService"</em> <span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"jbpmService"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"finalbusinessProcessServiceRef"</em><span style="color: teal;">&gt;&lt;/</span><span style="color: #3f7f7f;">property</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourService"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"businessProcessServiceRef"</em><span style="color: teal;">&gt;&lt;/</span><span style="color: #3f7f7f;">property</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"mainService"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionManager"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JtaTransactionManager"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionAttributes"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"*"</em><span style="color: teal;">&gt;</span><span style="color: black;">PROPAGATION_REQUIRED, -Exception</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"target"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"mainServiceRef"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">context:annotation-config</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">/&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JtaTransactionManager"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.transaction.jta.JtaTransactionManager"</em> <span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionManager"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"BitronixTransactionManager"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"userTransaction"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"BitronixTransactionManager"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"btmConfig"</em> <span style="color: #7f007f;">factory-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"getConfiguration"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"bitronix.tm.TransactionManagerServices"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"serverId"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"spring-btm"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f5fbf;">&lt;!-- create BTM transaction manager --&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"BitronixTransactionManager"</em>&#160; <span style="color: #7f007f;">factory-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"getTransactionManager"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"bitronix.tm.TransactionManagerServices"</em> <span style="color: #7f007f;">depends-on</span><span style="color: black;">=</span><em style="color: #2a00ff;">"btmConfig"</em> <span style="color: #7f007f;">destroy-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"shutdown"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"finalbusinessProcessService"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionManager"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JtaTransactionManager"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionAttributes"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"*"</em><span style="color: teal;">&gt;</span><span style="color: black;">PROPAGATION_REQUIRED, -Exception</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"target"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"finalbusinessProcessServiceRef"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"finalbusinessProcessServiceRef"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ae.emaratech.em.bpm.jbpm.FinalTXNJBPMServiceImp"</em> <span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"entityManagerFactory"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"entityManagerFactory"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"businessProcessService"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.transaction.interceptor.TransactionProxyFactoryBean"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionManager"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JtaTransactionManager"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"transactionAttributes"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"*"</em><span style="color: teal;">&gt;</span><span style="color: black;">PROPAGATION_REQUIRED, -Exception</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"target"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"businessProcessServiceRef"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"businessProcessServiceRef"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ae.emaratech.em.bpm.jbpm.TXNJBPMServiceImp"</em> <span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"entityManagerFactory"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourEntityManagerFactory"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"userInfoImp"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ae.emaratech.em.bpm.jbpm.DBUserInfoImp"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"userDAO"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"userDAO"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"entityManagerFactory"</em>&#160; <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"</em> <span style="color: #7f007f;">depends-on</span><span style="color: black;">=</span><em style="color: #2a00ff;">"btmConfig"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"persistenceUnitName"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.jbpm.task"</em><span style="color: teal;">&gt;&lt;/</span><span style="color: #3f7f7f;">property</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"dataSource"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"jBPMDataSource"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"persistenceXmlLocation"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"classpath:META-INF/persistence.xml"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"jpaVendorAdapter"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"database"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"MYSQL"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"showSql"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"true"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"databasePlatform"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.hibernate.dialect.MySQL5InnoDBDialect"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span> </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourEntityManagerFactory"</em>&#160; <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"</em> <span style="color: #7f007f;">depends-on</span><span style="color: black;">=</span><em style="color: #2a00ff;">"btmConfig"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"persistenceUnitName"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourUnit"</em><span style="color: teal;">&gt;&lt;/</span><span style="color: #3f7f7f;">property</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"dataSource"</em> <span style="color: #7f007f;">ref</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourDataSource"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"persistenceXmlLocation"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"classpath:META-INF/persistence.xml"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"jpaVendorAdapter"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"database"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"MYSQL"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"showSql"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"true"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"databasePlatform"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.hibernate.dialect.MySQL5InnoDBDialect"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"generateDdl"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"true"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span> </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f5fbf;">&lt;!--&#160; <span style="text-decoration: underline;">Bitronix</span> Transaction Manager embedded configuration --&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"jBPMDataSource"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"bitronix.tm.resource.jdbc.PoolingDataSource"</em></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="color: #7f007f;">init-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"init"</em> <span style="color: #7f007f;">destroy-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"close"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"uniqueName"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"java/jbpmdb"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"maxPoolSize"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"5"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"minPoolSize"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"0"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"driverProperties"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"user"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.jbpm.username}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"password"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.jbpm.password}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"url"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.jbpm.url}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"className"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"allowLocalTransactions"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"false"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"enableJdbc4ConnectionTest"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"true"</em><span style="color: teal;">/&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f5fbf;">&lt;!--&#160; <span style="text-decoration: underline;">Bitronix</span> Transaction Manager embedded configuration --&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">id</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourDataSource"</em> <span style="color: #7f007f;">class</span><span style="color: black;">=</span><em style="color: #2a00ff;">"bitronix.tm.resource.jdbc.PoolingDataSource"</em>&#160; <span style="color: #7f007f;">init-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"init"</em> <span style="color: #7f007f;">destroy-method</span><span style="color: black;">=</span><em style="color: #2a00ff;">"close"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"uniqueName"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"java/emdb"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"minPoolSize"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"0"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"maxPoolSize"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"5"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"driverProperties"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"user"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.emdb.username}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"password"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.emdb.password}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">prop</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">key</span><span style="color: black;">=</span><em style="color: #2a00ff;">"url"</em><span style="color: teal;">&gt;</span><span style="color: black;">${jdbc.emdb.url}</span><span style="color: teal;">&lt;/</span><span style="color: #3f7f7f;">prop</span><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">props</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"className"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"com.mysql.jdbc.jdbc2.optional.MysqlXADataSource"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"allowLocalTransactions"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"false"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"enableJdbc4ConnectionTest"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"true"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">bean</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">beans</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"> </span>&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;"> </span>&#160;</p><p>And finally the persistence.xml file.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;?</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">xml</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">version</span><span style="color: black;">=</span><em style="color: #2a00ff;">"1.0"</em> <span style="color: #7f007f;">encoding</span><span style="color: black;">=</span><em style="color: #2a00ff;">"UTF-8"</em> <span style="color: #7f007f;">standalone</span><span style="color: black;">=</span><em style="color: #2a00ff;">"yes"</em><span style="color: teal;">?&gt;</span></span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">persistence</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">version</span><span style="color: black;">=</span><em style="color: #2a00ff;">"1.0"</em> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #7f007f;">xsi:schemaLocation</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">=</span><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd</a></em></p><p style="margin-bottom: .0001pt;"><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span> </span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" target="_blank">http://java.sun.com/xml/ns/persistence/orm_1_0.xsd</a><span>"</span></em><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #7f007f;">xmlns:orm</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">=</span><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence/orm" target="_blank">http://java.sun.com/xml/ns/persistence/orm</a><span>"</span></em><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #7f007f;">xmlns:xsi</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">=</span><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><span>"</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></em><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #7f007f;">xmlns</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">=</span><em style="color: #2a00ff; font-size: 10.0pt; font-family: 'Courier New';"><span>"</span><a class="jive-link-external-small" href="http://java.sun.com/xml/ns/persistence" target="_blank">http://java.sun.com/xml/ns/persistence</a><span>"</span></em><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f; background: silver;">persistence-unit</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.jbpm.task"</em> <span style="color: #7f007f;">transaction-type</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JTA"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">provider</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.hibernate.ejb.HibernatePersistence</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">provider</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">mapping-file</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">META-INF/orm.xml</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">mapping-file</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Attachment</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Content</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.BooleanExpression</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Comment</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Deadline</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Comment</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Deadline</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Delegation</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Escalation</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Group</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.I18NText</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Notification</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.EmailNotification</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.EmailNotificationHeader</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.PeopleAssignments</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Reassignment</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Status</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.Task</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.TaskData</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.SubTasksStrategy</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.OnAllSubTasksEndParentEndStrategy</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.task.User</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.drools.persistence.info.SessionInfo</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.persistence.processinstance.ProcessInstanceInfo</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.drools.persistence.info.WorkItemInfo</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">exclude-unlisted-classes</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">true</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">exclude-unlisted-classes</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New';"> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">properties</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.connection.autocommit"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"false"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.hbm2ddl.auto"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"validate"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.max_fetch_depth"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"3"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.show_sql"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">""</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.transaction.manager_lookup_class"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.hibernate.transaction.BTMTransactionManagerLookup"</em><span style="color: teal;">/&gt;</span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">properties</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f; background: silver;">persistence-unit</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;"> <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">persistence-unit</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"ourUnit"</em> <span style="color: #7f007f;">transaction-type</span><span style="color: black;">=</span><em style="color: #2a00ff;">"JTA"</em><span style="color: teal;">&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">provider</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">org.hibernate.ejb.HibernatePersistence</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">provider</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">ae.emaratech.em.bpm.jbpm.TestUser</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">class</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">exclude-unlisted-classes</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: black;">true</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">exclude-unlisted-classes</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">properties</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.connection.autocommit"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"false"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.hbm2ddl.auto"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"validate"</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.max_fetch_depth"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"3"</em><span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.show_sql"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">""</em> <span style="color: teal;">/&gt;</span></span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">property</span><span style="font-size: 10.0pt; font-family: 'Courier New';"> <span style="color: #7f007f;">name</span><span style="color: black;">=</span><em style="color: #2a00ff;">"hibernate.transaction.manager_lookup_class"</em> <span style="color: #7f007f;">value</span><span style="color: black;">=</span><em style="color: #2a00ff;">"org.hibernate.transaction.BTMTransactionManagerLookup"</em><span style="color: teal;">/&gt;</span> </span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">properties</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="margin-bottom: .0001pt;">&#160;&#160;&#160; <span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">persistence-unit</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="margin-bottom: .0001pt;"><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&lt;/</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: #3f7f7f;">persistence</span><span style="font-size: 10.0pt; font-family: 'Courier New'; color: teal;">&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Few notes. After changing to the patched jBPM files, the orm.xml throws error while trying to be passed. You will have to change references to &ldquo;Task&#8221; in queries to &ldquo;org.jbpm.task.Task&#8221;. Likewise all other objects such as I18NText, OrganizationalEntity etc.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/617173#617173">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>