Skip to main content
Nintex Community Menu Bar

dynamically deleting a process instance

  • August 21, 2007
  • 1 reply
  • 8 views

Forum|alt.badge.img+3

My flow includes the option to re submit an infopath form. The Re submit button creates a new process instance with the updated data fields. Is it possible to delete the original submission's process instance? I only need the newest process instance to be available.


Thanks.

1 reply

Forum|alt.badge.img+11
  • Nintex Employee
  • August 23, 2007

Hi mbotella,


I'm not sure exactly where you want to run the 'Delete' code from but you'll have to make use of the K2Mng object model.  The important thing is that you would not be able to delete a process instance from within itself.  You'll have to delete the old process instance from within the new process instance.  Have a look at the Help documentation on the K2Mng object model.


Hope this makes sense,


Ockert