Skip to main content

Hi Guys,


We are trying to update the Priority of work list item using below source code, but nothing happened.


///////////////////


SourceCode.Workflow.Client.Connection oConn = new SourceCode.Workflow.Client.Connection();


oConn.Open("RC1MSVS0024");


 


//738_57 is serial number of user worklist item


SourceCode.Workflow.Client.WorklistItem oWli = oConn.OpenWorklistItem("738_57");


 


oWli.ActivityInstanceDestination.Priority = 2;


oWli.Release();


oConn.Close();


 


//////////////////////////


 


Please any help ?


 


Thanks


Jayaprakash N M

I haven't try, but I think you need to use the oWli.Update() method.


To use the Update() method you need admin right at the level process.


Are you sure you need to update the priority at the WLi level? and dynamically ?


Before you are done, you need to execute the Update() method on the activity.


This does not work in current version of K2 blackpearl,
You can only update priority during design time, it cannot be updated during run time. I had similar problem and opened a ticket with k2. They advised me that this feature is requested in next versions,


Reply