Dear ,
I biult a very simple Workflow, with 4 activities, on one of the activities i have a decision to make.
The problem is that on the Client even level i set 2 Action "Approve ", "Reject".
The problem is that when i'm trying to access the actions from my application using the following code:
objK2WorkflowConn.Open(setup);
SourceCode.Workflow.Client.WorklistItem oWLItem = objK2WorkflowConn.OpenWorklistItem(strSN);
if (oWLItem != null)
{
foreach (Action act in oWLItem.Actions)
{
if (act.Name == ddlApproval.SelectedText)
{
act.Execute();
break;
}
}
}
else
{
throw( new Exception("AN Error has Occured"));
}
oWLItem.Actions.count = 0
I added the actions using the wizzard in visual studio.
What should i do in order to access the actions and execute them.
Thanks a lot