4 Replies Latest reply on Nov 22, 2005 7:17 AM by yilativs

    Undeploy ProcessArchive

    gwittwer

      Hello

      Isn't it possible to undeploy a processarchive with the jBPM Core?
      I just found and use the deploy servlet, so how to undeploy the deployed processes??

      Regards
      Gerhard

        • 1. Re: Undeploy ProcessArchive
          kukeltje

          No, this is not possible (yet), look at the Jira to see if there is an enhancement request for it. If there is, vote for it, otherwise create a new issue.

          • 2. Re: Undeploy ProcessArchive
            gwittwer

            I searched the jBPM core and found a method in the graphSession:

            graphSession.deleteProcessDefinition(this.processDefinitionId);


            It's like an undeploy? The process doesn't exist after the call of this method.

            Or is this method not yet finished (just do a part of undeploying)?

            Gerhard

            • 3. Re: Undeploy ProcessArchive

              This does remove the process defintion. However, if there are any process instances still active, you'll have decide what you want to do. If you're just trying to clean things up for development purposes you can call deleteProcessInstance and removeTaskInstance. This will clear things up. Though I typically just rebuild the db and redeploy using the ant tasks.

              • 4. Re: Undeploy ProcessArchive
                yilativs

                 

                "kukeltje" wrote:
                No, this is not possible (yet), look at the Jira to see if there is an enhancement request for it. If there is, vote for it, otherwise create a new issue.


                About what version of jbpm you are talking?
                We are already patched it in jbpm 2.0 (it was about a year ago)

                Regards,
                Vitaliy