tvpl.api

<back to all web services

GetSingleWorkflowStepRequest

Requires Authentication
The following routes are available for this service:
GET/WorkflowStep/{WorkflowId}/{StepId}
import 'package:servicestack/servicestack.dart';

class BasicUploadedFile implements IConvertible
{
    String? fileName;
    String? filekey;
    String? fileUrl;
    String? checksum;
    String? eTag;
    int? fileSize;

    BasicUploadedFile({this.fileName,this.filekey,this.fileUrl,this.checksum,this.eTag,this.fileSize});
    BasicUploadedFile.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        fileName = json['fileName'];
        filekey = json['filekey'];
        fileUrl = json['fileUrl'];
        checksum = json['checksum'];
        eTag = json['eTag'];
        fileSize = json['fileSize'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'fileName': fileName,
        'filekey': filekey,
        'fileUrl': fileUrl,
        'checksum': checksum,
        'eTag': eTag,
        'fileSize': fileSize
    };

    getTypeName() => "BasicUploadedFile";
    TypeContext? context = _ctx;
}

class UploadedFiles extends BasicUploadedFile implements IConvertible
{
    int? id;
    String? uploadedFile;
    int? subDocumentId;
    int? stepId;
    int? code;

    UploadedFiles({this.id,this.uploadedFile,this.subDocumentId,this.stepId,this.code});
    UploadedFiles.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        id = json['id'];
        uploadedFile = json['uploadedFile'];
        subDocumentId = json['subDocumentId'];
        stepId = json['stepId'];
        code = json['code'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id,
        'uploadedFile': uploadedFile,
        'subDocumentId': subDocumentId,
        'stepId': stepId,
        'code': code
    });

    getTypeName() => "UploadedFiles";
    TypeContext? context = _ctx;
}

class BasicSignerConfig implements IConvertible
{
    int? subDocumentId;
    int? departmentId;
    int? signerType;
    int? signerRefId;
    // @ignore()
    String? signerRefText;

    int? actionType;
    int? orderIndex;

    BasicSignerConfig({this.subDocumentId,this.departmentId,this.signerType,this.signerRefId,this.signerRefText,this.actionType,this.orderIndex});
    BasicSignerConfig.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        subDocumentId = json['subDocumentId'];
        departmentId = json['departmentId'];
        signerType = json['signerType'];
        signerRefId = json['signerRefId'];
        signerRefText = json['signerRefText'];
        actionType = json['actionType'];
        orderIndex = json['orderIndex'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'subDocumentId': subDocumentId,
        'departmentId': departmentId,
        'signerType': signerType,
        'signerRefId': signerRefId,
        'signerRefText': signerRefText,
        'actionType': actionType,
        'orderIndex': orderIndex
    };

    getTypeName() => "BasicSignerConfig";
    TypeContext? context = _ctx;
}

class SignerConfig extends BasicSignerConfig implements IConvertible
{
    int? id;
    int? documentId;
    int? stepId;

    SignerConfig({this.id,this.documentId,this.stepId});
    SignerConfig.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        id = json['id'];
        documentId = json['documentId'];
        stepId = json['stepId'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id,
        'documentId': documentId,
        'stepId': stepId
    });

    getTypeName() => "SignerConfig";
    TypeContext? context = _ctx;
}

class WorkFlowProfile implements IConvertible
{
    int? id;
    String? name;
    String? fullName;
    String? email;
    int? departmentId;
    String? avatar;
    String? telephone;
    DateTime? birthday;
    int? confirmStatus;
    String? confirmStatusText;
    DateTime? confirmAt;
    DateTime? signAt;
    int? signedFileId;
    int? originalFileId;
    String? signedFileName;
    bool? isSigned;
    String? signStatusText;
    String? comment;

    WorkFlowProfile({this.id,this.name,this.fullName,this.email,this.departmentId,this.avatar,this.telephone,this.birthday,this.confirmStatus,this.confirmStatusText,this.confirmAt,this.signAt,this.signedFileId,this.originalFileId,this.signedFileName,this.isSigned,this.signStatusText,this.comment});
    WorkFlowProfile.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        fullName = json['fullName'];
        email = json['email'];
        departmentId = json['departmentId'];
        avatar = json['avatar'];
        telephone = json['telephone'];
        birthday = JsonConverters.fromJson(json['birthday'],'DateTime',context!);
        confirmStatus = json['confirmStatus'];
        confirmStatusText = json['confirmStatusText'];
        confirmAt = JsonConverters.fromJson(json['confirmAt'],'DateTime',context!);
        signAt = JsonConverters.fromJson(json['signAt'],'DateTime',context!);
        signedFileId = json['signedFileId'];
        originalFileId = json['originalFileId'];
        signedFileName = json['signedFileName'];
        isSigned = json['isSigned'];
        signStatusText = json['signStatusText'];
        comment = json['comment'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'fullName': fullName,
        'email': email,
        'departmentId': departmentId,
        'avatar': avatar,
        'telephone': telephone,
        'birthday': JsonConverters.toJson(birthday,'DateTime',context!),
        'confirmStatus': confirmStatus,
        'confirmStatusText': confirmStatusText,
        'confirmAt': JsonConverters.toJson(confirmAt,'DateTime',context!),
        'signAt': JsonConverters.toJson(signAt,'DateTime',context!),
        'signedFileId': signedFileId,
        'originalFileId': originalFileId,
        'signedFileName': signedFileName,
        'isSigned': isSigned,
        'signStatusText': signStatusText,
        'comment': comment
    };

