BizTalk Utilities CV ,   Jobs ,   Code library
 
Go to the front page to continue learning about XML or select below:

Contents

ReBlogger Contents

Previous posts in Orchestration / Workflow

 
 
Page 73 of 21350

Windows Workflow: Use of ConditionedActivityGroup activity

Blogger : Michael Freidgeims Blog
All posts : All posts by Michael Freidgeims Blog
Category : Orchestration / Workflow
Blogged date : 2009 Mar 20

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.



Read comments or post a reply to : Windows Workflow: Use of ConditionedActivityGroup activity
Page 73 of 21350

Newest posts
 

    Email TopXML