Table of Contents

Class OwnWorkflow

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

A workflow\instance for the initiator of the request.

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

Properties

CreateDate

Creation date of the request.

public DateTime CreateDate { get; set; }

Property Value

TypeDescription
DateTime

DocId

Document id which is used for start of the request.

public int DocId { get; set; }

Property Value

TypeDescription
int

DocumentName

Name of the document.

public string DocumentName { get; set; }

Property Value

TypeDescription
string

ExecutionState

Indicates whether the workflow is completed or pending.

public RequestExecutionStateEnum ExecutionState { get; set; }

Property Value

TypeDescription
RequestExecutionStateEnum

FcGuid

File cabinet id of the document.

public string FcGuid { get; set; }

Property Value

TypeDescription
string

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

Identifier of the request (instance id) .

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.

TakenDecision

List of confirmed requests.

public List<RequestDataDecision> TakenDecision { get; set; }

Property Value

TypeDescription
List<RequestDataDecision>

TakenDecisionName

If all assigned users confirm one and the same decision it contains the name of the decision. Otherwise it contains WF_DIFFERENTDECISIONS.

public string TakenDecisionName { get; set; }

Property Value

TypeDescription
string

WorkflowName

Name of the request.

public string WorkflowName { 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”.

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”.

GetOwnWorkflowFromSelfRelation()

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

public OwnWorkflow GetOwnWorkflowFromSelfRelation()

Returns

TypeDescription
OwnWorkflow

The content of the response.

GetOwnWorkflowFromSelfRelationAsync()

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

public Task<DeserializedHttpResponse<OwnWorkflow>> GetOwnWorkflowFromSelfRelationAsync()

Returns

TypeDescription
Task<DeserializedHttpResponse<OwnWorkflow>>

A task which runs the request.

Remarks

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

GetOwnWorkflowFromSelfRelationAsync(CancellationToken)

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

public Task<DeserializedHttpResponse<OwnWorkflow>> GetOwnWorkflowFromSelfRelationAsync(CancellationToken cancellationToken)

Parameters

TypeNameDescription
CancellationTokencancellationToken

The cancellation token to cancel the request.

Returns

TypeDescription
Task<DeserializedHttpResponse<OwnWorkflow>>

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.