End the workflow at any time - K2 for SharePoint

  • 17 May 2018
  • 1 reply
  • 1 view

Hi All,

 

I have a requirement where there is a workflow which has lots of approvals and mail activivties. The client wants a requirement like he wants to end the workflow at the change of status column in SharePoint = Closed. I couldn't find a way to write code in K2 for Sharepoint which can be done using that.

 

Could any one suggest a better way to do that?

 

Note: Worfklows are created using K2 for SharePoint

 

Thanks in Advance!

Ramya


1 reply

Userlevel 5
Badge +16

Hi Ramya,


 


What version of K2 are you using?


 


I think you can use the Activity smartobject. this smartobject is located under System > Management > Workflows > SmartObjects > Activity.


You can call GoToActivity method to redirect the process instance to the End activity

Reply