2 Replies Latest reply on Apr 7, 2014 7:40 AM by witik

    jBPM3 How to update an existing process definition using Java?

    witik Newbie

      I'm retrieving a process definition from the database like so:

      /* session is a GraphSession,
      and processDefinitionId is a Id of an existing processDefinition in the database. */
      ProcessDefinition processDefinition = session.getProcessDefinition(processDefinitionId);
      

       

      Then I'm editing the processDefinition (for instance changing the Description)

      processDefinition.setDescription("This is a new description");
      

       

      Finally I want to commit these changes to the database.

      session.deployProcessDefinition(processDefinition); // session is still a GraphSession
      

       

      The problem is that after the deploy, no changes are visible.