Ability to set the Process and Activity Priority at run time
In K2 4.7 I used to be able to change and set the Process and Activity Priority via server event.
if (K2.ProcessInstance.DataFields["Priority"].Value.ToString() == "")
K2.ProcessInstance.DataFields["Priority"].Value = "Medium";
K2.ProcessInstance.Priority = 0;
K2.ProcessInstance.Priority = 1;
K2.ProcessInstance.Priority = 2;
The above code sets the Process Priority based from the UI input. Basically, say, a user changed the Priority from Low to High from the UI. Upon submit of a button, the above server event code will set the Priority accordingly based from the user's input.
I can not find a way to accomplish this in K2 Five. I would like to request that this feature to be added in K2 Five via a SmartObject and thru API since server event code is no longer available in K2 Five.