0 Replies Latest reply on Aug 19, 2013 7:33 AM by daniemarques

    Task persisted without potowners

    daniemarques

      Hi

       

      I have a JBPM process that has a very strange behaviour.

       

      "Sometimes" when a human task is persisted in the database the potowners aren't persisted.

       

      If another instance of the process and another task is created, the previous task, the one that failed to be created with the potowners, has now the potowners in the database, and then I can resume the previous process.

       

      Anyone had a similar problem? Did you find any solution?

       

      I have no clues for the solution. Can this be a cache problem?

       

      This is part of my persistence.xml file:

       

      {code:xml}

      <persistence-unit name="org.jbpm.task" transaction-type="JTA">

              <jta-data-source>java:/WORKFLOWDS</jta-data-source>

              <mapping-file>META-INF/Taskorm.xml</mapping-file>

              <class>org.jbpm.task.Attachment</class>

              <class>org.jbpm.task.Content</class>

              <class>org.jbpm.task.BooleanExpression</class>

              <class>org.jbpm.task.Comment</class>

              <class>org.jbpm.task.Deadline</class>

              <class>org.jbpm.task.Comment</class>

              <class>org.jbpm.task.Deadline</class>

              <class>org.jbpm.task.Delegation</class>

              <class>org.jbpm.task.Escalation</class>

              <class>org.jbpm.task.Group</class>

              <class>org.jbpm.task.I18NText</class>

              <class>org.jbpm.task.Notification</class>

              <class>org.jbpm.task.EmailNotification</class>

              <class>org.jbpm.task.EmailNotificationHeader</class>

              <class>org.jbpm.task.PeopleAssignments</class>

              <class>org.jbpm.task.Reassignment</class>

              <class>org.jbpm.task.Status</class>

              <class>org.jbpm.task.Task</class>

              <class>org.jbpm.task.TaskData</class>

              <class>org.jbpm.task.SubTasksStrategy</class>

              <class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>

              <class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>

              <class>org.jbpm.task.User</class>

              <properties>

                  <property name="hibernate.use_sql_comments" value="true"/>

                  <property name="jboss.entity.manager.factory.jndi.name" value="java:/persistence/org.jbpm.task"/>

                  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>

                  <property name="hibernate.max_fetch_depth" value="3"/>

                  <property name="hibernate.show_sql" value="true"/>

                  <property name="hibernate.jndi.class" value="org.jboss.naming.NamingContextFactory"/>

                  <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled"/>

                  <property name="hibernate.ejb.naming_strategy" value="dummy.workflow.business.SesiJBPMNamingStrategy"/>

                  <property name="hibernate.connection.autocommit" value="false"/>

              </properties>

          </persistence-unit>

       

      <persistence-unit name="org.jbpm.session" transaction-type="JTA">

              <jta-data-source>java:/WORKFLOWDS</jta-data-source>

              <mapping-file>META-INF/JBPMorm.xml</mapping-file>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>

              <class>org.jbpm.persistence.processinstance.ProcessInstanceEventInfo</class>

              <class>org.drools.persistence.info.SessionInfo</class>

              <class>org.drools.persistence.info.WorkItemInfo</class>

              <properties>

                  <property name="jboss.entity.manager.factory.jndi.name" value="java:/persistence/org.jbpm.session"/>

                  <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>

                  <property name="hibernate.connection.autocommit" value="false"/>

                  <property name="hibernate.connection.isolation" value="2"/>

                  <property name="hibernate.max_fetch_depth" value="3"/>

                  <property name="hibernate.show_sql" value="true"/>

                  <property name="hibernate.use_sql_comments" value="true"/>

                  <property name="hibernate.jndi.class" value="org.jboss.naming.NamingContextFactory"/>

                  <property name="jboss.as.jpa.providerModule" value="hibernate3-bundled"/>

       

       

                  <property name="hibernate.ejb.naming_strategy" value="dummy.workflow.business.SesiJBPMNamingStrategy"/>

       

       

       

       

              </properties>

          </persistence-unit>

       

      {code}