    getTypeName() => "WorkFlowProfile";
    TypeContext? context = _ctx;
}

class Roles implements IConvertible
{
    int? id;
    // @StringLength(50)
    String? name;

    DateTime? createdAt;
    DateTime? deletedAt;
    DateTime? updatedAt;
    int? updatedBy;
    int? deletedBy;
    int? createdBy;
    // @ignore()
    List<String>? permission;

    Roles({this.id,this.name,this.createdAt,this.deletedAt,this.updatedAt,this.updatedBy,this.deletedBy,this.createdBy,this.permission});
    Roles.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        name = json['name'];
        createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
        deletedAt = JsonConverters.fromJson(json['deletedAt'],'DateTime',context!);
        updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!);
        updatedBy = json['updatedBy'];
        deletedBy = json['deletedBy'];
        createdBy = json['createdBy'];
        permission = JsonConverters.fromJson(json['permission'],'List<String>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'name': name,
        'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
        'deletedAt': JsonConverters.toJson(deletedAt,'DateTime',context!),
        'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!),
        'updatedBy': updatedBy,
        'deletedBy': deletedBy,
        'createdBy': createdBy,
        'permission': JsonConverters.toJson(permission,'List<String>',context!)
    };

    getTypeName() => "Roles";
    TypeContext? context = _ctx;
}

class SignerConfigDetail extends SignerConfig implements IConvertible
{
    WorkFlowProfile? profile;
    Roles? role;

    SignerConfigDetail({this.profile,this.role});
    SignerConfigDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        profile = JsonConverters.fromJson(json['profile'],'WorkFlowProfile',context!);
        role = JsonConverters.fromJson(json['role'],'Roles',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'profile': JsonConverters.toJson(profile,'WorkFlowProfile',context!),
        'role': JsonConverters.toJson(role,'Roles',context!)
    });

    getTypeName() => "SignerConfigDetail";
    TypeContext? context = _ctx;
}

class StepAttached implements IConvertible
{
    int? id;
    String? documentCode;
    String? title;
    bool? isSequentialSigning;
    UploadedFiles? pendingSignFile;
    UploadedFiles? originalFile;
    List<SignerConfigDetail>? signerConfigs;

    StepAttached({this.id,this.documentCode,this.title,this.isSequentialSigning,this.pendingSignFile,this.originalFile,this.signerConfigs});
    StepAttached.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        documentCode = json['documentCode'];
        title = json['title'];
        isSequentialSigning = json['isSequentialSigning'];
        pendingSignFile = JsonConverters.fromJson(json['pendingSignFile'],'UploadedFiles',context!);
        originalFile = JsonConverters.fromJson(json['originalFile'],'UploadedFiles',context!);
        signerConfigs = JsonConverters.fromJson(json['signerConfigs'],'List<SignerConfigDetail>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'documentCode': documentCode,
        'title': title,
        'isSequentialSigning': isSequentialSigning,
        'pendingSignFile': JsonConverters.toJson(pendingSignFile,'UploadedFiles',context!),
        'originalFile': JsonConverters.toJson(originalFile,'UploadedFiles',context!),
        'signerConfigs': JsonConverters.toJson(signerConfigs,'List<SignerConfigDetail>',context!)
    };

    getTypeName() => "StepAttached";
    TypeContext? context = _ctx;
}

class WorkflowStep implements IConvertible
{
    int? id;
    // @References(typeof(Document))
    int? workflowId;

    int? stepOrder;
    int? statusId;
    // @required()
    // @StringLength(255)
    String? stepName;

    // @required()
    bool? isRequired;

    int? slaLegalValue;
    bool? slaLegalIsByDay;
    int? slaInternalValue;
    bool? slaInternalIsByDay;
    bool? requireAttachment;
    bool? isUsingForm;
    // @required()
    String? description;

    int? createdBy;
    DateTime? updatedAt;
    int? defaultAttachedDocumentId;
    // @ignore()
    List<int>? departmentIds;

    // @ignore()
    List<int>? mainAssigneeIds;

    // @ignore()
    List<int>? coDepartmentIds;

    // @ignore()
    List<int>? supportingAssigneeIds;

    // @ignore()
    List<int>? stepBasisDocumentIds;

    // @ignore()
    List<StepAttached>? attachedDocuments;

    // @ignore()
    List<UploadedFiles>? attachedFiles;

