4 Replies Latest reply on May 4, 2006 2:40 AM by the_dude

    ProcessInstance.save not working without closing JbpmContext

      I am defining jbpmContext as:
      jbpmConfiguration = JbpmConfiguration.parseResource("jbpm/jbpm.cfg.xml");
      jbpmContext = jbpmConfiguration.createJbpmContext();
      processInstance = jbpmContext.newProcessInstance(name);

      and then saving as
      jbpmContext.save(processInstance);

      But if I don't close the context, I don't see my changes saved in the database.
      Any ideas?

      Thanks in advance.

      PS: I know you can create process instance with update
      ProcessInstance pi = jbpmContext.newProcessInstanceForUpdate(...)
      but I don't need this because I am calling save explicitly.