Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ title: "<activityScheduledQueries> of WCF"
ms.date: "03/30/2017"
ms.assetid: e351329f-9676-4f11-9b19-f4bac82f36fc
---
# \<activityScheduledQueries> of WCF

Represents a collection of queries that are used to track an activity scheduled for execution by a parent activity. The query is necessary for a tracking participant to subscribe to activity scheduled records.
For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md)
[**\<configuration>**](../configuration-element.md)\
&nbsp;&nbsp;[**\<system.serviceModel>**](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[**\<tracking>**](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<profiles>**\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<trackingProfile>**](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<workflow>**](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<activityScheduledQueries>**
## Syntax
```xml
# `<activityScheduledQueries>` of WCF

Represents a collection of queries that are used to track an activity scheduled for execution by a parent activity. The query is necessary for a tracking participant to subscribe to activity scheduled records.

For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md)

[`<configuration>`](../configuration-element.md)\
&nbsp;&nbsp;[`<system.serviceModel>`](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[`<tracking>`](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<profiles>`\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<trackingProfile>`](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<workflow>`](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<activityScheduledQueries>`

## Syntax

```xml
<tracking>
<profiles>
<trackingProfile name="Name">
Expand All @@ -33,28 +33,28 @@ For more information on tracking profile queries, see [Tracking Profiles](../../
</trackingProfile>
</profiles>
</tracking>
```
## Attributes and elements

The following sections describe attributes, child elements, and parent elements.
### Attributes

None.
### Child elements
|Element|Description|
|-------------|-----------------|
|[\<activityScheduledQuery>](activityscheduledquery-of-wcf.md)|A query that is used to track an activity scheduled for execution by a parent activity.|
### Parent elements
|Element|Description|
|-------------|-----------------|
|[\<workflow>](../windows-workflow-foundation/workflow.md)|A configuration element that contains all queries for a specific workflow identified by the `activityDefinitionId` property.|
```

## Attributes and elements

The following sections describe attributes, child elements, and parent elements.

### Attributes

None.

### Child elements

|Element|Description|
|-------------|-----------------|
|[\<activityScheduledQuery>](activityscheduledquery-of-wcf.md)|A query that is used to track an activity scheduled for execution by a parent activity.|

### Parent elements

|Element|Description|
|-------------|-----------------|
|[\<workflow>](../windows-workflow-foundation/workflow.md)|A configuration element that contains all queries for a specific workflow identified by the `activityDefinitionId` property.|

## See also

- <xref:System.ServiceModel.Activities.Tracking.Configuration.ActivityScheduledQueryElementCollection>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ title: "<activityScheduledQuery> of WCF"
ms.date: "03/30/2017"
ms.assetid: 25f6eee1-3d98-4c39-b517-c0813f03f106
---
# \<activityScheduledQuery> of WCF
# `<activityScheduledQuery>` of WCF

Represents a collection of queries that are used to track an activity scheduled for execution by a parent activity. The query is necessary for a tracking participant to subscribe to activity scheduled records.
For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md)
[**\<configuration>**](../configuration-element.md)\
&nbsp;&nbsp;[**\<system.serviceModel>**](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[**\<tracking>**](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<profiles>**\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<trackingProfile>**](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<workflow>**](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<activityScheduledQueries>**](activityscheduledqueries-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<activityScheduledQuery>**
## Syntax
```xml
Represents a collection of queries that are used to track an activity scheduled for execution by a parent activity. The query is necessary for a tracking participant to subscribe to activity scheduled records.

For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md)

[`<configuration>`](../configuration-element.md)\
&nbsp;&nbsp;[`<system.serviceModel>`](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[`<tracking>`](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<profiles>`\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<trackingProfile>`](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<workflow>`](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<activityScheduledQueries>`](activityscheduledqueries-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<activityScheduledQuery>`

## Syntax

```xml
<tracking>
<profiles>
<trackingProfile name="Name">
Expand All @@ -34,29 +34,29 @@ For more information on tracking profile queries, see [Tracking Profiles](../../
</trackingProfile>
</profiles>
</tracking>
```

## Attributes and elements
```

## Attributes and elements

The following sections describe attributes, child elements, and parent elements.

### Attributes

|Attribute|Description|
|---------------|-----------------|
|`activityName`|A string that specifies the name of the activity that is requesting the cancellation.|
|`childActivityName`|A string that specifies the name of the child activity for which cancellation was requested.|

The following sections describe attributes, child elements, and parent elements.

### Attributes

|Attribute|Description|
|---------------|-----------------|
|`activityName`|A string that specifies the name of the activity that is requesting the cancellation.|
|`childActivityName`|A string that specifies the name of the child activity for which cancellation was requested.|

### Child elements

None.
### Parent elements
|Element|Description|
|-------------|-----------------|
|[\<activityScheduledQueries>](activityscheduledqueries-of-wcf.md)|A collection of queries that are used to track an activity scheduled for execution by a parent activity.|

### Parent elements

|Element|Description|
|-------------|-----------------|
|[\<activityScheduledQueries>](activityscheduledqueries-of-wcf.md)|A collection of queries that are used to track an activity scheduled for execution by a parent activity.|

## See also

- <xref:System.ServiceModel.Activities.Tracking.Configuration.ActivityScheduledQueryElement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ title: "<activityStateQueries> of WCF"
ms.date: "10/08/2018"
ms.assetid: 9e45db49-ed85-4fdf-bd65-0d5477e31823
---
# \<activityStateQueries> of WCF
# `<activityStateQueries>` of WCF

Represents a collection of queries that are used to track life cycle changes of the activities that make up a workflow instance. For example, you may want to keep track of every time the "Send E-Mail" activity completes within a workflow instance. This query is necessary for a tracking participant to subscribe to activity state record objects. The available states to subscribe to are specified in ActivityStates.

For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md).

[**\<configuration>**](../configuration-element.md)\
&nbsp;&nbsp;[**\<system.serviceModel>**](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[**\<tracking>**](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<profiles>**\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<trackingProfile>**](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<workflow>**](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<activityStateQueries>**
## Syntax
```xml
[`<configuration>`](../configuration-element.md)\
&nbsp;&nbsp;[`<system.serviceModel>`](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[`<tracking>`](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<profiles>`\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<trackingProfile>`](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<workflow>`](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<activityStateQueries>`

## Syntax

```xml
<tracking>
<profiles>
<trackingProfile name="Name">
Expand All @@ -42,15 +42,15 @@ For more information on tracking profile queries, see [Tracking Profiles](../../
</trackingProfile>
</profiles>
</tracking>
```
```

## Attributes and elements

The following sections describe attributes, child elements, and parent elements.

### Attributes

None.
### Attributes

None.

### Child elements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ title: "<activityStateQuery> of WCF"
ms.date: "03/30/2017"
ms.assetid: d6cdc04b-6f3a-4097-a623-ee4a1be3b5c4
---
# \<activityStateQuery> of WCF
# `<activityStateQuery>` of WCF

Represents a query that is used to track life cycle changes of the activities that make up a workflow instance. For example, you may want to keep track of every time the "Send E-Mail" activity completes within a workflow instance. This query is necessary for a tracking participant to subscribe to activity state record objects. The available states to subscribe to are specified in ActivityStates.

Represents a query that is used to track life cycle changes of the activities that make up a workflow instance. For example, you may want to keep track of every time the "Send E-Mail" activity completes within a workflow instance. This query is necessary for a tracking participant to subscribe to activity state record objects. The available states to subscribe to are specified in ActivityStates.

For more information on tracking profile queries, see [Tracking Profiles](../../../windows-workflow-foundation/tracking-profiles.md).

[**\<configuration>**](../configuration-element.md)\
&nbsp;&nbsp;[**\<system.serviceModel>**](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[**\<tracking>**](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<profiles>**\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<trackingProfile>**](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<workflow>**](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[**\<activityStateQueries>**](activitystatequeries-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**\<activityStateQuery>**
## Syntax
```xml
[`<configuration>`](../configuration-element.md)\
&nbsp;&nbsp;[`<system.serviceModel>`](system-servicemodel.md)\
&nbsp;&nbsp;&nbsp;&nbsp;[`<tracking>`](tracking-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<profiles>`\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<trackingProfile>`](trackingprofile-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<workflow>`](workflow-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[`<activityStateQueries>`](activitystatequeries-of-wcf.md)\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`<activityStateQuery>`

## Syntax

```xml
<tracking>
<profiles>
<trackingProfile name="Name">
Expand All @@ -43,37 +43,37 @@ For more information on tracking profile queries, see [Tracking Profiles](../../
</trackingProfile>
</profiles>
</tracking>
```
## Attributes and elements

The following sections describe attributes, child elements, and parent elements.
### Attributes
|Attribute|Description|
|---------------|-----------------|
|activityName|A string that specifies the name of the activity to filter <xref:System.Activities.Tracking.ActivityStateRecord> instances on.|
### Child elements
|Element|Description|
|-------------|-----------------|
|[\<arguments>](../windows-workflow-foundation/arguments.md)|A collection of arguments associated with this activity query.|
|[\<states>](../windows-workflow-foundation/states.md)|A collection of configuration elements that contain the states of the subscribed activity for which a tracking record should be emitted.|
|[\<states>](../windows-workflow-foundation/states.md)|A collection of variables associated with this activity query.|
### Parent elements
|Element|Description|
|-------------|-----------------|
|[\<faultPropagationQuery>](../windows-workflow-foundation/faultpropagationquery.md)|Represents a list of configuration elements that are used to track requests to cancel a child activity by the parent activity. The query is necessary for a tracking participant to subscribe to cancel request record objects.|
```

## Attributes and elements

The following sections describe attributes, child elements, and parent elements.

### Attributes

|Attribute|Description|
|---------------|-----------------|
|activityName|A string that specifies the name of the activity to filter <xref:System.Activities.Tracking.ActivityStateRecord> instances on.|

### Child elements

|Element|Description|
|-------------|-----------------|
|[\<arguments>](../windows-workflow-foundation/arguments.md)|A collection of arguments associated with this activity query.|
|[\<states>](../windows-workflow-foundation/states.md)|A collection of configuration elements that contain the states of the subscribed activity for which a tracking record should be emitted.|
|[\<states>](../windows-workflow-foundation/states.md)|A collection of variables associated with this activity query.|

### Parent elements

|Element|Description|
|-------------|-----------------|
|[\<faultPropagationQuery>](../windows-workflow-foundation/faultpropagationquery.md)|Represents a list of configuration elements that are used to track requests to cancel a child activity by the parent activity. The query is necessary for a tracking participant to subscribe to cancel request record objects.|

## 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>](../windows-workflow-foundation/arguments.md), [\<states>](../windows-workflow-foundation/states.md) and [\<states>](../windows-workflow-foundation/states.md) 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>](../windows-workflow-foundation/activitystatequery.md).
```xml
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>](../windows-workflow-foundation/arguments.md), [\<states>](../windows-workflow-foundation/states.md) and [\<states>](../windows-workflow-foundation/states.md) 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>](../windows-workflow-foundation/activitystatequery.md).

```xml
<activityStateQuery activityName="SendEmailActivity">
<states>
<state name="Closed" />
Expand All @@ -85,8 +85,8 @@ One unique feature of an ActivityStateQuery is the ability to extract data when
<argument name="Result" />
</arguments>
</activityStateQuery>
```
```

## See also

- <xref:System.ServiceModel.Activities.Tracking.Configuration.ActivityStateQueryElement>
Expand Down
Loading