    WorkflowStep({this.id,this.workflowId,this.stepOrder,this.statusId,this.stepName,this.isRequired,this.slaLegalValue,this.slaLegalIsByDay,this.slaInternalValue,this.slaInternalIsByDay,this.requireAttachment,this.isUsingForm,this.description,this.createdBy,this.updatedAt,this.defaultAttachedDocumentId,this.departmentIds,this.mainAssigneeIds,this.coDepartmentIds,this.supportingAssigneeIds,this.stepBasisDocumentIds,this.attachedDocuments,this.attachedFiles});
    WorkflowStep.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        workflowId = json['workflowId'];
        stepOrder = json['stepOrder'];
        statusId = json['statusId'];
        stepName = json['stepName'];
        isRequired = json['isRequired'];
        slaLegalValue = json['slaLegalValue'];
        slaLegalIsByDay = json['slaLegalIsByDay'];
        slaInternalValue = json['slaInternalValue'];
        slaInternalIsByDay = json['slaInternalIsByDay'];
        requireAttachment = json['requireAttachment'];
        isUsingForm = json['isUsingForm'];
        description = json['description'];
        createdBy = json['createdBy'];
        updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!);
        defaultAttachedDocumentId = json['defaultAttachedDocumentId'];
        departmentIds = JsonConverters.fromJson(json['departmentIds'],'List<int>',context!);
        mainAssigneeIds = JsonConverters.fromJson(json['mainAssigneeIds'],'List<int>',context!);
        coDepartmentIds = JsonConverters.fromJson(json['coDepartmentIds'],'List<int>',context!);
        supportingAssigneeIds = JsonConverters.fromJson(json['supportingAssigneeIds'],'List<int>',context!);
        stepBasisDocumentIds = JsonConverters.fromJson(json['stepBasisDocumentIds'],'List<int>',context!);
        attachedDocuments = JsonConverters.fromJson(json['attachedDocuments'],'List<StepAttached>',context!);
        attachedFiles = JsonConverters.fromJson(json['attachedFiles'],'List<UploadedFiles>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'workflowId': workflowId,
        'stepOrder': stepOrder,
        'statusId': statusId,
        'stepName': stepName,
        'isRequired': isRequired,
        'slaLegalValue': slaLegalValue,
        'slaLegalIsByDay': slaLegalIsByDay,
        'slaInternalValue': slaInternalValue,
        'slaInternalIsByDay': slaInternalIsByDay,
        'requireAttachment': requireAttachment,
        'isUsingForm': isUsingForm,
        'description': description,
        'createdBy': createdBy,
        'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!),
        'defaultAttachedDocumentId': defaultAttachedDocumentId,
        'departmentIds': JsonConverters.toJson(departmentIds,'List<int>',context!),
        'mainAssigneeIds': JsonConverters.toJson(mainAssigneeIds,'List<int>',context!),
        'coDepartmentIds': JsonConverters.toJson(coDepartmentIds,'List<int>',context!),
        'supportingAssigneeIds': JsonConverters.toJson(supportingAssigneeIds,'List<int>',context!),
        'stepBasisDocumentIds': JsonConverters.toJson(stepBasisDocumentIds,'List<int>',context!),
        'attachedDocuments': JsonConverters.toJson(attachedDocuments,'List<StepAttached>',context!),
        'attachedFiles': JsonConverters.toJson(attachedFiles,'List<UploadedFiles>',context!)
    };

    getTypeName() => "WorkflowStep";
    TypeContext? context = _ctx;
}

enum CategoryTypes
{
    Department,
    PartyGroup,
    DocGroup,
    DocType,
    IssuingAgency,
    Status,
    Subjects,
    Workflow,
    WorkStatus,
    StepStatus,
    SignStatus,
}

class CreateCategoryModel implements IConvertible
{
    String? name;
    String? longName;
    String? description;
    CategoryTypes? type;
    bool? isParty;
    // @ignore()
    List<int>? childList;

    CreateCategoryModel({this.name,this.longName,this.description,this.type,this.isParty,this.childList});
    CreateCategoryModel.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        name = json['name'];
        longName = json['longName'];
        description = json['description'];
        type = JsonConverters.fromJson(json['type'],'CategoryTypes',context!);
        isParty = json['isParty'];
        childList = JsonConverters.fromJson(json['childList'],'List<int>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'name': name,
        'longName': longName,
        'description': description,
        'type': JsonConverters.toJson(type,'CategoryTypes',context!),
        'isParty': isParty,
        'childList': JsonConverters.toJson(childList,'List<int>',context!)
    };

    getTypeName() => "CreateCategoryModel";
    TypeContext? context = _ctx;
}

class Category extends CreateCategoryModel implements IConvertible
{
    int? id;
    int? level;
    String? key;
    int? sortOrder;
    DateTime? lastUpdate;
    // @ignore()
    List<Category>? children;

    Category({this.id,this.level,this.key,this.sortOrder,this.lastUpdate,this.children});
    Category.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        id = json['id'];
        level = json['level'];
        key = json['key'];
        sortOrder = json['sortOrder'];
        lastUpdate = JsonConverters.fromJson(json['lastUpdate'],'DateTime',context!);
        children = JsonConverters.fromJson(json['children'],'List<Category>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'id': id,
        'level': level,
        'key': key,
        'sortOrder': sortOrder,
        'lastUpdate': JsonConverters.toJson(lastUpdate,'DateTime',context!),
        'children': JsonConverters.toJson(children,'List<Category>',context!)
    });

    getTypeName() => "Category";
    TypeContext? context = _ctx;
}

