WorkflowInstanceService.GetInstance method
Gets a workflow instance from external workflow instance store by specified id.
Namespace: Microsoft.SharePoint.WorkflowServices
Assembly: Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)
Syntax
'Declaration
<ClientCallableMethodAttribute> _
Public MustOverride Function GetInstance ( _
instanceId As Guid _
) As WorkflowInstance
'Usage
Dim instance As WorkflowInstanceService
Dim instanceId As Guid
Dim returnValue As WorkflowInstance
returnValue = instance.GetInstance(instanceId)
[ClientCallableMethodAttribute]
public abstract WorkflowInstance GetInstance(
Guid instanceId
)
Parameters
instanceId
Type: System.GuidThe id of workflow instance.
Return value
Type: Microsoft.SharePoint.WorkflowServices.WorkflowInstance
The workflow instance or null if not found.