Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a collection of variables associated with this activity query.
For more information on tracking profile queries, see Tracking Profiles.
<configuration>
<system.ServiceModel>
<tracking>
<trackingProfile>
<workflow>
<activityStateQueries>
<activityStateQuery>
<variables>
<variable>
Syntax
<tracking>
<trackingProfile name="Name">
<workflow>
<activityStateQueries>
<activityStateQuery activityName="String" />
<variables>
<variable name="String" />
</variables>
</activityStateQueries>
</workflow>
</trackingProfile>
</tracking>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| name | A string that specifies the name of the variable. |
Child Elements
None.
Parent Elements
| Element | Description |
|---|---|
| <variable> | A variable associated with an activity state query. |
Remarks
One unique feature of an ActivityStateQuery is the ability to extract data when tracking the execution of a workflow. This provides additional context when accessing the tracking records post execution. You can use the <arguments>, <states> and <states> elements to extract any variable or argument from any activity in a workflow. The following example shows an activity state query that extracts variables and arguments when the activity’s Closed tracking record is emitted. Variables and arguments can be extracted only with an ActivityStateRecord and thus are subscribed to within a tracking profile using <activityStateQuery>.
<activityStateQuery activityName="SendEmailActivity">
<states>
<state name="Closed"/>
</states>
<variables>
<variable name="FromAddress"/>
</variables>
<arguments>
<argument name="Result"/>
</arguments>
</activityStateQuery>