class SimpleDocumentRelation implements IConvertible
{
    int? id;
    String? title;
    String? documentCode;
    DateTime? publicationDate;
    bool? isSequentialSigning;
    String? statusText;
    String? statusKey;
    int? documentTypeId;

    SimpleDocumentRelation({this.id,this.title,this.documentCode,this.publicationDate,this.isSequentialSigning,this.statusText,this.statusKey,this.documentTypeId});
    SimpleDocumentRelation.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        title = json['title'];
        documentCode = json['documentCode'];
        publicationDate = JsonConverters.fromJson(json['publicationDate'],'DateTime',context!);
        isSequentialSigning = json['isSequentialSigning'];
        statusText = json['statusText'];
        statusKey = json['statusKey'];
        documentTypeId = json['documentTypeId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'title': title,
        'documentCode': documentCode,
        'publicationDate': JsonConverters.toJson(publicationDate,'DateTime',context!),
        'isSequentialSigning': isSequentialSigning,
        'statusText': statusText,
        'statusKey': statusKey,
        'documentTypeId': documentTypeId
    };

    getTypeName() => "SimpleDocumentRelation";
    TypeContext? context = _ctx;
}

class WorkflowStepDetail extends WorkflowStep implements IConvertible
{
    List<Category>? departments;
    List<Category>? coDepartments;
    List<SimpleDocumentRelation>? basisDocuments;
    List<SimpleDocumentRelation>? referenceDocuments;
    List<WorkFlowProfile>? mainAssignees;
    List<WorkFlowProfile>? supportingAssignees;
    String? statusKey;
    String? statusText;
    // @ignore()
    bool? canRead;

    // @ignore()
    bool? canWrite;

    // @ignore()
    bool? canUpload;

    String? reasonReturn;
    DateTime? returnDate;

    WorkflowStepDetail({this.departments,this.coDepartments,this.basisDocuments,this.referenceDocuments,this.mainAssignees,this.supportingAssignees,this.statusKey,this.statusText,this.canRead,this.canWrite,this.canUpload,this.reasonReturn,this.returnDate});
    WorkflowStepDetail.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        departments = JsonConverters.fromJson(json['departments'],'List<Category>',context!);
        coDepartments = JsonConverters.fromJson(json['coDepartments'],'List<Category>',context!);
        basisDocuments = JsonConverters.fromJson(json['basisDocuments'],'List<SimpleDocumentRelation>',context!);
        referenceDocuments = JsonConverters.fromJson(json['referenceDocuments'],'List<SimpleDocumentRelation>',context!);
        mainAssignees = JsonConverters.fromJson(json['mainAssignees'],'List<WorkFlowProfile>',context!);
        supportingAssignees = JsonConverters.fromJson(json['supportingAssignees'],'List<WorkFlowProfile>',context!);
        statusKey = json['statusKey'];
        statusText = json['statusText'];
        canRead = json['canRead'];
        canWrite = json['canWrite'];
        canUpload = json['canUpload'];
        reasonReturn = json['reasonReturn'];
        returnDate = JsonConverters.fromJson(json['returnDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'departments': JsonConverters.toJson(departments,'List<Category>',context!),
        'coDepartments': JsonConverters.toJson(coDepartments,'List<Category>',context!),
        'basisDocuments': JsonConverters.toJson(basisDocuments,'List<SimpleDocumentRelation>',context!),
        'referenceDocuments': JsonConverters.toJson(referenceDocuments,'List<SimpleDocumentRelation>',context!),
        'mainAssignees': JsonConverters.toJson(mainAssignees,'List<WorkFlowProfile>',context!),
        'supportingAssignees': JsonConverters.toJson(supportingAssignees,'List<WorkFlowProfile>',context!),
        'statusKey': statusKey,
        'statusText': statusText,
        'canRead': canRead,
        'canWrite': canWrite,
        'canUpload': canUpload,
        'reasonReturn': reasonReturn,
        'returnDate': JsonConverters.toJson(returnDate,'DateTime',context!)
    });

    getTypeName() => "WorkflowStepDetail";
    TypeContext? context = _ctx;
}

class GetSingleWorkflowStepResponse implements IResponseRequest, IConvertible
{
    int? code;
    String? message;
    WorkflowStepDetail? data;

    GetSingleWorkflowStepResponse({this.code,this.message,this.data});
    GetSingleWorkflowStepResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        code = json['code'];
        message = json['message'];
        data = JsonConverters.fromJson(json['data'],'WorkflowStepDetail',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'code': code,
        'message': message,
        'data': JsonConverters.toJson(data,'WorkflowStepDetail',context!)
    };

    getTypeName() => "GetSingleWorkflowStepResponse";
    TypeContext? context = _ctx;
}

class GetSingleWorkflowStepRequest implements IConvertible
{
    int? workflowId;
    int? stepId;

    GetSingleWorkflowStepRequest({this.workflowId,this.stepId});
    GetSingleWorkflowStepRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        workflowId = json['workflowId'];
        stepId = json['stepId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'workflowId': workflowId,
        'stepId': stepId
    };

