Hi All,
Consider this scenario :
I created a process where I have one client event which assigns a task to a user(A).
In .NET , using K2ROM dll, I opened the worklist for that user(A). Then I opened the worklistitem for that user(A) and redirected the worklistitem to another user(B).
Then I opened the worklist for B. And when i tried to finish the worklistitem , i got the error : "Value cannot be null.Parameter name: replacement".
What I also found out is that , this error comes when we redirect a worklist to another user from Service Manager also.
I have broken my head over this.
The following is the code :
Connection
oK2Connection = new Connection();Worklist oWorkList;
oK2Connection.Open(
"server", "[;];Authentication=External;User="A";Password=");oWorkList = oK2Connection.OpenWorklist(
"ASP");foreach (SourceCode.K2ROM.WorklistItem oWorkListItem in oWorkList)
{
if (oWorkListItem.Status == WorklistStatus.Available)
oWorkListItem.Finish(true);
if (oWorkListItem.Status == WorklistStatus.Available)
{
oWorkListItem.Redirect(
"B");oWorkListItem.Update();
}
I would also like to add that while executing oWorkListItem.Update(); , I am getting the error .
The bottomline is after redirecting to another user, the error comes.
Maybe I am missing something.
Please guide.
Thanks and Regards