Skip to main content

Greetings,

In ASP .Net page user takes the decision and we update the ProcessInstance by calling the ProcessInstance.Update() method

oWorklistItem = objK2Con.OpenWorklistItem([SerialNumber], "ASP", true, true);
oWorklistItem.ProcessInstance.DataFields["sStatus"].Value = "Complete";
oWorklistItem.ProcessInstance.Update();

Line Rule is set to sStatus=Complete; The condition is satisfied for the next activity, but Process is not moving to the next activity. In K2.Net 2003 we had a method called ProcessInstance.Finish() to complete the activity and so the process flow moves to next activity. What is the equivalent method in K2 Blackpearl?

 Thanks,

Aman 

Hi Aman,

you don't need to use the Update() method. (Update method is used for update datafield in a non workitem context and need specific rights).

You need to set your datafield and then you have to execute one of the actions designed (oWorklistItem.Actions["<YOUR ACTION>"].Execute();

HTH


Greeting Jean,

Man, you did it again. I got it

Thanks again


Reply