Question

In a rehosted workflow, if I do have a variable of type of my WorkflowDesigner, and I create a workflow within it (from the UI), how do I get the list of the activities later programmatically?

so the input is the instance of my WorkflowDesigner , the desired output is programmatically get the list of the activities within a workflow in C# of course.

I would take any book, any URl , any hints. I am so confused between ModelService and ModelItem and Sequence and Activity and ActivityBuilder. I have been looking at MSN documentation to no avail.

Thanks.

Was it helpful?

Solution

  Found my answer :

  IEnumerable<ModelItem> xyz = modelService.Find(modelService.Root, typeof(Activity));

http://social.msdn.microsoft.com/Forums/vstudio/en-US/124c9199-c23c-469c-93c5-309f097dc92e/how-to-get-modelitem-collection-from-the-workflowdesigner

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top