locked
How to get ancestor/child activity during design time RRS feed

  • Question

  • Hi All,

    My problem is that i want to get ancestor and child activities of a custom activity, after its dropped in workflow. Am thinking to do it in 

     

        protected override void CacheMetadata

            (

            NativeActivityMetadata metadata

            )

            {

    but problem is that if am debugging the code i can get (metadata.activity).Parent which returns the sequence in which my activity is dropped using sequence i can get its childs. but (metadata.activity).Parent is not available while coding.

    Please give me right approach to do this. The purpose behind finding ancestor activity is to read its in/out parmeter values sitting inside the activity and making some changes to ancestor and current activity in/out parameters based on values read from ancestor activity.

     

    Thanks,

    Mohsan

     


    ilogik
    Sunday, August 22, 2010 4:11 PM

Answers

All replies