    getTypeName() => "GetSingleWorkflowStepRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
    'BasicUploadedFile': TypeInfo(TypeOf.Class, create:() => BasicUploadedFile()),
    'UploadedFiles': TypeInfo(TypeOf.Class, create:() => UploadedFiles()),
    'BasicSignerConfig': TypeInfo(TypeOf.Class, create:() => BasicSignerConfig()),
    'SignerConfig': TypeInfo(TypeOf.Class, create:() => SignerConfig()),
    'WorkFlowProfile': TypeInfo(TypeOf.Class, create:() => WorkFlowProfile()),
    'Roles': TypeInfo(TypeOf.Class, create:() => Roles()),
    'SignerConfigDetail': TypeInfo(TypeOf.Class, create:() => SignerConfigDetail()),
    'StepAttached': TypeInfo(TypeOf.Class, create:() => StepAttached()),
    'List<SignerConfigDetail>': TypeInfo(TypeOf.Class, create:() => <SignerConfigDetail>[]),
    'WorkflowStep': TypeInfo(TypeOf.Class, create:() => WorkflowStep()),
    'List<StepAttached>': TypeInfo(TypeOf.Class, create:() => <StepAttached>[]),
    'List<UploadedFiles>': TypeInfo(TypeOf.Class, create:() => <UploadedFiles>[]),
    'CategoryTypes': TypeInfo(TypeOf.Enum, enumValues:CategoryTypes.values),
    'CreateCategoryModel': TypeInfo(TypeOf.Class, create:() => CreateCategoryModel()),
    'Category': TypeInfo(TypeOf.Class, create:() => Category()),
    'List<Category>': TypeInfo(TypeOf.Class, create:() => <Category>[]),
    'SimpleDocumentRelation': TypeInfo(TypeOf.Class, create:() => SimpleDocumentRelation()),
    'WorkflowStepDetail': TypeInfo(TypeOf.Class, create:() => WorkflowStepDetail()),
    'List<SimpleDocumentRelation>': TypeInfo(TypeOf.Class, create:() => <SimpleDocumentRelation>[]),
    'List<WorkFlowProfile>': TypeInfo(TypeOf.Class, create:() => <WorkFlowProfile>[]),
    'GetSingleWorkflowStepResponse': TypeInfo(TypeOf.Class, create:() => GetSingleWorkflowStepResponse()),
    'GetSingleWorkflowStepRequest': TypeInfo(TypeOf.Class, create:() => GetSingleWorkflowStepRequest()),
});

Dart GetSingleWorkflowStepRequest DTOs

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

HTTP + XML

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

