Activity instance

Build 1501 on 14/Nov/2017  This topic last edited on: 5/Aug/2014, at 13:57

A WindowsWorkflow contains elements that define activity instances, such as:

<LoadData

x:Name="loadImage"

ObjectIds="{wf:ActivityBind replicator,ObjectIdsOut}"

 AttributeName="data">

The name of the element (<LoadData) determines the activity.

In the example above, "LoadData" is an activity, and "loadImage" is a name of the instance of that activity within the WindowsWorkflow.

The name of the instance is arbitrary, however, it must be unique within a WindowsWorkflow.

The name of an instance is case sensitive, so it is possible to define an instance named “SaveImage” and another named “saveImage” within the same WindowsWorkflow.

The instance name cannot be the same as the activity name – e.g., it is not valid to define an activity instance as:

<LoadData

x:Name="LoadData"

ObjectIds="{wf:ActivityBind replicator,ObjectIdsOut}"

 AttributeName="data">

It is a good practice to always begin instance names with a lowercase letter. In this way they cannot be the same as the activity name that always begins with an uppercase letter.

<LoadData

x:Name="loadData"

ObjectIds="{wf:ActivityBind replicator,ObjectIdsOut}"

 AttributeName="data">