Class OwnWorkflow
A workflow\instance for the initiator of the request.
Inheritance
Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient.dll
Syntax
public class OwnWorkflow : IRelationsWithProxy
Properties
CreateDate
Creation date of the request.
Declaration
public System.DateTime CreateDate { get; set; }
Property Value
Type | Description |
---|---|
System. |
DocId
Document id which is used for start of the request.
Declaration
public int DocId { get; set; }
Property Value
Type | Description |
---|---|
System. |
DocumentName
Name of the document.
Declaration
public string DocumentName { get; set; }
Property Value
Type | Description |
---|---|
System. |
FcGuid
File cabinet id of the document.
Declaration
public string FcGuid { get; set; }
Property Value
Type | Description |
---|---|
System. |
HistoryRelationLink
Gets the Uri of the link for the relation “history”.
Declaration
public string HistoryRelationLink { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Returns the uri of the link for the relation “history” if it exists, or
Id
Identifier of the request (instance id) .
Declaration
public string Id { get; set; }
Property Value
Type | Description |
---|---|
System. |
Links
Declaration
public Link[] Links { get; set; }
Property Value
Type | Description |
---|---|
Link[] |
SelfRelationLink
Gets the Uri of the link for the relation “self”.
Declaration
public string SelfRelationLink { get; }
Property Value
Type | Description |
---|---|
System. |
Remarks
Returns the uri of the link for the relation “self” if it exists, or
TakenDecision
List of confirmed requests.
Declaration
public List<RequestDataDecision> TakenDecision { get; set; }
Property Value
Type | Description |
---|---|
List<Request |
WorkflowName
Name of the request.
Declaration
public string WorkflowName { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeleteSelfRelation()
Calls the HTTP Delete method on the link for the relation “self”.
Declaration
public string DeleteSelfRelation()
Returns
Type | Description |
---|---|
System. |
The content of the response. |
DeleteSelfRelationAsync()
Calls the HTTP Delete method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<string>> DeleteSelfRelationAsync()
Returns
Type | Description |
---|---|
System. |
A task which runs the request. |
Remarks
This method follows the link for the relation “self”.
DeleteSelfRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Delete method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<string>> DeleteSelfRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System. |
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”.
Declaration
public InstanceHistory GetInstanceHistoryFromHistoryRelation()
Returns
Type | Description |
---|---|
Instance |
The content of the response. |
GetInstanceHistoryFromHistoryRelationAsync()
Calls the HTTP Get method on the link for the relation “history” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync()
Returns
Type | Description |
---|---|
System. |
A task which runs the request. |
Remarks
This method follows the link for the relation “history”.
GetInstanceHistoryFromHistoryRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “history” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System. |
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”.
Declaration
public OwnWorkflow GetOwnWorkflowFromSelfRelation()
Returns
Type | Description |
---|---|
Own |
The content of the response. |
GetOwnWorkflowFromSelfRelationAsync()
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<OwnWorkflow>> GetOwnWorkflowFromSelfRelationAsync()
Returns
Type | Description |
---|---|
System. |
A task which runs the request. |
Remarks
This method follows the link for the relation “self”.
GetOwnWorkflowFromSelfRelationAsync(System.Threading.CancellationToken)
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public System.Threading.Tasks.Task<DeserializedHttpResponse<OwnWorkflow>> GetOwnWorkflowFromSelfRelationAsync(System.Threading.CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System. |
cancellationToken | The cancellation token to cancel the request. |
Returns
Type | Description |
---|---|
System. |
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.
Declaration
public void SetProxy(HttpClientProxy proxy)
Parameters
Type | Name | Description |
---|---|---|
Http |
proxy | The |
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.