Delete Process Instances Programmatically

  • 29 June 2006
  • 2 replies
  • 4 views

Badge +1
Hi,

We have implemented a Travel Request approval workflow system, and the users are asking for a feature to 'withdraw' a request that is pending approval. In short, this is same as the 'Delete' process feature in K2.net Service Manager, but we need it to be available to individual users rather than an administrator.

Can someone point me to sample code on how we can achieve this programmatically?

Thanks in advance,
Benedict

2 replies

Badge +11
Have a look in the Help file. Specifically at the K2Mng.K2Manager.DeleteProcessInstance method.

Hope this helps,
Ockert
Badge +13
I was surprised to find that there is no built in recall feature although our requirement would force us to code something custom to restrict which activity the user could recall.

Sometimes you don't want the user to be able to recall if it's gone to farr into the process, and sometimes you need to execute some code to clean up external databases if the user recalled.

Reply