[jboss-user] [jBPM] - Why is ProcessInstanceInfo emptied after process ends?

Laura delli Paoli do-not-reply at jboss.com
Wed Jan 2 11:22:26 EST 2013


Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"Why is ProcessInstanceInfo emptied after process ends?"

To view the discussion, visit: https://community.jboss.org/message/787095#787095

--------------------------------------------------------------
Hello everybody, 
I succeeded in filling jbpm5 ProcessInstanceInfo table while process is running, but when process ends the db record is deleted.
When a new process is created, its processId is correctly different from its predecessors.
Is this the expected behaviour? I was expecting to have these data permanently stored in ProcessInstanceInfo  table!

Here's my persistence.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="2.0"
   xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="
         http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence
         http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

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

    <jta-data-source>java:/jdbc/jbpm-ds</jta-data-source>

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

          <class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
          <class>org.jbpm.persistence.processinstance.ProcessInstanceLog</class>
    <class>org.drools.persistence.info.SessionInfo</class>
    <class>org.drools.persistence.info.WorkItemInfo</class>

          <properties>
      <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>   
      <property name="hibernate.hbm2ddl.auto" value="update" />       
    </properties>
  </persistence-unit>

  <persistence-unit name="org.jbpm.task">
          <provider>org.hibernate.ejb.HibernatePersistence</provider>
          <mapping-file>META-INF/Taskorm-JPA2.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.dialect" value="org.hibernate.dialect.MySQLDialect"/>          
      <property name="hibernate.max_fetch_depth" value="3"/>
      <property name="hibernate.hbm2ddl.auto" value="update" />
      <property name="hibernate.show_sql" value="false" />  
      <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />
      <property name="hibernate.id.new_generator_mappings" value="false" />
    </properties>
  </persistence-unit>
</persistence>

Laura
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787095#787095]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130102/8a6f6d93/attachment-0001.html 


More information about the jboss-user mailing list