Class RequestTask
A request task for a common user.
Inheritance
Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient.dll
Syntax
public class RequestTask : IRelationsWithProxy
  Properties
AllowDecisionStamp
Indicates whether stamps are allowed for taking of the decisions.
Declaration
public bool AllowDecisionStamp { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
CreateDate
Creation date of the request.
Declaration
public DateTime CreateDate { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.DateTime | 
Decisions
List of request decisions.
Declaration
public List<RequestDecision> Decisions { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<RequestDecision> | 
Description
Description of the request.
Declaration
public string Description { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
DocId
Document id.
Declaration
public int DocId { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
DocumentName
Name of the document.
Declaration
public string DocumentName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
FcGuid
File cabinet id of the document.
Declaration
public string FcGuid { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
HistoryRelationLink
Gets the Uri of the link for the relation “history”.
Declaration
public string HistoryRelationLink { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Remarks
Returns the uri of the link for the relation “history” if it exists, or 
Id
Task identifier.
Declaration
public string Id { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
IsRead
Indicates whether the task is read.
Declaration
public bool IsRead { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Links
Declaration
public Link[] Links { get; set; }
  Property Value
| Type | Description | 
|---|---|
| Link[] | 
Owner
Name of the initiator of the request.
Declaration
public string Owner { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
ReadStatusRelationLink
Gets the Uri of the link for the relation “readStatus”.
Declaration
public string ReadStatusRelationLink { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Remarks
Returns the uri of the link for the relation “readStatus” if it exists, or 
SelfRelationLink
Gets the Uri of the link for the relation “self”.
Declaration
public string SelfRelationLink { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Remarks
Returns the uri of the link for the relation “self” if it exists, or 
StampSettingsRelationLink
Gets the Uri of the link for the relation “stampSettings”.
Declaration
public string StampSettingsRelationLink { get; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Remarks
Returns the uri of the link for the relation “stampSettings” if it exists, or 
WorkflowId
Request identifier.
Declaration
public string WorkflowId { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
WorkflowName
Name of the request.
Declaration
public string WorkflowName { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
Methods
GetInstanceHistoryFromHistoryRelation()
Calls the HTTP Get method on the link for the relation “history”.
Declaration
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.
Declaration
public Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync()
  Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.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.
Declaration
public Task<DeserializedHttpResponse<InstanceHistory>> GetInstanceHistoryFromHistoryRelationAsync(CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<InstanceHistory>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “history”.
GetRequestDecisionsStampSettingsFromStampSettingsRelation()
Calls the HTTP Get method on the link for the relation “stampSettings”.
Declaration
public RequestDecisionsStampSettings GetRequestDecisionsStampSettingsFromStampSettingsRelation()
  Returns
| Type | Description | 
|---|---|
| RequestDecisionsStampSettings | The content of the response.  | 
      
GetRequestDecisionsStampSettingsFromStampSettingsRelationAsync()
Calls the HTTP Get method on the link for the relation “stampSettings” asynchronously.
Declaration
public Task<DeserializedHttpResponse<RequestDecisionsStampSettings>> GetRequestDecisionsStampSettingsFromStampSettingsRelationAsync()
  Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<RequestDecisionsStampSettings>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “stampSettings”.
GetRequestDecisionsStampSettingsFromStampSettingsRelationAsync(CancellationToken)
Calls the HTTP Get method on the link for the relation “stampSettings” asynchronously.
Declaration
public Task<DeserializedHttpResponse<RequestDecisionsStampSettings>> GetRequestDecisionsStampSettingsFromStampSettingsRelationAsync(CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<RequestDecisionsStampSettings>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “stampSettings”.
GetRequestTaskFromSelfRelation()
Calls the HTTP Get method on the link for the relation “self”.
Declaration
public RequestTask GetRequestTaskFromSelfRelation()
  Returns
| Type | Description | 
|---|---|
| RequestTask | The content of the response.  | 
      
GetRequestTaskFromSelfRelationAsync()
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public Task<DeserializedHttpResponse<RequestTask>> GetRequestTaskFromSelfRelationAsync()
  Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTask>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “self”.
GetRequestTaskFromSelfRelationAsync(CancellationToken)
Calls the HTTP Get method on the link for the relation “self” asynchronously.
Declaration
public Task<DeserializedHttpResponse<RequestTask>> GetRequestTaskFromSelfRelationAsync(CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<RequestTask>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “self”.
PutToReadStatusRelationForString(Stream)
Calls the HTTP Put method on the link for the relation “readStatus”.
Declaration
public string PutToReadStatusRelationForString(Stream dataToSend)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body.  | 
      
Returns
| Type | Description | 
|---|---|
| System.String | The content of the response.  | 
      
PutToReadStatusRelationForStringAsync(Stream)
Calls the HTTP Put method on the link for the relation “readStatus” asynchronously.
Declaration
public Task<DeserializedHttpResponse<string>> PutToReadStatusRelationForStringAsync(Stream dataToSend)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<System.String>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “readStatus”.
PutToReadStatusRelationForStringAsync(CancellationToken, Stream)
Calls the HTTP Put method on the link for the relation “readStatus” asynchronously.
Declaration
public Task<DeserializedHttpResponse<string>> PutToReadStatusRelationForStringAsync(CancellationToken cancellationToken, Stream dataToSend)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request.  | 
      
| System.IO.Stream | dataToSend | The data to send. This data is written into the request body.  | 
      
Returns
| Type | Description | 
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<System.String>> | A task which runs the request.  | 
      
Remarks
This method follows the link for the relation “readStatus”.
SetProxy(HttpClientProxy)
Sets the HTTP communication proxy which is used in further HTTP communication.
Declaration
public void SetProxy(HttpClientProxy proxy)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpClientProxy | proxy | The System.Net.Http.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.