| GET | /api/workflowtasks/{EntityName}/{EntityID} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Get workflow tasks for entity.
*/
// @Api(Description="Get workflow tasks for entity.")
class GetTaskForEntityOperation implements IConvertible
{
/**
* Name of the entity
*/
// @ApiMember(Description="Name of the entity", IsRequired=true)
String? EntityName;
/**
* Primary key of the entity
*/
// @ApiMember(Description="Primary key of the entity", IsRequired=true)
String? EntityID;
GetTaskForEntityOperation({this.EntityName,this.EntityID});
GetTaskForEntityOperation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EntityName = json['EntityName'];
EntityID = json['EntityID'];
return this;
}
Map<String, dynamic> toJson() => {
'EntityName': EntityName,
'EntityID': EntityID
};
getTypeName() => "GetTaskForEntityOperation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test_do_services.klokgroep.nl', types: <String, TypeInfo> {
'GetTaskForEntityOperation': TypeInfo(TypeOf.Class, create:() => GetTaskForEntityOperation()),
});
Dart GetTaskForEntityOperation DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/workflowtasks/{EntityName}/{EntityID} HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
[{"ID":0,"Name":"String","WorkflowID":0,"WorkflowDescription":"String","RootWorkflowID":0,"TransitionID":"00000000-0000-0000-0000-000000000000","TransitionName":"String","ActivationID":"00000000-0000-0000-0000-000000000000","TypeID":0,"TypeDescription":"String","StatusID":0,"StatusDescription":"String","UserID":0,"Active":false,"OfferedDate":"0001-01-01T00:00:00.0000000","AssignedDate":"0001-01-01T00:00:00.0000000","StartDate":"0001-01-01T00:00:00.0000000","ExpirationDate":"0001-01-01T00:00:00.0000000","Order":0,"Progress":0,"FinishedDate":"0001-01-01T00:00:00.0000000","FinishedByUserID":0,"FinishedDocumentID":"00000000-0000-0000-0000-000000000000","Read":false,"DeferDate":"0001-01-01T00:00:00.0000000","DeferReason":"String","Reason":"String","Urgent":false,"Status":"String","AvailableActions":null,"FinishActions":null,"CommentActions":null,"DocumentActions":null,"NumberOfComments":0,"RelativeDetailLink":"String","FirstSideStepID":0,"FirstSideStepOmschr":"String","FirstSideStepDetailLink":"String","IsSideStepOfWorkflowID":0,"IsSideStepOfWorkflowOmschr":"String","IsSideStepOfWorkflowDetailLink":"String","IsSideStepOfTaskID":0,"IsSideStepOfTaskOmschr":"String","IsSideStepOfTaskDetailLink":"String","IsObservedID":0,"IsObservedOmschr":"String","IsObservedDetailLink":"String"}]