4 Replies Latest reply on Oct 30, 2008 6:34 AM by Dmitri Ilyin

    pooled actors not persisted

    Dmitri Ilyin Newbie

      Hi,

      i implemeted assignement handler and tryed to set pooled actors to my task with setPooledActors method in it.

      After the process is moved to task-node the task, defind in this node is created and persisted, but the pooled actors and the relation between this task and pooled actors not. Nothing is written in JBPM_POOLEDACTOR and JBPM_TASKACTORPOOL tables. Ther is no exception or errors, i was switched on the hibernate logging. Also no any insert statements for pooled actors was to recognize in the log.

      What could be wrong? Any idias? Any help is appreciated!

      thanks a lot
      Dmitri

        • 1. Re: pooled actors not persisted
          Ronald van Kuijk Master

          please provide a unittest with embedded processdefinition and actionhandlers (assignmenthandlers) that demonstrate the problem. It's hard guessing what you exactely do and takes to much time to try and reproduce

          • 2. Re: pooled actors not persisted
            Ronald van Kuijk Master

            please provide a unittest with embedded processdefinition and actionhandlers (assignmenthandlers) that demonstrate the problem. It's hard guessing what you exactely do and takes to much time to try and reproduce

            • 3. Re: pooled actors not persisted
              Dmitri Ilyin Newbie

              i could localize the problem but i have no idea how to solve it.

              We run JBoss 4.2.3 with JBPM3.2.3. We use EJB3 (JPA) for Entity Beans and JTA Transactions.
              So, we have only one Hibernate configuration for hole Enterprise App. Hibernate session-factory is configured for JNDI and we use only this JNDI name for resolving the session factory for JPA "persistence-unit" and for "jBPM configuration". Here our jbpm config:
              --------------
              <jbpm-context>















              </jbpm-context>
              --------------
              The need this contruction couse we must work with Entity Beans and JBPM in one transaction. We just start JTA transaction and make changes with Entities and JBPM manipulations within it.

              It seems that in our configuration jBPM calls hibernate JPA implementation for persisting and JPA can not persisitence by reachability that follows that objects must be persisted explicitly. In case of pooled actors jBPM thinks they will be persisted automaticaly by hibernate but JPA don't do it.

              Are there any tricks?

              thanks a lot for any help.
              Dmitri

              • 4. Re: pooled actors not persisted
                Dmitri Ilyin Newbie

                uups.

                the jbpm config was removed from post. Here ist :

                <jbpm-context>
                 <service name="persistence">
                 <factory>
                 <bean class="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory">
                 <field name="sessionFactoryJndiName">
                 <string value="EjfinSessionFactory" />
                 </field>
                 </bean>
                 </factory>
                 </service>
                <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
                <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
                <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
                <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
                <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
                </jbpm-context>