| POST | /api/workflowtasks/finish |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.Workflow.API.Operations
Imports IDB.Workflow.API.DTOs
Namespace Global
Namespace IDB.Workflow.API.DTOs
Public Partial Class WorkflowTransitionDTO
Public Overridable Property ID As Guid
Public Overridable Property Name As String
Public Overridable Property AssignmentAtStartWorkflowIsAdHoc As Boolean
Public Overridable Property AssignmentIsAdHocRequired As Boolean
Public Overridable Property DeferAtStartWorkflowIsAdHoc As Boolean
Public Overridable Property IsNext As Boolean
Public Overridable Property UserIDs As List(Of Integer)
Public Overridable Property GroupIDs As List(Of Integer)
Public Overridable Property RoleIDs As List(Of Integer)
Public Overridable Property DeferUntil As Date?
Public Overridable Property DeferralNote As String
End Class
End Namespace
Namespace IDB.Workflow.API.Operations
Public Partial Class FinishTaskOperation
Public Overridable Property TaskIDs As Integer()
Public Overridable Property WSVerbindingID As Guid?
Public Overridable Property Transitions As IEnumerable(Of WorkflowTransitionDTO)
Public Overridable Property DeferTo As Date?
Public Overridable Property Reason As String
Public Overridable Property Comment As String
End Class
End Namespace
End Namespace
VB.NET FinishTaskOperation DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/workflowtasks/finish HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"TaskIDs":[0],"WSVerbindingID":"00000000-0000-0000-0000-000000000000","Transitions":null,"DeferTo":"0001-01-01T00:00:00.0000000","Reason":"String","Comment":"String"}