Freeform Custom Activity Designers using ICompositeView (Part 4)

This post is Part 4 of a series on writing custom activity designers. [Part 1 – Part 2 – Part 3 – Part 4 – Part 5 – Part 6] [UPDATE 01/20/2010: The old version of this post was woefully buggy, as drag and drop only worked for CanvasActivity inside something else, such as a Sequence….

12

Freeform Custom Activity Designers using ICompositeView (Part 3)

[This post is Part 3 of a series on writing custom activity designers. Part 1 – Part 2 – Part 3 – Part 4] In Part 1 we started implementing a freeform layout designer using ICompositeView. So far we have implemented ICompositeView.OnItemsPasted() and ICompositeView.OnItemsDelete(). But the bad news is that our implementations aren’t keepers. The…

1

Fun with Bookmarks: Implementing Continue and Break

A few people have noticed in the Workflow Foundation Beta 2 forums that the looping constructs provided in System.Activities.Statements such as While activity, ForEach activity, and ParallelForEach lack certain features found in their C# counterparts – there is no break or continue statement. This seemed like an interesting problem – how can we implement these missing features…


Best XAML guide ever?

I just wanted to interrupt the normal flow of posts with a link to a old but wonderful post from Mike Hillberg that I recently found and really like: Being Written by XamlWriter It’s full of concise information for figuring out how you can customize your XAML representation for workflow activities or other data, should you need…


Freeform Custom Activity Designers using ICompositeView (Part 2)

This post is Part 2 of a series on writing custom activity designers. [Part 1 – Part 2 – Part 3 – Part 4 – Part 5] Last time we found out that ICompositeView.OnItemsDelete() will never get called – unless we tell our contained activities exactly which composite view they belong to. But we didn’t…


Freeform Custom Activity Designers using ICompositeView

[This post is Part 1 of a series on writing custom activity designers. Part 2 – Part 3 – Part 4 – Part 5 – Part 6 – Part 7] Motivation: Building an activity like Flowchart Creating composite activities and designers in Workflow Foundation 4.0 is really easy when you use WorkflowItemPresenter and WorkflowItemsPresenter. (Seriously….

4

The Trouble with System.Activities.ForEach (and ParallelForEach)

(Subtitle: Why you need IActivityTemplateFactory) Another forum post reminded me of one thing about ActivityAction that throws me for a loop every time. Every time, that is, that I’m rehosting workflow designer or creating new custom activities, so maybe not that often but it’s kind of annoying. Imagine, here’s us, creating a toolbox for our…

5

Workflow Scopes and Execution Properties

or, Workflow Execution Properties for custom data passing. I wrote this after seeing a few forum posts from the Workflow Foundation Beta Forum on the same basic theme. Workflow 4.0 Arguments and Variables certainly do work for passing data to and from Activities in your workflow – but sometimes they don’t feel easy enough to…