Hi!
How do I get the workflow tasks associated with a specific workflow instance? Or can I get the workflow tasks directly from the list item itself?
WorkflowServicesManager workflowServiceManager = new WorkflowServicesManager(web);
WorkflowInstanceService workflowInstanceService = workflowServiceManager.GetWorkflowInstanceService();
WorkflowInstanceCollection workflowInstances = workflowInstanceService.EnumerateInstancesForListItem(item.ParentList.ID, item.ID);
// TODO: Get tasks...
Thanks,
Kiram