3 Replies Latest reply on Jun 23, 2006 1:31 PM by Chris OBrien

    redeploying processDef problem

    Berry Crawford Newbie

      I am deploying processing programatically:

      try/catch removed for clarity:

      JbpmConfiguration jbpmConfiguration;
      jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
      ProcessDefinition procDef = ProcessDefinition.parseXmlResource(mapName);
      JbpmContext context = jbpmConfiguration.createJbpmContext();
      context.deployProcessDefinition(procDef);
      context.close();

      My problem is that the newest version of the processDefinition in the database has old node names in the JBPM database. Is this a known bug? Am I redeploying incorrectly?

        • 1. Re: redeploying processDef problem
          Berry Crawford Newbie

          For clarification, what I mean is lets say one of my nodes looks like this:








          So version 1 of this definition would have node name GenerateETOWorkOrder in the database.

          Then lets say I edit the WF XML and repeploy like this:








          If I look in the database, that node should be named NEW_NODE_NAME in version 2, but its still named GenerateETOWorkOrder as it was in the previous version.

          Any ideas?

          • 2. Re: redeploying processDef problem
            Berry Crawford Newbie

            For clarification, what I mean is lets say one of my nodes looks like this:

            <state name="GenerateETOWorkOrder">
             <event type="node-enter">
             <action class="org.openitsm.sr.workflow.WorkFlowActionHandler"/>
             </event>
             <transition to="end"/>
             </state>


            So version 1 of this definition would have node name GenerateETOWorkOrder in the database.

            Then lets say I edit the WF XML and repeploy like this:

            <state name="NEW_NODE_NAME">
             <event type="node-enter">
             <action class="org.openitsm.sr.workflow.WorkFlowActionHandler"/>
             </event>
             <transition to="end"/>
             </state>


            If I look in the database, that node should be named NEW_NODE_NAME in version 2, but its still named GenerateETOWorkOrder as it was in the previous version.

            Any ideas?


            • 3. Re: redeploying processDef problem
              Chris OBrien Novice

               

              ProcessDefinition procDef = ProcessDefinition.parseXmlResource(mapName);


              Sounds like that mapName is being incorrectly specified, or is pointing to the old xml?