GET /WorkflowStep/{WorkflowId}/{StepId} HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetSingleWorkflowStepResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/tvpl.api.ServiceModel">
  <Code>0</Code>
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/tvpl.data.Models">
    <d2p1:AttachedDocuments>
      <d2p1:StepAttached>
        <d2p1:DocumentCode>String</d2p1:DocumentCode>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsSequentialSigning>false</d2p1:IsSequentialSigning>
        <d2p1:OriginalFile>
          <d2p1:Checksum>String</d2p1:Checksum>
          <d2p1:ETag>String</d2p1:ETag>
          <d2p1:FileName>String</d2p1:FileName>
          <d2p1:FileSize>0</d2p1:FileSize>
          <d2p1:FileUrl>String</d2p1:FileUrl>
          <d2p1:Filekey>String</d2p1:Filekey>
          <d2p1:Code>0</d2p1:Code>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:StepId>0</d2p1:StepId>
          <d2p1:SubDocumentId>0</d2p1:SubDocumentId>
          <d2p1:UploadedFile>String</d2p1:UploadedFile>
        </d2p1:OriginalFile>
        <d2p1:PendingSignFile>
          <d2p1:Checksum>String</d2p1:Checksum>
          <d2p1:ETag>String</d2p1:ETag>
          <d2p1:FileName>String</d2p1:FileName>
          <d2p1:FileSize>0</d2p1:FileSize>
          <d2p1:FileUrl>String</d2p1:FileUrl>
          <d2p1:Filekey>String</d2p1:Filekey>
          <d2p1:Code>0</d2p1:Code>
          <d2p1:Id>0</d2p1:Id>
          <d2p1:StepId>0</d2p1:StepId>
          <d2p1:SubDocumentId>0</d2p1:SubDocumentId>
          <d2p1:UploadedFile>String</d2p1:UploadedFile>
        </d2p1:PendingSignFile>
        <d2p1:SignerConfigs>
          <d2p1:SignerConfigDetail>
            <d2p1:ActionType>0</d2p1:ActionType>
            <d2p1:DepartmentId>0</d2p1:DepartmentId>
            <d2p1:OrderIndex>0</d2p1:OrderIndex>
            <d2p1:SignerRefId>0</d2p1:SignerRefId>
            <d2p1:SignerRefText>String</d2p1:SignerRefText>
            <d2p1:SignerType>0</d2p1:SignerType>
            <d2p1:SubDocumentId>0</d2p1:SubDocumentId>
            <d2p1:CreateAt>0001-01-01T00:00:00</d2p1:CreateAt>
            <d2p1:CreateBy>0</d2p1:CreateBy>
            <d2p1:DocumentId>0</d2p1:DocumentId>
            <d2p1:Id>0</d2p1:Id>
            <d2p1:StepId>0</d2p1:StepId>
            <d2p1:Profile>
              <d2p1:Avatar>String</d2p1:Avatar>
              <d2p1:Birthday>0001-01-01T00:00:00</d2p1:Birthday>
              <d2p1:Comment>String</d2p1:Comment>
              <d2p1:ConfirmAt>0001-01-01T00:00:00</d2p1:ConfirmAt>
              <d2p1:ConfirmStatus>0</d2p1:ConfirmStatus>
              <d2p1:ConfirmStatusText>String</d2p1:ConfirmStatusText>
              <d2p1:DepartmentId>0</d2p1:DepartmentId>
              <d2p1:Email>String</d2p1:Email>
              <d2p1:FullName>String</d2p1:FullName>
              <d2p1:Id>0</d2p1:Id>
              <d2p1:IsSigned>false</d2p1:IsSigned>
              <d2p1:Name>String</d2p1:Name>
              <d2p1:OriginalFileId>0</d2p1:OriginalFileId>
              <d2p1:SignAt>0001-01-01T00:00:00</d2p1:SignAt>
              <d2p1:SignStatusText>String</d2p1:SignStatusText>
              <d2p1:SignedFileId>0</d2p1:SignedFileId>
              <d2p1:SignedFileName>String</d2p1:SignedFileName>
              <d2p1:Telephone>String</d2p1:Telephone>
            </d2p1:Profile>
            <d2p1:Role>
              <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
              <d2p1:CreatedBy>0</d2p1:CreatedBy>
              <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
              <d2p1:DeletedBy>0</d2p1:DeletedBy>
              <d2p1:Id>0</d2p1:Id>
              <d2p1:Name>String</d2p1:Name>
              <d2p1:Permission xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                <d8p1:string>String</d8p1:string>
              </d2p1:Permission>
              <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
              <d2p1:UpdatedBy>0</d2p1:UpdatedBy>
            </d2p1:Role>
          </d2p1:SignerConfigDetail>
        </d2p1:SignerConfigs>
        <d2p1:Title>String</d2p1:Title>
      </d2p1:StepAttached>
    </d2p1:AttachedDocuments>
    <d2p1:AttachedFiles>
      <d2p1:UploadedFiles>
        <d2p1:Checksum>String</d2p1:Checksum>
        <d2p1:ETag>String</d2p1:ETag>
        <d2p1:FileName>String</d2p1:FileName>
        <d2p1:FileSize>0</d2p1:FileSize>
        <d2p1:FileUrl>String</d2p1:FileUrl>
        <d2p1:Filekey>String</d2p1:Filekey>
        <d2p1:Code>0</d2p1:Code>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:StepId>0</d2p1:StepId>
        <d2p1:SubDocumentId>0</d2p1:SubDocumentId>
        <d2p1:UploadedFile>String</d2p1:UploadedFile>
      </d2p1:UploadedFiles>
    </d2p1:AttachedFiles>
    <d2p1:CoDepartmentIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:CoDepartmentIds>
    <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
    <d2p1:CreatedBy>0</d2p1:CreatedBy>
    <d2p1:DefaultAttachedDocumentId>0</d2p1:DefaultAttachedDocumentId>
    <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
    <d2p1:DeletedBy>0</d2p1:DeletedBy>
    <d2p1:DepartmentIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:DepartmentIds>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:IsRequired>false</d2p1:IsRequired>
    <d2p1:IsUsingForm>false</d2p1:IsUsingForm>
    <d2p1:MainAssigneeIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:MainAssigneeIds>
    <d2p1:RequireAttachment>false</d2p1:RequireAttachment>
    <d2p1:SLAInternalIsByDay>false</d2p1:SLAInternalIsByDay>
    <d2p1:SLAInternalValue>0</d2p1:SLAInternalValue>
    <d2p1:SLALegalIsByDay>false</d2p1:SLALegalIsByDay>
    <d2p1:SLALegalValue>0</d2p1:SLALegalValue>
    <d2p1:SLAWarningSentAt>0001-01-01T00:00:00</d2p1:SLAWarningSentAt>
    <d2p1:SLAWarningSentCount>0</d2p1:SLAWarningSentCount>
    <d2p1:StatusId>0</d2p1:StatusId>
    <d2p1:StepBasisDocumentIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:StepBasisDocumentIds>
    <d2p1:StepName>String</d2p1:StepName>
    <d2p1:StepOrder>0</d2p1:StepOrder>
    <d2p1:SupportingAssigneeIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:int>0</d3p1:int>
    </d2p1:SupportingAssigneeIds>
    <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
    <d2p1:UpdatedBy>0</d2p1:UpdatedBy>
    <d2p1:WorkflowId>0</d2p1:WorkflowId>
    <d2p1:BasisDocuments>
      <d2p1:SimpleDocumentRelation>
        <d2p1:DocumentCode>String</d2p1:DocumentCode>
        <d2p1:DocumentTypeId>0</d2p1:DocumentTypeId>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsSequentialSigning>false</d2p1:IsSequentialSigning>
        <d2p1:PublicationDate>0001-01-01T00:00:00</d2p1:PublicationDate>
        <d2p1:StatusKey>String</d2p1:StatusKey>
        <d2p1:StatusText>String</d2p1:StatusText>
        <d2p1:Title>String</d2p1:Title>
        <d2p1:Type>String</d2p1:Type>
      </d2p1:SimpleDocumentRelation>
    </d2p1:BasisDocuments>
    <d2p1:CanRead>false</d2p1:CanRead>
    <d2p1:CanUpload>false</d2p1:CanUpload>
    <d2p1:CanWrite>false</d2p1:CanWrite>
    <d2p1:CoDepartments>
      <d2p1:Category>
        <d2p1:ChildList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ChildList>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:IsParty>false</d2p1:IsParty>
        <d2p1:LongName>String</d2p1:LongName>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Type>Department</d2p1:Type>
        <d2p1:Children>
          <d2p1:Category>
            <d2p1:ChildList xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:ChildList>
            <d2p1:Description>String</d2p1:Description>
            <d2p1:IsParty>false</d2p1:IsParty>
            <d2p1:LongName>String</d2p1:LongName>
            <d2p1:Name>String</d2p1:Name>
            <d2p1:Type>Department</d2p1:Type>
            <d2p1:Children>
              <d2p1:Category>
                <d2p1:ChildList xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:int>0</d9p1:int>
                </d2p1:ChildList>
                <d2p1:Description>String</d2p1:Description>
                <d2p1:IsParty>false</d2p1:IsParty>
                <d2p1:LongName>String</d2p1:LongName>
                <d2p1:Name>String</d2p1:Name>
                <d2p1:Type>Department</d2p1:Type>
                <d2p1:Children i:nil="true" />
                <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
                <d2p1:CreatedBy>0</d2p1:CreatedBy>
                <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
                <d2p1:DeletedBy>0</d2p1:DeletedBy>
                <d2p1:Id>0</d2p1:Id>
                <d2p1:IsDeleted>false</d2p1:IsDeleted>
                <d2p1:Key>String</d2p1:Key>
                <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
                <d2p1:Level>0</d2p1:Level>
                <d2p1:SortOrder>0</d2p1:SortOrder>
              </d2p1:Category>
            </d2p1:Children>
            <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
            <d2p1:CreatedBy>0</d2p1:CreatedBy>
            <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
            <d2p1:DeletedBy>0</d2p1:DeletedBy>
            <d2p1:Id>0</d2p1:Id>
            <d2p1:IsDeleted>false</d2p1:IsDeleted>
            <d2p1:Key>String</d2p1:Key>
            <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
            <d2p1:Level>0</d2p1:Level>
            <d2p1:SortOrder>0</d2p1:SortOrder>
          </d2p1:Category>
        </d2p1:Children>
        <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
        <d2p1:CreatedBy>0</d2p1:CreatedBy>
        <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
        <d2p1:DeletedBy>0</d2p1:DeletedBy>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsDeleted>false</d2p1:IsDeleted>
        <d2p1:Key>String</d2p1:Key>
        <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
        <d2p1:Level>0</d2p1:Level>
        <d2p1:SortOrder>0</d2p1:SortOrder>
      </d2p1:Category>
    </d2p1:CoDepartments>
    <d2p1:Departments>
      <d2p1:Category>
        <d2p1:ChildList xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:int>0</d5p1:int>
        </d2p1:ChildList>
        <d2p1:Description>String</d2p1:Description>
        <d2p1:IsParty>false</d2p1:IsParty>
        <d2p1:LongName>String</d2p1:LongName>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Type>Department</d2p1:Type>
        <d2p1:Children>
          <d2p1:Category>
            <d2p1:ChildList xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:int>0</d7p1:int>
            </d2p1:ChildList>
            <d2p1:Description>String</d2p1:Description>
            <d2p1:IsParty>false</d2p1:IsParty>
            <d2p1:LongName>String</d2p1:LongName>
            <d2p1:Name>String</d2p1:Name>
            <d2p1:Type>Department</d2p1:Type>
            <d2p1:Children>
              <d2p1:Category>
                <d2p1:ChildList xmlns:d9p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                  <d9p1:int>0</d9p1:int>
                </d2p1:ChildList>
                <d2p1:Description>String</d2p1:Description>
                <d2p1:IsParty>false</d2p1:IsParty>
                <d2p1:LongName>String</d2p1:LongName>
                <d2p1:Name>String</d2p1:Name>
                <d2p1:Type>Department</d2p1:Type>
                <d2p1:Children i:nil="true" />
                <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
                <d2p1:CreatedBy>0</d2p1:CreatedBy>
                <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
                <d2p1:DeletedBy>0</d2p1:DeletedBy>
                <d2p1:Id>0</d2p1:Id>
                <d2p1:IsDeleted>false</d2p1:IsDeleted>
                <d2p1:Key>String</d2p1:Key>
                <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
                <d2p1:Level>0</d2p1:Level>
                <d2p1:SortOrder>0</d2p1:SortOrder>
              </d2p1:Category>
            </d2p1:Children>
            <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
            <d2p1:CreatedBy>0</d2p1:CreatedBy>
            <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
            <d2p1:DeletedBy>0</d2p1:DeletedBy>
            <d2p1:Id>0</d2p1:Id>
            <d2p1:IsDeleted>false</d2p1:IsDeleted>
            <d2p1:Key>String</d2p1:Key>
            <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
            <d2p1:Level>0</d2p1:Level>
            <d2p1:SortOrder>0</d2p1:SortOrder>
          </d2p1:Category>
        </d2p1:Children>
        <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
        <d2p1:CreatedBy>0</d2p1:CreatedBy>
        <d2p1:DeletedAt>0001-01-01T00:00:00</d2p1:DeletedAt>
        <d2p1:DeletedBy>0</d2p1:DeletedBy>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsDeleted>false</d2p1:IsDeleted>
        <d2p1:Key>String</d2p1:Key>
        <d2p1:LastUpdate>0001-01-01T00:00:00</d2p1:LastUpdate>
        <d2p1:Level>0</d2p1:Level>
        <d2p1:SortOrder>0</d2p1:SortOrder>
      </d2p1:Category>
    </d2p1:Departments>
    <d2p1:MainAssignees>
      <d2p1:WorkFlowProfile>
        <d2p1:Avatar>String</d2p1:Avatar>
        <d2p1:Birthday>0001-01-01T00:00:00</d2p1:Birthday>
        <d2p1:Comment>String</d2p1:Comment>
        <d2p1:ConfirmAt>0001-01-01T00:00:00</d2p1:ConfirmAt>
        <d2p1:ConfirmStatus>0</d2p1:ConfirmStatus>
        <d2p1:ConfirmStatusText>String</d2p1:ConfirmStatusText>
        <d2p1:DepartmentId>0</d2p1:DepartmentId>
        <d2p1:Email>String</d2p1:Email>
        <d2p1:FullName>String</d2p1:FullName>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsSigned>false</d2p1:IsSigned>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:OriginalFileId>0</d2p1:OriginalFileId>
        <d2p1:SignAt>0001-01-01T00:00:00</d2p1:SignAt>
        <d2p1:SignStatusText>String</d2p1:SignStatusText>
        <d2p1:SignedFileId>0</d2p1:SignedFileId>
        <d2p1:SignedFileName>String</d2p1:SignedFileName>
        <d2p1:Telephone>String</d2p1:Telephone>
      </d2p1:WorkFlowProfile>
    </d2p1:MainAssignees>
    <d2p1:ReasonReturn>String</d2p1:ReasonReturn>
    <d2p1:ReferenceDocuments>
      <d2p1:SimpleDocumentRelation>
        <d2p1:DocumentCode>String</d2p1:DocumentCode>
        <d2p1:DocumentTypeId>0</d2p1:DocumentTypeId>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsSequentialSigning>false</d2p1:IsSequentialSigning>
        <d2p1:PublicationDate>0001-01-01T00:00:00</d2p1:PublicationDate>
        <d2p1:StatusKey>String</d2p1:StatusKey>
        <d2p1:StatusText>String</d2p1:StatusText>
        <d2p1:Title>String</d2p1:Title>
        <d2p1:Type>String</d2p1:Type>
      </d2p1:SimpleDocumentRelation>
    </d2p1:ReferenceDocuments>
    <d2p1:ReturnDate>0001-01-01T00:00:00</d2p1:ReturnDate>
    <d2p1:StatusKey>String</d2p1:StatusKey>
    <d2p1:StatusText>String</d2p1:StatusText>
    <d2p1:SupportingAssignees>
      <d2p1:WorkFlowProfile>
        <d2p1:Avatar>String</d2p1:Avatar>
        <d2p1:Birthday>0001-01-01T00:00:00</d2p1:Birthday>
        <d2p1:Comment>String</d2p1:Comment>
        <d2p1:ConfirmAt>0001-01-01T00:00:00</d2p1:ConfirmAt>
        <d2p1:ConfirmStatus>0</d2p1:ConfirmStatus>
        <d2p1:ConfirmStatusText>String</d2p1:ConfirmStatusText>
        <d2p1:DepartmentId>0</d2p1:DepartmentId>
        <d2p1:Email>String</d2p1:Email>
        <d2p1:FullName>String</d2p1:FullName>
        <d2p1:Id>0</d2p1:Id>
        <d2p1:IsSigned>false</d2p1:IsSigned>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:OriginalFileId>0</d2p1:OriginalFileId>
        <d2p1:SignAt>0001-01-01T00:00:00</d2p1:SignAt>
        <d2p1:SignStatusText>String</d2p1:SignStatusText>
        <d2p1:SignedFileId>0</d2p1:SignedFileId>
        <d2p1:SignedFileName>String</d2p1:SignedFileName>
        <d2p1:Telephone>String</d2p1:Telephone>
      </d2p1:WorkFlowProfile>
    </d2p1:SupportingAssignees>
  </Data>
  <Message>String</Message>
</GetSingleWorkflowStepResponse>