From 1412d2c928e85a97bd9cc6a2122012e045e78ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Rodr=C3=ADguez=20Pedrianes?= Date: Fri, 9 Sep 2022 08:24:09 +0100 Subject: [PATCH 1/3] Prepare next snapshot 1.3.1.SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 48015d9..bea277f 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.kuflow.rest.client kuflow-rest-client - 1.3.0 + 1.3.1-SNAPSHOT jar KuFlow REST Client From bca4c7aefe0d1d7707b688d9461e3a0118a98626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Rodr=C3=ADguez=20Pedrianes?= Date: Fri, 9 Sep 2022 13:31:52 +0100 Subject: [PATCH 2/3] [KF-361] Allow to assign an initiator when process is created (#17) * [KF-361] Allow to assign an initiator when process is created * [KF-361] Remove unused model --- .../specs/api.kuflow.com/v1/openapi.yaml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/main/resources/openapi/specs/api.kuflow.com/v1/openapi.yaml b/src/main/resources/openapi/specs/api.kuflow.com/v1/openapi.yaml index 6b4c2e9..888bce8 100644 --- a/src/main/resources/openapi/specs/api.kuflow.com/v1/openapi.yaml +++ b/src/main/resources/openapi/specs/api.kuflow.com/v1/openapi.yaml @@ -96,7 +96,7 @@ paths: get: summary: Find all accessible Processes description: | - List all the Processes that have been created and the the credentials has access. + List all the Processes that have been created and the credentials has access. Available sort query values: id, createAt, lastModifiedAt operationId: findProcesses @@ -120,6 +120,14 @@ paths: description: | Creates a process. This option has direct correspondence to the action of starting a process in the Kuflow GUI. + When a process is created, the current user is assigned as the process initiator, if you want to change it, you can pass a valid + initiator using the following options: + + * If you know the `principal Id` you can assign it to `initiator.id` + * If you know the `user Id` you can assign it to `initiator.user.id` + * If you know the `user email` you can assign it to `initiator.user.email` + * If you know the `application Id` you can assign it to `initiator.application.id` + If you want the method to be idempotent, please specify the `id` field in the request body. operationId: createProcess tags: @@ -336,7 +344,7 @@ paths: get: summary: Find all accessible Taks description: | - List all Tasks that have been created and the the credentials has access. + List all Tasks that have been created and the credentials has access. Available sort query values: id, createdAt, lastModifiedAt, claimedAt, completedAt, cancelledAt operationId: findTasks @@ -1237,7 +1245,6 @@ components: oneOf: - $ref: "#/components/schemas/ProcessElementValue" initiator: - readOnly: true allOf: - $ref: "#/components/schemas/Principal" required: @@ -1369,9 +1376,6 @@ components: $ref: "#/components/schemas/PrincipalUser" application: $ref: "#/components/schemas/PrincipalApplication" - required: - - id - - type PrincipalType: type: string @@ -1388,9 +1392,6 @@ components: format: uuid email: type: string - required: - - id - - email PrincipalApplication: type: object @@ -1398,8 +1399,6 @@ components: id: type: string format: uuid - required: - - id DeleteElementCommand: type: object From 4cdf425e8303fb1f379eb6805454b14158abce4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Rodr=C3=ADguez=20Pedrianes?= Date: Fri, 9 Sep 2022 13:33:49 +0100 Subject: [PATCH 3/3] Release 1.3.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bea277f..6928ec6 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.kuflow.rest.client kuflow-rest-client - 1.3.1-SNAPSHOT + 1.3.1 jar KuFlow REST Client