2013-09-05 57 views

回答

0

cDevWorkflow API非常強大,它完全支持您的工作流任務。藉助deInstance類,您將獲得從實例創建的所有任務的列表。下面的代碼可能會幫助你:

 string connectString = ""; //get your workflow db connection string 
     string currentUserId = ""; //get current userid 
     string instanceId = ""; //get instance id to get the tasks 

     deRuntime oRuntime = new deRuntime(connectString, currentUserId); 
     deInstance oInstance = oRuntime.getInstance(instanceId); 
     DataTable oTasks = oInstance.getTasks(); 

     //from the datatable oTasks you can see the status of each task 

希望這有助於..!

相關問題