From 196166a0f7759ddfb5df45c1a91c4f6da82da646 Mon Sep 17 00:00:00 2001 From: Joram Barrez Date: Tue, 17 Oct 2023 13:25:08 +0200 Subject: [PATCH] Add @ApiImplicitParam for new taskId query parameter --- .../rest/service/api/runtime/task/TaskCollectionResource.java | 1 + .../rest/service/api/runtime/task/TaskCollectionResource.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskCollectionResource.java b/modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskCollectionResource.java index f383826880c..6179e796379 100644 --- a/modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskCollectionResource.java +++ b/modules/flowable-cmmn-rest/src/main/java/org/flowable/cmmn/rest/service/api/runtime/task/TaskCollectionResource.java @@ -55,6 +55,7 @@ public class TaskCollectionResource extends TaskBaseResource { @ApiOperation(value = "List of tasks", nickname="listTasks", tags = { "Tasks" }) @ApiImplicitParams({ + @ApiImplicitParam(name = "taskId", dataType = "string", value = "Only return tasks with the given id.", paramType = "query"), @ApiImplicitParam(name = "name", dataType = "string", value = "Only return tasks with the given version.", paramType = "query"), @ApiImplicitParam(name = "nameLike", dataType = "string", value = "Only return tasks with a name like the given name.", paramType = "query"), @ApiImplicitParam(name = "nameLikeIgnoreCase", dataType = "string", value = "Only return tasks with a name like the given name ignoring case.", paramType = "query"), diff --git a/modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskCollectionResource.java b/modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskCollectionResource.java index c86244932db..f3e8349e4d6 100644 --- a/modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskCollectionResource.java +++ b/modules/flowable-rest/src/main/java/org/flowable/rest/service/api/runtime/task/TaskCollectionResource.java @@ -56,7 +56,8 @@ public class TaskCollectionResource extends TaskBaseResource { @ApiOperation(value = "List of tasks", nickname="listTasks", tags = { "Tasks" }) @ApiImplicitParams({ - @ApiImplicitParam(name = "name", dataType = "string", value = "Only return models with the given version.", paramType = "query"), + @ApiImplicitParam(name = "taskId", dataType = "string", value = "Only return tasks with the given id.", paramType = "query"), + @ApiImplicitParam(name = "name", dataType = "string", value = "Only return tasks with the given version.", paramType = "query"), @ApiImplicitParam(name = "nameLike", dataType = "string", value = "Only return tasks with a name like the given name.", paramType = "query"), @ApiImplicitParam(name = "nameLikeIgnoreCase", dataType = "string", value = "Only return tasks with a name like the given name ignoring case.", paramType = "query"), @ApiImplicitParam(name = "description", dataType = "string", value = "Only return tasks with the given description.", paramType = "query"),