From fa0d5d7ea87050446169d5f69d7e03d7878fc4aa Mon Sep 17 00:00:00 2001 From: Elizabeth Esswein Date: Fri, 16 Dec 2022 16:22:59 -0500 Subject: [PATCH] update url to allow permissions on send event --- spiffworkflow-backend/src/spiffworkflow_backend/api.yml | 2 +- spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/api.yml b/spiffworkflow-backend/src/spiffworkflow_backend/api.yml index e725d2b76..afea32c42 100755 --- a/spiffworkflow-backend/src/spiffworkflow_backend/api.yml +++ b/spiffworkflow-backend/src/spiffworkflow_backend/api.yml @@ -808,7 +808,7 @@ paths: schema: $ref: "#/components/schemas/OkTrue" - /process-instances/{modified_process_model_identifier}/{process_instance_id}/event: + /send-event/{modified_process_model_identifier}/{process_instance_id}: parameters: - name: modified_process_model_identifier in: path diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx index e69b4854d..73b95020f 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -528,7 +528,7 @@ export default function ProcessInstanceShow() { if ('payload' in eventToSend) eventToSend.payload = JSON.parse(eventPayload); HttpService.makeCallToBackend({ - path: `/process-instances/${modifiedProcessModelId}/${params.process_instance_id}/event`, + path: `/send-event/${modifiedProcessModelId}/${params.process_instance_id}`, httpMethod: 'POST', successCallback: saveTaskDataResult, failureCallback: saveTaskDataFailure,