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
| Type | Description |
|---|---|
| List<ColumnValue> |
DocId
Document id connected with the instance(optional).
public int DocId { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DocIdSpecified
public bool DocIdSpecified { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
HistoryRelationLink
Gets the Uri of the link for the relation “history”.
public string HistoryRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Returns the uri of the link for the relation “history” if it exists, or
Id
Id of the workflow instance.
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Links
public Link[] Links { get; set; }
Property Value
| Type | Description |
|---|---|
| Link[] |
SelfRelationLink
Gets the Uri of the link for the relation “self”.
public string SelfRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
Returns the uri of the link for the relation “self” if it exists, or
Methods
GetHistoryInstanceFromSelfRelation()
Calls the HTTP Get method on the link for the relation “self”.
public HistoryInstance GetHistoryInstanceFromSelfRelation()
Returns
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| 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
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | The cancellation token to cancel the request. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| HttpClientProxy | proxy | 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.