Conditioned Activity Group

Before I discuss building a custom activity, there is one other out of the box activity that is worth looking at—the ConditionedActivityGroup (CAG). It demonstrates how rules and activities can be combined to produce a useful, reusable, activity that illustrates a common pattern in workflow development. Hopefully, this will help stimulate your thinking about the possibility of implementing workflow patterns as activities.

Suppose I am trying to rent a car, and I want to check several rental agencies. I have a price I do not want to exceed, and I want to only try a given number of times. This scenario is illustrated in the CAG example.

A ConditionedActivityGroup or CAG will repeatedly execute several activities until ...

Get Building Applications with Windows Workflow Foundation (WF): Advanced Workflow Features now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.