Geeks With Blogs

News My Blog has been MOVED to https://mfreidge.wordpress.com
Michael Freidgeim's OLD Blog My Blog has been MOVED to https://mfreidge.wordpress.com
One of our developers used ConditionedActivityGroup activity with a single branch.
ConditionedActivityGroup is a kind do of loop, but it should not be used instead of the WhileActivity.
 
There are a few reasons for this:
1.Use the simplest tool that satisfy your requirement
2.workflow designer doesn't expand body of ConditionedActivityGroup, and you need to click it to Preview
3. If you have many activities in the workflow, the designer becomes terribly slow(VS 2008)
The huge workflows should be considered for refactoring by converting parts of workflow into custom composite activity or as separate worklow (with InvokeWorkflow activity)
 
I have a question,  should I use Code Conditions vs Rule Conditions?
The article Windows Workflow: Rules and Conditions describes these types of conditions.
Conditional Activities in Windows Workflow Foundation talks about Advantages of using Rule Conditions:

 

  • Rule conditions are included in the declarative model and can be dynamically updated at run-time
  • The .rules file provides code separation and enables external analysis /tools to be built on top of the .rules file.  
Also to set the conditions declaravely via Rules  simpler for new Activity.
 
However if you are using code-behind for the workflow, specify code conditions is more consistent and easy to maintain/investigate.
Editing declarative conditions in Workflow Designer is too slow.
Also VS "find references"  could NOT see the references from rule conditions, which make development harder.


Posted on Friday, March 20, 2009 10:47 PM Workflow | Back to top


Comments on this post: Windows Workflow: Use of ConditionedActivityGroup activity

# re: Windows Workflow: Use of ConditionedActivityGroup activity
Requesting Gravatar...
Well i find that one of the best reasons for not using ConditionActivityGroup is that it is fuzzy and completly buggy. MSDN documentation says different nd acts differently. Funny
Left by Joon on Feb 06, 2010 4:15 AM

Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net