Hello Everyone, I just try to do the 'Approved' action in the k2 workflow by programming. But im my code, i always get the count of "WorkflowItem.Actions" is zero. Is there anything wrong in my code? here is some code snip:
SourceCode.Workflow.Client.WorklistItem oWli = oConn.OpenWorklistItem(strSN);
if (oWli != null)
{
/// the count of oWli.Actions is 0
foreach (Action oAct in oWli.Actions)
{
ddlActions.Items.Add(oAct.Name);
}
}
At the same time, I can view the 'Approved' and Declined" actions in the worklist (in the k2 workspace). Also the actions can be done.
thanks.