Table of Contents

Class HistoryInstance

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

Model a history workflow instance.

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

Properties

ColumnValues

Values in columns.

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

Property Value

TypeDescription
List<ColumnValue>

DocId

Document id connected with the instance(optional).

public int DocId { get; set; }

Property Value

TypeDescription
int

DocIdSpecified

public bool DocIdSpecified { get; set; }

Property Value

TypeDescription
bool

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

public string HistoryRelationLink { get; }

Property Value

TypeDescription
string

Returns the uri of the link for the relation “history” 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.

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.

Methods

GetHistoryInstanceFromSelfRelation()

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

public HistoryInstance GetHistoryInstanceFromSelfRelation()

Returns

TypeDescription
HistoryInstance

The content of the response.

GetHistoryInstanceFromSelfRelationAsync()

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

public Task<DeserializedHttpResponse<HistoryInstance>> GetHistoryInstanceFromSelfRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<HistoryInstance>>

A task which runs the request.

Remarks

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

GetHistoryInstanceFromSelfRelationAsync(CancellationToken)

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

public Task<DeserializedHttpResponse<HistoryInstance>> GetHistoryInstanceFromSelfRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<HistoryInstance>>

A task which runs the request.

Remarks

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

GetInstanceHistoryFromHistoryRelation()

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

public InstanceHistory GetInstanceHistoryFromHistoryRelation()

Returns

TypeDescription
InstanceHistory

The content of the response.

GetInstanceHistoryFromHistoryRelationAsync()

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

public Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<InstanceHistory>>

A task which runs the request.

Remarks

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

GetInstanceHistoryFromHistoryRelationAsync(CancellationToken)

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

public Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<InstanceHistory>>

A task which runs the request.

Remarks

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

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.