DigiOffice API Services Services

<back to all web services

FinishTaskOperation

Requires Authentication
The following routes are available for this service:
POST/api/workflowtasks/finish
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WorkflowTransitionDTO:
    id: Optional[str] = None
    name: Optional[str] = None
    assignment_at_start_workflow_is_ad_hoc: bool = False
    assignment_is_ad_hoc_required: bool = False
    defer_at_start_workflow_is_ad_hoc: bool = False
    is_next: bool = False
    user_i_ds: Optional[List[int]] = None
    group_i_ds: Optional[List[int]] = None
    role_i_ds: Optional[List[int]] = None
    defer_until: Optional[datetime.datetime] = None
    deferral_note: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class FinishTaskOperation:
    task_i_ds: Optional[List[int]] = None
    ws_verbinding_i_d: Optional[str] = None
    transitions: Optional[List[WorkflowTransitionDTO]] = None
    defer_to: Optional[datetime.datetime] = None
    reason: Optional[str] = None
    comment: Optional[str] = None

Python FinishTaskOperation 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 /api/workflowtasks/finish HTTP/1.1 
Host: test-do-services.klokgroep.nl 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"TaskIDs":[0],"WSVerbindingID":"00000000-0000-0000-0000-000000000000","Transitions":null,"DeferTo":"0001-01-01T00:00:00.0000000","Reason":"String","Comment":"String"}