4 Replies Latest reply on Mar 6, 2006 2:32 AM by camunda

    saveLog in 3.1 is gone?

    camunda

      The saveProcess Method on the GraphSession is deprecated in jbpm 3.1 and the new jbpmContext.save() method does not save dependent logs.

      Also logs for new started sub-processes are not saved correctly.

      Is there a trick? Or is it a bug?

        • 1. Re: saveLog in 3.1 is gone?
          tom.baeyens

          the GraphSession.saveProcessInstance(pi) method invocation should be replaced with jbpmContext.save(pi)

          let us know if that doesn't help.

          regards, tom.

          • 2. Re: saveLog in 3.1 is gone?
            camunda

            Hi Tom,

            sorry for the bad question-design ;-)

            My problem is: The old method "saveProcessInstance" calles saveTimer & saveLogs.

            The new "save" does neither the one nor the other. The timer seems to be saved by Hibernate azutomaticaly, but the logs aren't correctly saved in the situation a process starts a new sub-process (the logs for the sub-process are missing then).

            • 3. Re: saveLog in 3.1 is gone?
              tom.baeyens

              the new save is more generic. it executes a list of SaveOperation's. there is a default list of save operations that can be overwritten in the jbpm.cfg.xml

              saving the logs and saving the times are now SaveOperation's

              regards, tom.

              • 4. Re: saveLog in 3.1 is gone?
                camunda

                Hi Tim.

                Thanks for the quick answer. Do you have a link in the doku or a example for me, because I haven't found the correct syntax myself :-(

                But I have found some new nice features for configuring persistence, good work :-)

                Regards
                Bernd