index > Windows Workflow Foundation > "Creating a custom activity that inherits from another custo...

"Creating a custom activity that inherits from another custo...

I have just noticed the following statement at http://windowssdk.msdn.microsoft.com/en-us/library/ms733604.aspx:

"Creating a custom activity that inherits from another custom activity is not supported."

This is a major limitation in WF if it is true. Can someone confirm that this is the case, and if so explain why an inheritance hierarchy of custom activities is a problem? Encapsulating common behaviour in a base custom activity class seems to be a very common approach.

Thx
Spigot

Hiya Spigot

I have a custom base activity that inherits from Activity and then have two other custom activities that inherit from that base one. All of the activities that I have inherit from one of the two that inherit from my custom base. They all work fine so it doesn't seem to be a problem.




Michelle Richardson - Software Developer
BabyGBear
Thanks for the reply Michelle. I have also taken the same approach, with a large custom activity hierarchy that is 5 levels deep. All my actual business activities inherit from custom base classes. Up till now I haven't had any problems. However I am concerned by the above statement on MSDN; it might "just work" but a lack of proper support is worrying.

Can someone from MS please clarify whether custom activity inheritance hierarchies are supported (and if not, why not)? Or is this just another example of misleading/incomplete pre-release documentation?

Thx

Spigot
It should read "Creating a custom activity that inherits from another custom activity, that contains children, is not supported." I will open a bug and get it fixed.


MS Workflow SDE/T - This posting is provided "AS IS" with no warranties, and confers no rights.
Tom Lake
reply 4

You can use google to search for other answers

 

More Articles

• When in Dec is BETA2 ?
• Exceptions thrown from a commit method
• How to make a StateMachine which show the terminal user to see th...
• Exception in .NET 3.0 SDK WorkflowMonitor Sample
• Workflow Serialization
• Window workflow Parameters
• When is parent non-null? / How to get to container activity?
• Tasklist
• How to Create property of type Custom data collection
• Understanding Code Separation
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How to pass a Parameter to a loaded work
• Maintainabilty of Workflows
• Raising Events from the Service in the W
• Code Activity context menu questions
• WWF HandleExternalEventActivity Problem
• Limit Values of Dependency Properties
• Exceptions While Creating the View
• does the workflow designer will support
• Rehydrating instances persisted in previ
• Correlation references between custom ac
• Query WWF Objects
• BUG in System.Workflow.ComponentModel.Ac
• Subclassing StateActivity
• Support for Federated Workflow
• No of States

Hot Articles

• Clarification about Scheduler services a
• Communication with external applications
• decoupled hosts and getting list of pend
• designer and project template support fo
• How can I access the ExpressionDesigner?
• How to provide paths to Runtime for Crea
• VBScript activity
• Bug in SqlTrackingService
• Sub-workflows - DesignSurfaceManager
• RuleSet Editor
• State Machine
• Could not find stored procedure 'Retriev
• Why doesn't ActivityTrackingRecord.Conte
• Infopath to Sharepoint
• What happens to System.Collections.Speci

Recommend Articles

• Delay Activity and ASP.NET
• When is parent non-null? / How to get to
• Object reference not set to an instance
• Workflowinstance. suspend, terminate thr
• workflow design for enduser
• Creating a sharepoint workflow
• a state delay in a stae workflow machine
• Modelling a collection and item relation
• Who can help me?
• The referenced component 'Outlook' could
• Sharepoint services client setup
• Microsoft Office SharePoint Server 2007
• State Machine Workflow with partial Huma
• IfElse CodeCondition with ActivityBind
• Using CallExternalMethod activity always