1 Reply Latest reply on Mar 28, 2006 4:43 PM by aguizar

    Help me, ORA-02291: integrity constraint (PRODIGYO.FK_TIMER_

    afgomez

      Hello, i dont know why this exception is displayed
      ORA-02291: integrity constraint (PRODIGYO.FK_TIMER_PRINST) violated - parent key not found..
      org.jbpm.persistence.JbpmPersistenceException: couldn't commit hibernate session

      This happen when i close the jbpmContext, i need to persist the processinstance like when i used jbpmSession.commitTransaction();

      Thanks for the help.

      Iam using Hibernate 3.1.2
      Jbpm 3.1

        • 1. Re: Help me, ORA-02291: integrity constraint (PRODIGYO.FK_TI
          aguizar

          Yes, but you can have jBPM do it for you. Create or load your process instance using the methods JbpmContext.newProcessInstanceForUpdate() or JbpmContext.loadProcessInstanceForUpdate() and jBPM will register the instance for auto-save.

          By the way, if you create a process instance, signal it in the same transaction and the signal results in the creation of a timer that fires before the transaction commits, you will still get the constraint violation even if you use the above methods. In this case, you will have to create the process instance, commit the transaction and then reload the process instance in a new transaction before sending a signal() to it.