How to determine if a given composite activity is a custom activity

When walking the workflow’s activity tree, you’ll encounter all the child activities of composite activities including, the children that were dropped into activity.xoml or activity.cs of  the composite activity. If you ever need to find just  the activities dropped into the current workflow, and not the ones indireclty in the tree throgu the custom activities, here is what you can do.
 
Ignore an activity if somewhere in its path to the root exists a composite such that, an instance of that composite activity type when created using activator create instance ,has child activities in it already.
Advertisements
This entry was posted in Windows Workflow Foundation. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s