-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
QueryActivatableWorkflowsCommand.xml
112 lines (100 loc) · 8.06 KB
/
QueryActivatableWorkflowsCommand.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<Type Name="QueryActivatableWorkflowsCommand" FullName="System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand">
<TypeSignature Language="C#" Value="public sealed class QueryActivatableWorkflowsCommand : System.Runtime.DurableInstancing.InstancePersistenceCommand" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit QueryActivatableWorkflowsCommand extends System.Runtime.DurableInstancing.InstancePersistenceCommand" />
<TypeSignature Language="DocId" Value="T:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class QueryActivatableWorkflowsCommand
Inherits InstancePersistenceCommand" />
<TypeSignature Language="F#" Value="type QueryActivatableWorkflowsCommand = class
 inherit InstancePersistenceCommand" />
<TypeSignature Language="C++ CLI" Value="public ref class QueryActivatableWorkflowsCommand sealed : System::Runtime::DurableInstancing::InstancePersistenceCommand" />
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Runtime.DurableInstancing.InstancePersistenceCommand</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Represents the command that a generic host executes against an instance store to retrieve activation parameters. The generic host uses these activation parameters to create a workflow host, which in turn loads a runnable service instance.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An instance is *activatable*, if it is not in the suspended state or the completed state and satisfies the following conditions:
- The instance is *runnable*. An instance in the persistence database is considered as runnable if it satisfies the following conditions:
- The instance is unlocked and has a pending timer that has expired.
- The instance is unlocked and its status is **Executing**.
- The instance has an expired lock on it.
- There is no workflow host capable of loading the instance is running on the local computer.
An instance store should periodically search for activatable workflow instances that belong to a workflow host that uses the store. It should raise the <xref:System.Activities.DurableInstancing.HasActivatableWorkflowEvent> when it finds an activatable instance in the persistence store. If the instance store does not find an activatable instance in the persistence store, it should continue to monitor the persistence store for any activatable instances.
After raising the HasActivatableWorkflowEvent, the instance store should stop monitoring the persistence store for activatable instances until it receives and executes the <xref:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand>. The monitoring continues only if the command execution does not return any activatable workflow instances.
When a generic host receives this event, it executes the <xref:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand> against the instance store to obtain activation parameters required to create a workflow host. The generic host uses these activation parameters to create a workflow host, which in turn loads and runs the service instance. The activation parameters for the WAS activation type are: Site Name, Application Path (relative to the site), and Service Path (relative to the application). An instance store could return multiple sets of these three activation parameters.
A generic host is a host that has an XName parameter named **ActivationType**, which should be set to a value supported by the instance store. Currently, the SQL Workflow Instance Store supports generic hosts with ActivationType parameter set to value: **WAS**. If the ActivationType is not set at all, the SQL Workflow Instance Store treats the host as a generic host.
> [!NOTE]
> The Workflow Management Service that ships with the code named "Dublin" (Application Server Extensions for .NET 4.0) is a generic host that has the activation type set to **WAS**.
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public QueryActivatableWorkflowsCommand ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 QueryActivatableWorkflowsCommand();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes an instance of the <see cref="T:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsTransactionEnlistmentOptional">
<MemberSignature Language="C#" Value="protected internal override bool IsTransactionEnlistmentOptional { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsTransactionEnlistmentOptional" />
<MemberSignature Language="DocId" Value="P:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand.IsTransactionEnlistmentOptional" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides ReadOnly Property IsTransactionEnlistmentOptional As Boolean" />
<MemberSignature Language="F#" Value="member this.IsTransactionEnlistmentOptional : bool" Usage="System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand.IsTransactionEnlistmentOptional" />
<MemberSignature Language="C++ CLI" Value="protected public:
 virtual property bool IsTransactionEnlistmentOptional { bool get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Validate">
<MemberSignature Language="C#" Value="protected internal override void Validate (System.Runtime.DurableInstancing.InstanceView view);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig virtual instance void Validate(class System.Runtime.DurableInstancing.InstanceView view) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Activities.DurableInstancing.QueryActivatableWorkflowsCommand.Validate(System.Runtime.DurableInstancing.InstanceView)" />
<MemberSignature Language="VB.NET" Value="Protected Friend Overrides Sub Validate (view As InstanceView)" />
<MemberSignature Language="F#" Value="override this.Validate : System.Runtime.DurableInstancing.InstanceView -> unit" Usage="queryActivatableWorkflowsCommand.Validate view" />
<MemberSignature Language="C++ CLI" Value="protected public:
 override void Validate(System::Runtime::DurableInstancing::InstanceView ^ view);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Activities</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="view" Type="System.Runtime.DurableInstancing.InstanceView" />
</Parameters>
<Docs>
<param name="view">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>