<states>
Represents a collection of subscribed states from the tracked workflow instance when the tracking records are created.
For more information on tracking profile queries, see Tracking Profiles
<configuration>
<system.ServiceModel>
<tracking>
<trackingProfile>
<workflow>
<workflowInstanceQueries>
<workflowInstanceQuery>
<states>
Syntax
<tracking>
<trackingProfile name="Name">
<workflow>
<workflowInstanceQueries>
<workflowInstanceQuery>
<states>
<state name="Name"/>
</states>
</workflowInstanceQuery>
</workflowInstanceQueries>
</workflow>
</trackingProfile>
</tracking>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element | Description |
---|---|
<state> | A subscribed state from the tracked workflow instance when the tracking record is created. |
Parent Elements
Element | Description |
---|---|
<workflowInstanceQuery> | A query that tracks workflow instance life cycle changes such as a started or completed event. |
Remarks
The returned records are filtered by the states in this collection.
Possible state values are described in the following table.
State | Description |
---|---|
Aborted | The workflow instance is aborted. |
Completed | The workflow instance is completed. |
Deleted | The workflow instance is deleted. |
Idle | The workflow instance is idle. |
Persisted | The workflow instance is persisted. |
Resumed | The workflow instance is resumed. |
Started | The workflow instance is started. |
UnhandledException | The workflow instance encountered an unhandled exception. |
Unloaded | The workflow instance is unloaded. |
Canceled | The workflow instance is canceled. |
Suspended | The workflow instance is suspended. |
Terminated | The workflow instance is terminated. |
Unsuspended | The workflow instance is unsuspended. |
Example
The following configuration subscribes to workflow instance-level tracking records for the Started
instance state using this query.
<workflowInstanceQueries>
<workflowInstanceQuery>
<states>
<state name="Started"/>
</states>
</workflowInstanceQuery>
</workflowInstanceQueries>
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for