No Activity Instances available for this Process Instance

  • 28 March 2007
  • 1 reply
  • 0 views

Badge
Hello,
I have K2.NET 2003 with service pack and Visual Studio 2005.
I am started to working with K2. I made easy WFL for testing - Manager approval (viz. attachment ) with four activities (including Start). Made a client Event and set line rules (just for colored lines in WFL).

Then I compiled project and export it to the server. I setted group rules in the Service Manager for everyone.

Than I made a WinForm application that started a new instance.
I wrote code:

string message = meMessage.Text;
string userName = teUserName.Text;
SourceCode.K2ROM.Connection k2con = new SourceCode.K2ROM.Connection();
try
{
k2con.Open("k2dev");
SourceCode.K2ROM.ProcessInstance k2Proc;
k2Proc = k2con.CreateProcessInstance (@"TESTINGTest_Michal_ManagerApproval");
k2Proc.DataFields["Message"].Value = message;
k2Proc.DataFields["UserName"].Value = userName;
k2Proc.Folio = teFolio.Text;
k2con.StartProcessInstance(k2Proc,true);
}catch(Exception ex)
{
errorLabel.Text = ex.Message;
}
finally
{
k2con.Close();
}


After executing and debuging was all OK. But in the process overview in the report I got following lines:

270320071158i57 3/27/2007 10:33:53 PM FPSEAkuritka Error
270320071158i57 3/27/2007 10:32:36 PM FPSEAkuritka Error

When I am clicked on this instances, page returns me this error message:

There are currently no Activity Instances available for this Process Instance

I want to work with workflow using K2ROM, but I could not work with worklists, becouse they are empty :(

Have anybody Idea?

thx Michal K.

1 reply

Badge +13
I was informed not to use Everyone but Domain Users instead.

You need something like this in the Client Event code to make it appear on the user's worklist.

strURL = strURL.Replace("{SERIALNO}",K2.SerialNumber)
K2.AddWorklist("ASP",System.Web.HttpUtility.UrlPathEncode(strURL))

Reply