From 90e730e6ced2d99c6e59e0aa3a6771283517c8d9 Mon Sep 17 00:00:00 2001 From: Tommaso D'Alessandro Date: Tue, 10 Dec 2024 20:06:10 +0100 Subject: [PATCH] AAE-28952 fix QuerySwaggerIt and Sonar issues --- ...ustomizedJpaSpecificationExecutorImpl.java | 4 +- .../specification/SpecificationSupport.java | 19 +- .../VariableSelectionExpression.java | 15 + .../VariableSelectionExpressionImpl.java | 15 + .../VariableValueFilterCondition.java | 15 + ...ocessInstanceEntitySearchControllerIT.java | 10 +- .../query/rest/AbstractTaskControllerIT.java | 11 +- .../src/test/resources/swagger-expected.json | 1241 ++++++++--------- 8 files changed, 687 insertions(+), 643 deletions(-) diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-repo/src/main/java/org/activiti/cloud/services/query/app/repository/CustomizedJpaSpecificationExecutorImpl.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-repo/src/main/java/org/activiti/cloud/services/query/app/repository/CustomizedJpaSpecificationExecutorImpl.java index 0832968052..79c0dc7817 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-repo/src/main/java/org/activiti/cloud/services/query/app/repository/CustomizedJpaSpecificationExecutorImpl.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-repo/src/main/java/org/activiti/cloud/services/query/app/repository/CustomizedJpaSpecificationExecutorImpl.java @@ -31,8 +31,8 @@ import org.springframework.util.Assert; import org.springframework.util.CollectionUtils; -public class CustomizedJpaSpecificationExecutorImpl - extends SimpleJpaRepository +public class CustomizedJpaSpecificationExecutorImpl + extends SimpleJpaRepository implements CustomizedJpaSpecificationExecutor { private final EntityManager entityManager; diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/SpecificationSupport.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/SpecificationSupport.java index e4bb4edd82..61b34f31cf 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/SpecificationSupport.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/SpecificationSupport.java @@ -49,10 +49,8 @@ public abstract class SpecificationSupport predicates; - public List filterConditions; - + protected List filterConditions; private SetJoin pvJoin; - protected final Map> javaTypeMapping = Map.of( VariableType.STRING, String.class, @@ -163,14 +161,14 @@ protected void applySorting( validateSort(sort); Expression orderByClause; if (sort.isProcessVariable()) { - From pvJoin = joinSupplier.get(); + From joinRoot = joinSupplier.get(); orderByClause = new VariableSelectionExpressionImpl<>( - pvJoin, + joinRoot, Map.of( - pvJoin.get(ProcessVariableEntity_.processDefinitionKey), + joinRoot.get(ProcessVariableEntity_.processDefinitionKey), sort.processDefinitionKey(), - pvJoin.get(ProcessVariableEntity_.name), + joinRoot.get(ProcessVariableEntity_.name), sort.field() ), javaTypeMapping.get(sort.type()), @@ -213,7 +211,12 @@ protected void validateSort(CloudRuntimeEntitySort sort) { * @return Supplier of SetJoin of process variables */ protected Supplier> joinProcessVariables(Root root) { - return () -> pvJoin == null ? pvJoin = root.join(getProcessVariablesAttribute(), JoinType.LEFT) : pvJoin; + return () -> { + if (pvJoin == null) { + pvJoin = root.join(getProcessVariablesAttribute(), JoinType.LEFT); + } + return pvJoin; + }; } protected abstract SetAttribute getProcessVariablesAttribute(); diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpression.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpression.java index 5350f669b0..689d94db7a 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpression.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpression.java @@ -1,3 +1,18 @@ +/* + * Copyright 2017-2020 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.activiti.cloud.services.query.rest.specification; import jakarta.persistence.criteria.Expression; diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpressionImpl.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpressionImpl.java index f83d7453f9..ca139bbffa 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpressionImpl.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableSelectionExpressionImpl.java @@ -1,3 +1,18 @@ +/* + * Copyright 2017-2020 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.activiti.cloud.services.query.rest.specification; import jakarta.persistence.criteria.CriteriaBuilder; diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableValueFilterCondition.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableValueFilterCondition.java index 7500ae0383..128d780cf4 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableValueFilterCondition.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/main/java/org/activiti/cloud/services/query/rest/specification/VariableValueFilterCondition.java @@ -1,3 +1,18 @@ +/* + * Copyright 2017-2020 Alfresco Software, Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package org.activiti.cloud.services.query.rest.specification; import jakarta.persistence.criteria.Predicate; diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractProcessInstanceEntitySearchControllerIT.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractProcessInstanceEntitySearchControllerIT.java index 3efc2f02f8..d933e5be1d 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractProcessInstanceEntitySearchControllerIT.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractProcessInstanceEntitySearchControllerIT.java @@ -2513,13 +2513,13 @@ void should_returnProcessInstances_sortedBy_BooleanProcessVariable() { ); } + /** + * From Postgres documentation: https://www.postgresql.org/docs/current/queries-order.html + * By default, null values sort as if larger than any non-null value; + * that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise. + */ @Test void should_returnProcessInstances_paginatedAndSortedByProcessVariables_respectingDefaultNullBehaviour() { - /* - * From Postgres documentation: https://www.postgresql.org/docs/current/queries-order.html - * By default, null values sort as if larger than any non-null value; - * that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise. - */ ProcessInstanceEntity processInstance1 = queryTestUtils .buildProcessInstance() .withInitiator(USER) diff --git a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractTaskControllerIT.java b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractTaskControllerIT.java index e68387dda4..aef660e628 100644 --- a/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractTaskControllerIT.java +++ b/activiti-cloud-query-service/activiti-cloud-services-query/activiti-cloud-services-query-rest/src/test/java/org/activiti/cloud/services/query/rest/AbstractTaskControllerIT.java @@ -3889,14 +3889,13 @@ void should_returnTasks_sortedBy_BooleanProcessVariable() { .body(TASK_IDS_JSON_PATH, contains(TASK_ID_1, TASK_ID_2)); } + /** + * From Postgres documentation: https://www.postgresql.org/docs/current/queries-order.html + * By default, null values sort as if larger than any non-null value; + * that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise. + */ @Test void should_returnTasks_sortedByProcessVariables_respectingDefaultNullBehaviour() { - /* - * From Postgres documentation: https://www.postgresql.org/docs/current/queries-order.html - * By default, null values sort as if larger than any non-null value; - * that is, NULLS FIRST is the default for DESC order, and NULLS LAST otherwise. - */ - for (int i = 0; i < 5; i++) { queryTestUtils .buildProcessInstance() diff --git a/activiti-cloud-query-service/activiti-cloud-starter-query/src/test/resources/swagger-expected.json b/activiti-cloud-query-service/activiti-cloud-starter-query/src/test/resources/swagger-expected.json index 3bb38dce1b..a062c2659b 100644 --- a/activiti-cloud-query-service/activiti-cloud-starter-query/src/test/resources/swagger-expected.json +++ b/activiti-cloud-query-service/activiti-cloud-starter-query/src/test/resources/swagger-expected.json @@ -69,8 +69,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -79,8 +79,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -174,8 +174,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -184,8 +184,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -309,6 +309,13 @@ "type": "string" } }, + { + "name": "parentTaskId", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "dueDate", "in": "query", @@ -325,22 +332,21 @@ } }, { - "name": "processDefinitionName", + "name": "description", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModifiedTo", + "name": "processDefinitionName", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "claimedDate", + "name": "lastModifiedTo", "in": "query", "schema": { "type": "string", @@ -348,7 +354,7 @@ } }, { - "name": "dueDateFrom", + "name": "dueDateTo", "in": "query", "schema": { "type": "string", @@ -356,35 +362,39 @@ } }, { - "name": "id", + "name": "duration", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int64" } }, { - "name": "processDefinitionId", + "name": "claimedDate", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "processInstanceId", + "name": "dueDateFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "taskCandidateGroups", + "name": "lastClaimedTo", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "createdTo", + "name": "completedTo", "in": "query", "schema": { "type": "string", @@ -392,23 +402,21 @@ } }, { - "name": "priority", + "name": "id", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "completedFrom", + "name": "owner", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedDate", + "name": "lastModifiedFrom", "in": "query", "schema": { "type": "string", @@ -416,81 +424,65 @@ } }, { - "name": "taskDefinitionKey", + "name": "processDefinitionId", "in": "query", "schema": { "type": "string" } }, { - "name": "lastClaimedFrom", - "in": "query", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "name", + "name": "processInstanceId", "in": "query", "schema": { "type": "string" } }, { - "name": "assignee", + "name": "formKey", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModified", + "name": "taskCandidateUsers", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "processDefinitionVersion", + "name": "taskCandidateGroups", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "status", + "name": "createdTo", "in": "query", "schema": { "type": "string", - "enum": [ - "CREATED", - "ASSIGNED", - "SUSPENDED", - "COMPLETED", - "CANCELLED", - "DELETED" - ] + "format": "date-time" } }, { - "name": "parentTaskId", + "name": "candidateGroupId", "in": "query", "schema": { "type": "string" } }, { - "name": "description", + "name": "priority", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "dueDateTo", + "name": "completedFrom", "in": "query", "schema": { "type": "string", @@ -498,23 +490,22 @@ } }, { - "name": "duration", + "name": "completedDate", "in": "query", "schema": { - "type": "integer", - "format": "int64" + "type": "string", + "format": "date-time" } }, { - "name": "lastClaimedTo", + "name": "taskDefinitionKey", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedTo", + "name": "createdDate", "in": "query", "schema": { "type": "string", @@ -522,14 +513,15 @@ } }, { - "name": "owner", + "name": "createdFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "lastModifiedFrom", + "name": "lastClaimedFrom", "in": "query", "schema": { "type": "string", @@ -537,28 +529,28 @@ } }, { - "name": "formKey", + "name": "name", "in": "query", "schema": { "type": "string" } }, { - "name": "taskCandidateUsers", + "name": "businessKey", "in": "query", "schema": { "type": "string" } }, { - "name": "candidateGroupId", + "name": "assignee", "in": "query", "schema": { "type": "string" } }, { - "name": "createdDate", + "name": "lastModified", "in": "query", "schema": { "type": "string", @@ -566,25 +558,33 @@ } }, { - "name": "createdFrom", + "name": "processDefinitionVersion", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "integer", + "format": "int32" } }, { - "name": "businessKey", + "name": "completedBy", "in": "query", "schema": { "type": "string" } }, { - "name": "completedBy", + "name": "status", "in": "query", "schema": { - "type": "string" + "type": "string", + "enum": [ + "CREATED", + "ASSIGNED", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "DELETED" + ] } } ], @@ -599,8 +599,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -609,8 +609,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -698,6 +698,13 @@ "type": "string" } }, + { + "name": "parentTaskId", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "dueDate", "in": "query", @@ -714,22 +721,21 @@ } }, { - "name": "processDefinitionName", + "name": "description", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModifiedTo", + "name": "processDefinitionName", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "claimedDate", + "name": "lastModifiedTo", "in": "query", "schema": { "type": "string", @@ -737,7 +743,7 @@ } }, { - "name": "dueDateFrom", + "name": "dueDateTo", "in": "query", "schema": { "type": "string", @@ -745,35 +751,39 @@ } }, { - "name": "id", + "name": "duration", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int64" } }, { - "name": "processDefinitionId", + "name": "claimedDate", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "processInstanceId", + "name": "dueDateFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "taskCandidateGroups", + "name": "lastClaimedTo", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "createdTo", + "name": "completedTo", "in": "query", "schema": { "type": "string", @@ -781,23 +791,21 @@ } }, { - "name": "priority", + "name": "id", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "completedFrom", + "name": "owner", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedDate", + "name": "lastModifiedFrom", "in": "query", "schema": { "type": "string", @@ -805,81 +813,65 @@ } }, { - "name": "taskDefinitionKey", + "name": "processDefinitionId", "in": "query", "schema": { "type": "string" } }, { - "name": "lastClaimedFrom", - "in": "query", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "name", + "name": "processInstanceId", "in": "query", "schema": { "type": "string" } }, { - "name": "assignee", + "name": "formKey", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModified", + "name": "taskCandidateUsers", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "processDefinitionVersion", + "name": "taskCandidateGroups", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "status", + "name": "createdTo", "in": "query", "schema": { "type": "string", - "enum": [ - "CREATED", - "ASSIGNED", - "SUSPENDED", - "COMPLETED", - "CANCELLED", - "DELETED" - ] + "format": "date-time" } }, { - "name": "parentTaskId", + "name": "candidateGroupId", "in": "query", "schema": { "type": "string" } }, { - "name": "description", + "name": "priority", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "dueDateTo", + "name": "completedFrom", "in": "query", "schema": { "type": "string", @@ -887,23 +879,22 @@ } }, { - "name": "duration", + "name": "completedDate", "in": "query", "schema": { - "type": "integer", - "format": "int64" + "type": "string", + "format": "date-time" } }, { - "name": "lastClaimedTo", + "name": "taskDefinitionKey", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedTo", + "name": "createdDate", "in": "query", "schema": { "type": "string", @@ -911,14 +902,15 @@ } }, { - "name": "owner", + "name": "createdFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "lastModifiedFrom", + "name": "lastClaimedFrom", "in": "query", "schema": { "type": "string", @@ -926,28 +918,28 @@ } }, { - "name": "formKey", + "name": "name", "in": "query", "schema": { "type": "string" } }, { - "name": "taskCandidateUsers", + "name": "businessKey", "in": "query", "schema": { "type": "string" } }, { - "name": "candidateGroupId", + "name": "assignee", "in": "query", "schema": { "type": "string" } }, { - "name": "createdDate", + "name": "lastModified", "in": "query", "schema": { "type": "string", @@ -955,25 +947,33 @@ } }, { - "name": "createdFrom", + "name": "processDefinitionVersion", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "integer", + "format": "int32" } }, { - "name": "businessKey", + "name": "completedBy", "in": "query", "schema": { "type": "string" } }, { - "name": "completedBy", + "name": "status", "in": "query", "schema": { - "type": "string" + "type": "string", + "enum": [ + "CREATED", + "ASSIGNED", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "DELETED" + ] } } ], @@ -997,8 +997,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1007,8 +1007,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1049,6 +1049,13 @@ "summary": "deleteTasks", "operationId": "deleteTasks", "parameters": [ + { + "name": "parentTaskId", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "dueDate", "in": "query", @@ -1065,22 +1072,21 @@ } }, { - "name": "processDefinitionName", + "name": "description", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModifiedTo", + "name": "processDefinitionName", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "claimedDate", + "name": "lastModifiedTo", "in": "query", "schema": { "type": "string", @@ -1088,7 +1094,7 @@ } }, { - "name": "dueDateFrom", + "name": "dueDateTo", "in": "query", "schema": { "type": "string", @@ -1096,35 +1102,39 @@ } }, { - "name": "id", + "name": "duration", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int64" } }, { - "name": "processDefinitionId", + "name": "claimedDate", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "processInstanceId", + "name": "dueDateFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "taskCandidateGroups", + "name": "lastClaimedTo", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "createdTo", + "name": "completedTo", "in": "query", "schema": { "type": "string", @@ -1132,23 +1142,21 @@ } }, { - "name": "priority", + "name": "id", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "completedFrom", + "name": "owner", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedDate", + "name": "lastModifiedFrom", "in": "query", "schema": { "type": "string", @@ -1156,81 +1164,65 @@ } }, { - "name": "taskDefinitionKey", + "name": "processDefinitionId", "in": "query", "schema": { "type": "string" } }, { - "name": "lastClaimedFrom", - "in": "query", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "name", + "name": "processInstanceId", "in": "query", "schema": { "type": "string" } }, { - "name": "assignee", + "name": "formKey", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModified", + "name": "taskCandidateUsers", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "processDefinitionVersion", + "name": "taskCandidateGroups", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "status", + "name": "createdTo", "in": "query", "schema": { "type": "string", - "enum": [ - "CREATED", - "ASSIGNED", - "SUSPENDED", - "COMPLETED", - "CANCELLED", - "DELETED" - ] + "format": "date-time" } }, { - "name": "parentTaskId", + "name": "candidateGroupId", "in": "query", "schema": { "type": "string" } }, { - "name": "description", + "name": "priority", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "dueDateTo", + "name": "completedFrom", "in": "query", "schema": { "type": "string", @@ -1238,23 +1230,22 @@ } }, { - "name": "duration", + "name": "completedDate", "in": "query", "schema": { - "type": "integer", - "format": "int64" + "type": "string", + "format": "date-time" } }, { - "name": "lastClaimedTo", + "name": "taskDefinitionKey", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedTo", + "name": "createdDate", "in": "query", "schema": { "type": "string", @@ -1262,14 +1253,15 @@ } }, { - "name": "owner", + "name": "createdFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "lastModifiedFrom", + "name": "lastClaimedFrom", "in": "query", "schema": { "type": "string", @@ -1277,28 +1269,28 @@ } }, { - "name": "formKey", + "name": "name", "in": "query", "schema": { "type": "string" } }, { - "name": "taskCandidateUsers", + "name": "businessKey", "in": "query", "schema": { "type": "string" } }, { - "name": "candidateGroupId", + "name": "assignee", "in": "query", "schema": { "type": "string" } }, { - "name": "createdDate", + "name": "lastModified", "in": "query", "schema": { "type": "string", @@ -1306,25 +1298,33 @@ } }, { - "name": "createdFrom", + "name": "processDefinitionVersion", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "integer", + "format": "int32" } }, { - "name": "businessKey", + "name": "completedBy", "in": "query", "schema": { "type": "string" } }, { - "name": "completedBy", + "name": "status", "in": "query", "schema": { - "type": "string" + "type": "string", + "enum": [ + "CREATED", + "ASSIGNED", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "DELETED" + ] } } ], @@ -1339,8 +1339,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1349,8 +1349,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1444,8 +1444,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1454,8 +1454,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -1762,8 +1762,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -1772,8 +1772,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2073,8 +2073,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2083,8 +2083,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2346,8 +2346,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2356,8 +2356,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2451,8 +2451,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2461,8 +2461,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2586,6 +2586,13 @@ "type": "string" } }, + { + "name": "parentTaskId", + "in": "query", + "schema": { + "type": "string" + } + }, { "name": "dueDate", "in": "query", @@ -2602,22 +2609,21 @@ } }, { - "name": "processDefinitionName", + "name": "description", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModifiedTo", + "name": "processDefinitionName", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "claimedDate", + "name": "lastModifiedTo", "in": "query", "schema": { "type": "string", @@ -2625,7 +2631,7 @@ } }, { - "name": "dueDateFrom", + "name": "dueDateTo", "in": "query", "schema": { "type": "string", @@ -2633,35 +2639,39 @@ } }, { - "name": "id", + "name": "duration", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int64" } }, { - "name": "processDefinitionId", + "name": "claimedDate", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "processInstanceId", + "name": "dueDateFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "taskCandidateGroups", + "name": "lastClaimedTo", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "createdTo", + "name": "completedTo", "in": "query", "schema": { "type": "string", @@ -2669,23 +2679,21 @@ } }, { - "name": "priority", + "name": "id", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "completedFrom", + "name": "owner", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedDate", + "name": "lastModifiedFrom", "in": "query", "schema": { "type": "string", @@ -2693,81 +2701,65 @@ } }, { - "name": "taskDefinitionKey", + "name": "processDefinitionId", "in": "query", "schema": { "type": "string" } }, { - "name": "lastClaimedFrom", - "in": "query", - "schema": { - "type": "string", - "format": "date-time" - } - }, - { - "name": "name", + "name": "processInstanceId", "in": "query", "schema": { "type": "string" } }, { - "name": "assignee", + "name": "formKey", "in": "query", "schema": { "type": "string" } }, { - "name": "lastModified", + "name": "taskCandidateUsers", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "processDefinitionVersion", + "name": "taskCandidateGroups", "in": "query", "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "status", + "name": "createdTo", "in": "query", "schema": { "type": "string", - "enum": [ - "CREATED", - "ASSIGNED", - "SUSPENDED", - "COMPLETED", - "CANCELLED", - "DELETED" - ] + "format": "date-time" } }, { - "name": "parentTaskId", + "name": "candidateGroupId", "in": "query", "schema": { "type": "string" } }, { - "name": "description", + "name": "priority", "in": "query", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "dueDateTo", + "name": "completedFrom", "in": "query", "schema": { "type": "string", @@ -2775,23 +2767,22 @@ } }, { - "name": "duration", + "name": "completedDate", "in": "query", "schema": { - "type": "integer", - "format": "int64" + "type": "string", + "format": "date-time" } }, { - "name": "lastClaimedTo", + "name": "taskDefinitionKey", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "string" } }, { - "name": "completedTo", + "name": "createdDate", "in": "query", "schema": { "type": "string", @@ -2799,14 +2790,15 @@ } }, { - "name": "owner", + "name": "createdFrom", "in": "query", "schema": { - "type": "string" + "type": "string", + "format": "date-time" } }, { - "name": "lastModifiedFrom", + "name": "lastClaimedFrom", "in": "query", "schema": { "type": "string", @@ -2814,28 +2806,28 @@ } }, { - "name": "formKey", + "name": "name", "in": "query", "schema": { "type": "string" } }, { - "name": "taskCandidateUsers", + "name": "businessKey", "in": "query", "schema": { "type": "string" } }, { - "name": "candidateGroupId", + "name": "assignee", "in": "query", "schema": { "type": "string" } }, { - "name": "createdDate", + "name": "lastModified", "in": "query", "schema": { "type": "string", @@ -2843,25 +2835,33 @@ } }, { - "name": "createdFrom", + "name": "processDefinitionVersion", "in": "query", "schema": { - "type": "string", - "format": "date-time" + "type": "integer", + "format": "int32" } }, { - "name": "businessKey", + "name": "completedBy", "in": "query", "schema": { "type": "string" } }, { - "name": "completedBy", + "name": "status", "in": "query", "schema": { - "type": "string" + "type": "string", + "enum": [ + "CREATED", + "ASSIGNED", + "SUSPENDED", + "COMPLETED", + "CANCELLED", + "DELETED" + ] } } ], @@ -2876,8 +2876,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -2886,8 +2886,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -2994,8 +2994,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3004,8 +3004,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3068,8 +3068,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3078,8 +3078,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3142,8 +3142,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3152,8 +3152,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3222,8 +3222,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3232,8 +3232,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3546,8 +3546,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3556,8 +3556,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3620,8 +3620,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3630,8 +3630,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3745,8 +3745,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3755,8 +3755,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -3862,8 +3862,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -3872,8 +3872,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4177,8 +4177,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4187,8 +4187,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4251,8 +4251,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4261,8 +4261,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4405,8 +4405,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4415,8 +4415,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4479,8 +4479,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4489,8 +4489,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4590,8 +4590,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4600,8 +4600,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4708,8 +4708,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4718,8 +4718,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4782,8 +4782,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4792,8 +4792,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4856,8 +4856,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4866,8 +4866,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -4936,8 +4936,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -4946,8 +4946,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5037,8 +5037,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5047,8 +5047,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5111,8 +5111,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5121,8 +5121,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5185,8 +5185,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5195,8 +5195,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5259,8 +5259,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5269,8 +5269,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5384,8 +5384,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5394,8 +5394,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5487,8 +5487,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5497,8 +5497,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5590,8 +5590,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5600,8 +5600,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5664,8 +5664,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5674,8 +5674,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -5934,8 +5934,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -5944,8 +5944,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6101,8 +6101,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6111,8 +6111,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6175,8 +6175,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6185,8 +6185,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6286,8 +6286,8 @@ } } }, - "403": { - "description": "Forbidden", + "400": { + "description": "Bad Request", "content": { "application/json": { "schema": { @@ -6296,8 +6296,8 @@ } } }, - "400": { - "description": "Bad Request", + "403": { + "description": "Forbidden", "content": { "application/json": { "schema": { @@ -6339,12 +6339,12 @@ "title": "ActivitiErrorMessage", "type": "object", "properties": { + "message": { + "type": "string" + }, "code": { "type": "integer", "format": "int32" - }, - "message": { - "type": "string" } } }, @@ -6374,11 +6374,8 @@ "isProcessVariable": { "type": "boolean" }, - "processDefinitionKeys": { - "type": "array", - "items": { - "type": "string" - } + "processDefinitionKey": { + "type": "string" }, "type": { "type": "string", @@ -6613,15 +6610,6 @@ "appVersion": { "type": "string" }, - "taskVariable": { - "type": "boolean" - }, - "taskId": { - "type": "string" - }, - "processInstanceId": { - "type": "string" - }, "name": { "type": "string" }, @@ -6630,6 +6618,15 @@ }, "type": { "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskVariable": { + "type": "boolean" + }, + "processInstanceId": { + "type": "string" } } }, @@ -6695,16 +6692,6 @@ "title": "QueryCloudTask_ProcessVariables", "type": "object", "properties": { - "processVariables": { - "uniqueItems": true, - "type": "array", - "items": { - "$ref": "#/components/schemas/CloudVariableInstance_ProcessVariables" - } - }, - "processDefinitionName": { - "type": "string" - }, "permissions": { "type": "array", "items": { @@ -6717,6 +6704,16 @@ ] } }, + "processVariables": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/CloudVariableInstance_ProcessVariables" + } + }, + "processDefinitionName": { + "type": "string" + }, "appName": { "type": "string" }, @@ -6735,6 +6732,26 @@ "appVersion": { "type": "string" }, + "name": { + "type": "string" + }, + "priority": { + "type": "integer", + "format": "int32" + }, + "id": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "duration": { + "type": "integer", + "format": "int64" + }, + "standalone": { + "type": "boolean" + }, "createdDate": { "type": "string", "format": "date-time" @@ -6750,13 +6767,13 @@ "completedBy": { "type": "string" }, - "businessKey": { + "formKey": { "type": "string" }, - "assignee": { + "businessKey": { "type": "string" }, - "formKey": { + "assignee": { "type": "string" }, "status": { @@ -6773,16 +6790,16 @@ "description": { "type": "string" }, - "parentTaskId": { - "type": "string" - }, - "taskDefinitionKey": { - "type": "string" - }, "completedDate": { "type": "string", "format": "date-time" }, + "processDefinitionId": { + "type": "string" + }, + "processInstanceId": { + "type": "string" + }, "candidateUsers": { "type": "array", "items": { @@ -6795,35 +6812,15 @@ "type": "string" } }, - "processDefinitionId": { + "parentTaskId": { "type": "string" }, - "processInstanceId": { + "taskDefinitionKey": { "type": "string" }, "processDefinitionVersion": { "type": "integer", "format": "int32" - }, - "name": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "id": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "duration": { - "type": "integer", - "format": "int64" - }, - "standalone": { - "type": "boolean" } } }, @@ -6986,19 +6983,22 @@ "appVersion": { "type": "string" }, - "startDate": { - "type": "string", - "format": "date-time" + "name": { + "type": "string" }, - "initiator": { + "id": { "type": "string" }, "businessKey": { "type": "string" }, - "parentId": { + "initiator": { "type": "string" }, + "startDate": { + "type": "string", + "format": "date-time" + }, "status": { "type": "string", "enum": [ @@ -7009,6 +7009,9 @@ "COMPLETED" ] }, + "parentId": { + "type": "string" + }, "completedDate": { "type": "string", "format": "date-time" @@ -7016,9 +7019,6 @@ "processDefinitionId": { "type": "string" }, - "processDefinitionName": { - "type": "string" - }, "processDefinitionKey": { "type": "string" }, @@ -7026,10 +7026,7 @@ "type": "integer", "format": "int32" }, - "name": { - "type": "string" - }, - "id": { + "processDefinitionName": { "type": "string" } } @@ -7114,15 +7111,6 @@ "appVersion": { "type": "string" }, - "taskVariable": { - "type": "boolean" - }, - "taskId": { - "type": "string" - }, - "processInstanceId": { - "type": "string" - }, "name": { "type": "string" }, @@ -7131,6 +7119,15 @@ }, "type": { "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskVariable": { + "type": "boolean" + }, + "processInstanceId": { + "type": "string" } } }, @@ -7214,15 +7211,6 @@ "appVersion": { "type": "string" }, - "taskVariable": { - "type": "boolean" - }, - "taskId": { - "type": "string" - }, - "processInstanceId": { - "type": "string" - }, "name": { "type": "string" }, @@ -7231,6 +7219,15 @@ }, "type": { "type": "string" + }, + "taskId": { + "type": "string" + }, + "taskVariable": { + "type": "boolean" + }, + "processInstanceId": { + "type": "string" } } }, @@ -7247,16 +7244,6 @@ "title": "QueryCloudTask_General", "type": "object", "properties": { - "processVariables": { - "uniqueItems": true, - "type": "array", - "items": { - "$ref": "#/components/schemas/CloudVariableInstance_General" - } - }, - "processDefinitionName": { - "type": "string" - }, "permissions": { "type": "array", "items": { @@ -7269,6 +7256,16 @@ ] } }, + "processVariables": { + "uniqueItems": true, + "type": "array", + "items": { + "$ref": "#/components/schemas/CloudVariableInstance_General" + } + }, + "processDefinitionName": { + "type": "string" + }, "appName": { "type": "string" }, @@ -7287,6 +7284,26 @@ "appVersion": { "type": "string" }, + "name": { + "type": "string" + }, + "priority": { + "type": "integer", + "format": "int32" + }, + "id": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "duration": { + "type": "integer", + "format": "int64" + }, + "standalone": { + "type": "boolean" + }, "createdDate": { "type": "string", "format": "date-time" @@ -7302,13 +7319,13 @@ "completedBy": { "type": "string" }, - "businessKey": { + "formKey": { "type": "string" }, - "assignee": { + "businessKey": { "type": "string" }, - "formKey": { + "assignee": { "type": "string" }, "status": { @@ -7325,16 +7342,16 @@ "description": { "type": "string" }, - "parentTaskId": { - "type": "string" - }, - "taskDefinitionKey": { - "type": "string" - }, "completedDate": { "type": "string", "format": "date-time" }, + "processDefinitionId": { + "type": "string" + }, + "processInstanceId": { + "type": "string" + }, "candidateUsers": { "type": "array", "items": { @@ -7347,35 +7364,15 @@ "type": "string" } }, - "processDefinitionId": { + "parentTaskId": { "type": "string" }, - "processInstanceId": { + "taskDefinitionKey": { "type": "string" }, "processDefinitionVersion": { "type": "integer", "format": "int32" - }, - "name": { - "type": "string" - }, - "priority": { - "type": "integer", - "format": "int32" - }, - "id": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "duration": { - "type": "integer", - "format": "int64" - }, - "standalone": { - "type": "boolean" } } }, @@ -7417,19 +7414,22 @@ "appVersion": { "type": "string" }, - "startDate": { - "type": "string", - "format": "date-time" + "name": { + "type": "string" }, - "initiator": { + "id": { "type": "string" }, "businessKey": { "type": "string" }, - "parentId": { + "initiator": { "type": "string" }, + "startDate": { + "type": "string", + "format": "date-time" + }, "status": { "type": "string", "enum": [ @@ -7440,6 +7440,9 @@ "COMPLETED" ] }, + "parentId": { + "type": "string" + }, "completedDate": { "type": "string", "format": "date-time" @@ -7447,9 +7450,6 @@ "processDefinitionId": { "type": "string" }, - "processDefinitionName": { - "type": "string" - }, "processDefinitionKey": { "type": "string" }, @@ -7457,10 +7457,7 @@ "type": "integer", "format": "int32" }, - "name": { - "type": "string" - }, - "id": { + "processDefinitionName": { "type": "string" } } @@ -7548,15 +7545,6 @@ "appVersion": { "type": "string" }, - "formKey": { - "type": "string" - }, - "category": { - "type": "string" - }, - "description": { - "type": "string" - }, "name": { "type": "string" }, @@ -7569,6 +7557,15 @@ "version": { "type": "integer", "format": "int32" + }, + "formKey": { + "type": "string" + }, + "category": { + "type": "string" + }, + "description": { + "type": "string" } } }, @@ -7657,13 +7654,16 @@ "title": "CloudServiceTask", "type": "object", "properties": { - "businessKey": { + "id": { "type": "string" }, "startedDate": { "type": "string", "format": "date-time" }, + "businessKey": { + "type": "string" + }, "status": { "type": "string", "enum": [ @@ -7688,9 +7688,6 @@ "type": "integer", "format": "int32" }, - "id": { - "type": "string" - }, "appName": { "type": "string" }, @@ -7766,6 +7763,9 @@ "title": "CloudIntegrationContext", "type": "object", "properties": { + "errorMessage": { + "type": "string" + }, "requestDate": { "type": "string", "format": "date-time" @@ -7774,8 +7774,9 @@ "type": "string", "format": "date-time" }, - "errorCode": { - "type": "string" + "errorDate": { + "type": "string", + "format": "date-time" }, "status": { "type": "string", @@ -7785,9 +7786,8 @@ "INTEGRATION_ERROR_RECEIVED" ] }, - "errorDate": { - "type": "string", - "format": "date-time" + "errorCode": { + "type": "string" }, "errorClassName": { "type": "string" @@ -7825,19 +7825,19 @@ } } }, - "errorMessage": { + "id": { "type": "string" }, - "appVersion": { + "executionId": { "type": "string" }, - "businessKey": { + "clientType": { "type": "string" }, - "executionId": { + "appVersion": { "type": "string" }, - "clientType": { + "businessKey": { "type": "string" }, "clientId": { @@ -7846,6 +7846,12 @@ "clientName": { "type": "string" }, + "processDefinitionId": { + "type": "string" + }, + "processInstanceId": { + "type": "string" + }, "connectorType": { "type": "string" }, @@ -7861,15 +7867,6 @@ "type": "object" } }, - "processDefinitionId": { - "type": "string" - }, - "processInstanceId": { - "type": "string" - }, - "rootProcessInstanceId": { - "type": "string" - }, "processDefinitionKey": { "type": "string" }, @@ -7880,7 +7877,7 @@ "type": "integer", "format": "int32" }, - "id": { + "rootProcessInstanceId": { "type": "string" }, "appName": {