Table of Contents

Class DesignerInstance

Namespace
DocuWare.Platform.ServerClient
Assembly
DocuWare.Platform.ServerClient.dll

Model a designer workflow instance.

public class DesignerInstance : IRelationsWithProxy, IRelations, IHttpClientProxy
Inheritance
DesignerInstance
Implements
Inherited Members

Properties

ColumnValues

Values in columns.

public List<ColumnValue> ColumnValues { get; set; }

Property Value

TypeDescription
List<ColumnValue>

CreateDate

Creation date of the instance.

public DateTime CreateDate { get; set; }

Property Value

TypeDescription
DateTime

DocId

Document id connected with the instance.

public int DocId { get; set; }

Property Value

TypeDescription
int

DocIdSpecified

public bool DocIdSpecified { get; set; }

Property Value

TypeDescription
bool

ExecutionState

Execution state.

public InstanceExecutionStateEnum ExecutionState { get; set; }

Property Value

TypeDescription
InstanceExecutionStateEnum

HibernationState

Gets or sets the hibernation state.

[IgnoreDataMember]
public InstanceHibernationStateEnum HibernationState { get; set; }

Property Value

TypeDescription
InstanceHibernationStateEnum

HibernationStateValue

Hibernation state.

public string HibernationStateValue { get; set; }

Property Value

TypeDescription
string

Id

Id of the workflow instance.

public string Id { get; set; }

Property Value

TypeDescription
string
public Link[] Links { get; set; }

Property Value

TypeDescription
Link[]

Gets the Uri of the link for the relation “self”.

public string SelfRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “self” if it exists, or null if this link does not exist. The returned link can be absolute or relative. If it is a relative link you must set it in the right context yourself.

WorkflowVersionId

Workflow version id.

public string WorkflowVersionId { get; set; }

Property Value

TypeDescription
string

Methods

DeleteSelfRelation()

Calls the HTTP Delete method on the link for the relation “self”.

public string DeleteSelfRelation()

Returns

TypeDescription
string

The content of the response.

DeleteSelfRelationAsync()

Calls the HTTP Delete method on the link for the relation “self” asynchronously.

public Task<DeserializedHttpResponse<string>> DeleteSelfRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<string>>

A task which runs the request.

Remarks

This method follows the link for the relation “self”.

DeleteSelfRelationAsync(CancellationToken)

Calls the HTTP Delete method on the link for the relation “self” asynchronously.

public Task<DeserializedHttpResponse<string>> DeleteSelfRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<string>>

A task which runs the request.

Remarks

This method follows the link for the relation “self”.

GetDesignerInstanceFromSelfRelation()

Calls the HTTP Get method on the link for the relation “self”.

public DesignerInstance GetDesignerInstanceFromSelfRelation()

Returns

TypeDescription
DesignerInstance

The content of the response.

GetDesignerInstanceFromSelfRelationAsync()

Calls the HTTP Get method on the link for the relation “self” asynchronously.

public Task<DeserializedHttpResponse<DesignerInstance>> GetDesignerInstanceFromSelfRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<DesignerInstance>>

A task which runs the request.

Remarks

This method follows the link for the relation “self”.

GetDesignerInstanceFromSelfRelationAsync(CancellationToken)

Calls the HTTP Get method on the link for the relation “self” asynchronously.

public Task<DeserializedHttpResponse<DesignerInstance>> GetDesignerInstanceFromSelfRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<DesignerInstance>>

A task which runs the request.

Remarks

This method follows the link for the relation “self”.

SetProxy(HttpClientProxy)

Sets the HTTP communication proxy which is used in further HTTP communication.

public void SetProxy(HttpClientProxy proxy)

Parameters

TypeNameDescription
HttpClientProxyproxy

The HttpClient instance which is used in further HTTP communication.

Remarks

The HTTP proxy is used to handle the HTTP requests which are created by this instance. The proxy is used in case a request is sent to a URL which is resolved from a link.