6.6. Creating Your Own Activities
Microsoft supplies many activities out of the box, but you will want to and should create your own activities. Activities can be created in three main ways:
As a composition of other existing activities
In code
In pure XAML
6.6.1. Creating an Activity Composed of Other Activities
Let's create a simple activity to simulate writing a customer's ticket booking to a database:
Right-click the project and add a new activity (from the Workflow section) called SaveBooking.xaml.
Open SaveBooking.xaml in design view.
Create an argument for the SaveBooking activity (String, In) called BookingReference.
Drag a Sequence activity onto the design surface.
Drag a WriteLine activity onto this activity and change its display name ...
Get Introducing .NET 4.0: with Visual Studio 2010 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.