Class Decision
- Namespace
- DocuWare.Platform.Bpw.Schemas
- Assembly
- DocuWare.Platform.ServerClient.dll
public class Decision : IRelationsWithProxy
- Inheritance
-
Decision
Properties
ConfirmRelationLink
Gets the Uri of the link for the relation “confirm”.
public string ConfirmRelationLink { get; }
Property Value
| Type | Description |
|---|---|
| String |
Remarks
Returns the uri of the link for the relation “confirm” if it exists, or
DecisionLabel
public string DecisionLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Description
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
FormField
public List<Field> FormField { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Field> |
Forms
public List<BaseForm> Forms { get; set; }
Property Value
| Type | Description |
|---|---|
| List<BaseForm> |
Id
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
IsDefaultDecision
public bool IsDefaultDecision { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Links
public Link[] Links { get; set; }
Property Value
| Type | Description |
|---|---|
| Link[] |
StampColor
public string StampColor { get; set; }
Property Value
| Type | Description |
|---|---|
| String |
Methods
PostToConfirmRelationForString(DecisionData)
Calls the HTTP Post method on the link for the relation “confirm”.
public string PostToConfirmRelationForString(DecisionData dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| DecisionData | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| String | The content of the response. |
PostToConfirmRelationForStringAsync(DecisionData)
Calls the HTTP Post method on the link for the relation “confirm” asynchronously.
public System.Threading.Tasks.Task<DeserializedHttpResponse<string>> PostToConfirmRelationForStringAsync(DecisionData dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| DecisionData | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<String>> | A task which runs the request. |
Remarks
This method follows the link for the relation “confirm”.
PostToConfirmRelationForStringAsync(System.Threading.CancellationToken, DecisionData)
Calls the HTTP Post method on the link for the relation “confirm” asynchronously.
public System.Threading.Tasks.Task<DeserializedHttpResponse<string>> PostToConfirmRelationForStringAsync(System.Threading.CancellationToken cancellationToken, DecisionData dataToSend)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the request. |
| DecisionData | dataToSend | The data to send. This data is written into the request body. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<String>> | A task which runs the request. |
Remarks
This method follows the link for the relation “confirm”.
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 |
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.