none
How to get ModelItem collection from the WorkflowDesigner RRS feed

  • Question

  • I am using the Rehosted Workflow Designer.

    I want the collection of all the ModelItems present in the Workflow.

    How to get it?


    Regards,
    Jaydeep

    Wednesday, November 7, 2012 1:39 PM

Answers

  • I got the ModelItem collection using

    var modelService = workflowDesigner.Context.Services.GetService<ModelService>();
    modelService.Find(modelService.Root, typeof(Activity));


    Regards,
    Jaydeep

    • Marked as answer by meetjaydeep3 Thursday, November 8, 2012 6:18 AM
    Thursday, November 8, 2012 6:18 AM