Where to put ActivityBind code RRS feed

  • Question

  • Hi,

    Basically I am building an application like Jon Flanders designer using ASP.NET.

    I have my own activity library which I am using in the web project.

    I have the WorkflowVisibility and WorkflowDesigner projects which I am using.

    I know I have to use the ActivityBind.SetBind code to bind bind activity properties.
    I am just now sure where to put this code. Should I get a list of activities and then iterate through their properties ?

    I think the solution should be such that it doesn't depend on the activity. I should be able to bind any activity to any others.

    Please help !!! I am trying for this for a month..

    Wednesday, September 19, 2007 9:11 PM


  • Hi,

    I found the solution for this after a lot of digging into books .

    Actually, my WF knowledge is not very basic, I am trying to catch up.

    I got a lot of help from chap 16 & 17 of Pro WF:Windows Workflow in NET by Bruce Bukovics.

    I placed that code in WorkflowDesignerControl.

    I got the xoml markup (its a code only as its a hosted designer) and deserialized using WorkflowMarkupSerializer. I extracted the parent activity and the activities children to it. I set the binding using ActivityBind code. Then I had to re-serialize it to markup.

    Thats it. It was simple, but its only simple unless you find it.


    Wednesday, September 26, 2007 8:43 PM