Skip to main content
Nintex Community Menu Bar

Activity to Activity

  • July 7, 2009
  • 2 replies
  • 12 views

amankazi1
Forum|alt.badge.img+6

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 

2 replies

Forum|alt.badge.img+6
  • July 7, 2009

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


amankazi1
Forum|alt.badge.img+6
  • Author
  • July 8, 2009

Greeting Jean,

Man, you did it again. I got it

Thanks again