2 Replies Latest reply on Jan 11, 2008 2:52 PM by meet_nagi

    Canceling a processinstance and its taskinstances

    meet_nagi

      Hi,

      I have a reuiqrement to cancel a processinstance and all its open taskinstances. Right now I am using the processInstance.suspend(); method and have the doubt that it is not write.

      Do i need to use the processInstance.end(); method? will it close all the open state taskinstances also?

      When is the iscanceled_ will be populated for a taskinstance?

      I will appreciate if some answers my questions.

      Thanks
      Nag

        • 1. Re: Canceling a processinstance and its taskinstances
          anuragpaliwal

          Hello,

          processInstance.suspend() ,as name suggest, will only suspend the process instance and all its task instances as well i.e isSuspended will gets populated in database.

          processinstance.end() will cancel the process instance as well as all open task instance associated with the process instance. isCanceled gets populated in database for both processinstance and taskinstance.

          • 2. Re: Canceling a processinstance and its taskinstances
            meet_nagi

            Processinstance is not having the iscancelled. I think the processinstance, taskinstance will be ended with a end date and also the issignalling will be populated with 0.

            Any one could you please confirm my undertsnading?