Hi,
I am trying to create a new workflow as given below.
Assuming there are 2 activities ActA, ActB
when the process ProcA is in ActB, I am creating another similar Process and using the code given below to create and jump to the activity.
The problem I am having is when the process ProcB is created, I see the worklist item for the newly created item is shown in ActA instead of ActB.
from the management console,I see that there are 3 worklist Items
1.ProcA with activity ActB(right)
2.ProcB with Activity ActA(wrong)
3.ProcB with Activity ActB(right)
Should I write code to make the WorklistItem also to move to appropriate activity so that in the above case the worklistItem 2( wrong WL item) does not appear in the worklist?
Code
------------------
K2Manager MGR = new SourceCode.K2Mng.K2Manager();
MGR.Login(new K2().ServerName,K2.PORT,K2.ADMIN_CONN_STR);
//populate the hashtable with data
Hashtable parms = new Hashtable();
parms.Add("oms_originator", System.Web.HttpContext.Current.User.Identity.Name);
// start a process instance
SourceCode.K2ROM.ProcessInstance p = new K2().StartProcessWithArgs(PROC_TYPE_ID,parms);
//goto the activity as per K2_workflow_task
MGR.GotoActivity(p.ID, activityName);
Would appreciate a quick response.
Regards
Keshav
Jumping to activity programatically
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
