5 Replies Latest reply on Oct 12, 2011 10:50 AM by salaboy21

    Reopen ended process and copy of a process

    diduch

      How to reopen ended process and how can I get a complete copy of a processinstance, I mean.. The processinstance with all its information, relations, tasks, content, eventtypes, processinstancelog, processinstanceinfo, potowners. I want to get a copy of a process ended with a new number of process and this last should to be reopen, for this I want to change the status of the last task completed and convert this task in a reserved task and the user can continue with the sequence of the process.

       

      Thanks for your help..

        • 1. Re: Reopen ended process and copy of a process
          calca

          Hi, when a process is finished, its runtime data is deleted from session. You can use audit data to check information about running/ended processes (http://docs.jboss.org/jbpm/v5.1/userguide/ch07.html#d0e2836), and also query task server (which does not delete completed tasks).

           

          Why would you need to "reopen" a process?

           

          Demian

          • 2. Re: Reopen ended process and copy of a process
            diduch

            Thanks for your help..

             

            I need to reopen a process, because Sometimes the users can complete a task with wrong information, the users can have a mistakes when they entry data, and for that information the process goes to an end node and the process is finished, but I want to give to the users the choice that they can to reopen a process, if dont exist this option they have to start a new process again.

            • 3. Re: Reopen ended process and copy of a process
              salaboy21

              I think that creating a small process definition to fix badly closed ones could be one option. I mean, if a process ends and some information was entered wrong, you can decide to instantiate a new process (with another definition) to fix that wrong completed task. At least from a business level perspective it makes more sense that reopen a business process.

              • 4. Re: Reopen ended process and copy of a process
                diduch

                Thanks..

                 

                In that case, I can build another process definition with the same information than the closed process, and change the status of the last task in Reserved, in this way the user can entry the new information and continue with the normally execution since last completed task.

                 

                In the wrong information, is for example when the user task form have a Yes or No question, if the users choose Yes option, the process continue but  if they choose No option, the process finished. They can have a mistakes when they choose the option, and sometimes the process is too large and they have to start again the complete process....

                • 5. Re: Reopen ended process and copy of a process
                  salaboy21

                  Diduch,

                  I didn't suggest to create a similar process. What you can do is just create another process that uses the business information and allow an user to correct some bits, but In no way I was suggesting to create another duplicated process definition from your original one.

                  Cheers