DigiOffice Gateway Web Services

<back to all web services

GetWorkflowTask

Requires Authentication
import 'package:servicestack/servicestack.dart';

class WorkflowTaskAction implements IConvertible
{
    int? ID;
    String? Title;
    String? Type;
    bool? UseDialog;
    String? ConnectionID;

    WorkflowTaskAction({this.ID,this.Title,this.Type,this.UseDialog,this.ConnectionID});
    WorkflowTaskAction.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        Title = json['Title'];
        Type = json['Type'];
        UseDialog = json['UseDialog'];
        ConnectionID = json['ConnectionID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'Title': Title,
        'Type': Type,
        'UseDialog': UseDialog,
        'ConnectionID': ConnectionID
    };

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

// @DataContract
class WorkflowTask implements IConvertible
{
    // @DataMember
    int? ID;

    // @DataMember
    String? DocumentID;

    // @DataMember
    String? Title;

    // @DataMember
    String? Description;

    // @DataMember
    String? ContextTitle;

    // @DataMember
    String? Project;

    // @DataMember
    String? Relation;

    // @DataMember
    String? ImageKey;

    // @DataMember
    bool? Urgent;

    // @DataMember
    bool? IsRead;

    // @DataMember
    DateTime? AssignmentDate;

    // @DataMember
    DateTime? CompletionDate;

    // @DataMember
    int? NumberOfComments;

    // @DataMember
    String? ExtraField;

    // @DataMember
    bool? HasPreview;

    // @DataMember
    String? Extension;

    // @DataMember
    bool? IsInformative;

    // @DataMember
    bool? HasPendingSideSteps;

    // @DataMember
    List<WorkflowTaskAction>? Actions;

    // @DataMember
    bool? CanAccept;

    WorkflowTask({this.ID,this.DocumentID,this.Title,this.Description,this.ContextTitle,this.Project,this.Relation,this.ImageKey,this.Urgent,this.IsRead,this.AssignmentDate,this.CompletionDate,this.NumberOfComments,this.ExtraField,this.HasPreview,this.Extension,this.IsInformative,this.HasPendingSideSteps,this.Actions,this.CanAccept});
    WorkflowTask.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        DocumentID = json['DocumentID'];
        Title = json['Title'];
        Description = json['Description'];
        ContextTitle = json['ContextTitle'];
        Project = json['Project'];
        Relation = json['Relation'];
        ImageKey = json['ImageKey'];
        Urgent = json['Urgent'];
        IsRead = json['IsRead'];
        AssignmentDate = JsonConverters.fromJson(json['AssignmentDate'],'DateTime',context!);
        CompletionDate = JsonConverters.fromJson(json['CompletionDate'],'DateTime',context!);
        NumberOfComments = json['NumberOfComments'];
        ExtraField = json['ExtraField'];
        HasPreview = json['HasPreview'];
        Extension = json['Extension'];
        IsInformative = json['IsInformative'];
        HasPendingSideSteps = json['HasPendingSideSteps'];
        Actions = JsonConverters.fromJson(json['Actions'],'List<WorkflowTaskAction>',context!);
        CanAccept = json['CanAccept'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'DocumentID': DocumentID,
        'Title': Title,
        'Description': Description,
        'ContextTitle': ContextTitle,
        'Project': Project,
        'Relation': Relation,
        'ImageKey': ImageKey,
        'Urgent': Urgent,
        'IsRead': IsRead,
        'AssignmentDate': JsonConverters.toJson(AssignmentDate,'DateTime',context!),
        'CompletionDate': JsonConverters.toJson(CompletionDate,'DateTime',context!),
        'NumberOfComments': NumberOfComments,
        'ExtraField': ExtraField,
        'HasPreview': HasPreview,
        'Extension': Extension,
        'IsInformative': IsInformative,
        'HasPendingSideSteps': HasPendingSideSteps,
        'Actions': JsonConverters.toJson(Actions,'List<WorkflowTaskAction>',context!),
        'CanAccept': CanAccept
    };

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

class GetWorkflowTask implements IHasVersion, IConvertible
{
    int? ID;
    int? Version;

    GetWorkflowTask({this.ID,this.Version});
    GetWorkflowTask.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'Version': Version
    };

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

TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
    'WorkflowTaskAction': TypeInfo(TypeOf.Class, create:() => WorkflowTaskAction()),
    'WorkflowTask': TypeInfo(TypeOf.Class, create:() => WorkflowTask()),
    'List<WorkflowTaskAction>': TypeInfo(TypeOf.Class, create:() => <WorkflowTaskAction>[]),
    'GetWorkflowTask': TypeInfo(TypeOf.Class, create:() => GetWorkflowTask()),
});

Dart GetWorkflowTask DTOs

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

HTTP + CSV

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

POST /csv/reply/GetWorkflowTask HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"ID":0,"Version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ID":0,"DocumentID":"00000000-0000-0000-0000-000000000000","Title":"String","Description":"String","ContextTitle":"String","Project":"String","Relation":"String","ImageKey":"String","Urgent":false,"IsRead":false,"AssignmentDate":"0001-01-01T00:00:00.0000000","CompletionDate":"0001-01-01T00:00:00.0000000","NumberOfComments":0,"ExtraField":"String","HasPreview":false,"Extension":"String","IsInformative":false,"HasPendingSideSteps":false,"Actions":[{"ID":0,"Title":"String","Type":"String","UseDialog":false,"ConnectionID":"00000000-0000-0000-0000-000000000000"}],"CanAccept":false}