index > Windows Workflow Foundation > Question about ConditionedActivityGroup

Question about ConditionedActivityGroup

I tried the Handson lab 7 Exercise 1 of Beta 2 and intentionally change both the evaluation conditions function to

args.Result = true; // hard code to true

I would expect both code activities be executed since both conditions are true. The result shows otherwise. The handlers are executed alternatively. Is that by design, each loop (of CAG until loop) only evaluate one condition? And what's the order?

How can I achieve parallel executions?

Thanks.

stan_siu

You should read Nate's blog on parallelism in workflow, it is written about the parallel activity but pertains to the conditioned activity group (CAG). A code activity executes too quickly for you to tell that both are scheduled before the first one completes. Try the same thing with delay activities that have a 2 second timeout, both will execute and block. When the first delay expires the CAG's UntilCondition will be reevaluated and if it is false all children that are not already running will have their WhenCondition evaluated.

Tom Lake
reply 2

You can use google to search for other answers

 

More Articles

• Using 'typeof' in the Rule Editor
• State Machine Design Question
• What is the purpose of RegisterAttached method?
• Error while using Workflows within Sharepoint Site
• BUG: StateMachineDesigner resizing and "Fit to Actual Size&q...
• Compilation failed for Travel Demo
• Workflow and .NET Remoting
• Could not deserialize object. The type 'WorkflowLibrary1.BaseOrd...
• Need help using CompositeActivityDesigner
• StartWorkflow Method
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Support for Federated Workflow
• IfElse Activity in a While Activity
• Could you tell me when will the windows
• Why does me cannot get more components i
• Winforms and workflow events
• CorrelationParameter data types
• Windows Service and Worflow versioning
• How to use SharedConnectionWorkflowTrans
• custom SequenceActivity - howto execute
• Problems in invoking one workflow web se
• What kind of Host Application to use?
• Lab 10 on beta 2.2
• contradictory installation instructions
• Installing Windows Workflow Foundation B
• Tracking and Monitoring of dynamically u

Hot Articles

• Custom Activity with timer does not exec
• guidance on deployment
• Where is the visual layout state for the
• How to handle event in called workflow
• ASP.NET need to shutdown runtime.. WHY?
• BPM generations
• What do i have to do in order to use Sql
• Feb CTP - Can't get Workflow packages to
• SQLPersitence is not instanciated
• Renaming the namespace given to a Custom
• declare a event In My SequentialWorkflow
• Runtime Engine Durability
• Modelling a collection and item relation
• Custom Activity - Errors Best Practice
• Installing Visual Studio 2005 Extensions

Recommend Articles

• Configuration
• WorkflowCompiler -
• Making Persistent State Machine WorkFlows
• Beta 1 Hands-On Lab
• Problems creating a custom sequence acti
• Where do I find the build script for sta
• Work Allocation Queues
• About the solution in "DesignerSeri
• Workflow xoml file reading using XamlRea
• FileWatcher Activity - Event Time
• Licensing Costs
• CallExternalMethodActivity and SQLPersis
• Designer fails: could not load type Runt
• Getting runtime error at the CreateWorkf
• Bind the CurrentItem property of the For