tvpl.api

<back to all web services

CreateWorkflowStepRequest

Requires Authentication
The following routes are available for this service:
POST/WorkflowStep/update
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports tvpl.api.ServiceModel
Imports tvpl.data.Models

Namespace Global

    Namespace tvpl.api.ServiceModel

        Public Partial Class CreateWorkflowStepRequest
            Inherits WorkflowStep
            Public Sub New()
                StepAttachFiles = New List(Of UploadedFiles)
            End Sub

            Public Overridable Property StepAttachFiles As List(Of UploadedFiles)
        End Class

        Public Partial Class UploadedFiles
            Inherits BasicUploadedFile
            Public Overridable Property Id As Nullable(Of Long)
            Public Overridable Property UploadedFile As String
            Public Overridable Property SubDocumentId As Nullable(Of Integer)
            Public Overridable Property StepId As Nullable(Of Integer)
            Public Overridable Property Code As Integer
        End Class

        Public Partial Class WorkflowStepResponse
            Implements IResponseRequest
            Public Overridable Property Code As Integer
            Public Overridable Property Message As String
            Public Overridable Property InsertedId As Integer
        End Class
    End Namespace

    Namespace tvpl.data.Models

        Public Partial Class BasicUploadedFile
            Public Overridable Property FileName As String
            Public Overridable Property Filekey As String
            Public Overridable Property FileUrl As String
            Public Overridable Property Checksum As String
            Public Overridable Property ETag As String
            Public Overridable Property FileSize As Long
        End Class

        Public Partial Class WorkflowStep
            Public Sub New()
                DepartmentIds = New List(Of Integer)
                StepBasisDocumentIds = New List(Of Integer)
                StepAttachedIds = New List(Of Integer)
                MainAssigneeIds = New List(Of Integer)
            End Sub

            Public Overridable Property Id As Integer
            <References(GetType(Document))>
            Public Overridable Property WorkflowId As Integer

            Public Overridable Property StepOrder As Nullable(Of Integer)
            <Required>
            <StringLength(255)>
            Public Overridable Property StepName As String

            <Required>
            Public Overridable Property IsRequired As Boolean

            Public Overridable Property SLALegalValue As Nullable(Of Integer)
            Public Overridable Property SLALegalIsByDay As Nullable(Of Boolean)
            Public Overridable Property SLAInternalValue As Nullable(Of Integer)
            Public Overridable Property SLAInternalIsByDay As Nullable(Of Boolean)
            Public Overridable Property RequireAttachment As Boolean
            <Required>
            Public Overridable Property Description As String

            Public Overridable Property CreatedBy As Integer
            <Ignore>
            Public Overridable Property DepartmentIds As List(Of Integer)

            <Ignore>
            Public Overridable Property StepBasisDocumentIds As List(Of Integer)

            <Ignore>
            Public Overridable Property StepAttachedIds As List(Of Integer)

            <Ignore>
            Public Overridable Property MainAssigneeIds As List(Of Integer)
        End Class
    End Namespace
End Namespace

VB.NET CreateWorkflowStepRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /WorkflowStep/update HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"stepAttachFiles":[{"id":0,"uploadedFile":"String","subDocumentId":0,"stepId":0,"code":0,"fileName":"String","filekey":"String","fileUrl":"String","checksum":"String","eTag":"String","fileSize":0}],"id":0,"workflowId":0,"stepOrder":0,"stepName":"String","isRequired":false,"slaLegalValue":0,"slaLegalIsByDay":false,"slaInternalValue":0,"slaInternalIsByDay":false,"requireAttachment":false,"description":"String","createdBy":0,"departmentIds":[0],"stepBasisDocumentIds":[0],"stepAttachedIds":[0],"mainAssigneeIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"code":0,"message":"String","insertedId":0}