diff --git a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx index 96ad1138..b4078155 100644 --- a/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx @@ -262,10 +262,14 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { return spiffStepLink(, 1); }; + const returnToLastSpiffStep = () => { + window.location.href = `/admin/process-instances/${params.process_model_id}/${params.process_instance_id}`; + }; + const resetProcessInstance = () => { HttpService.makeCallToBackend({ path: `${targetUris.processInstanceResetPath}/${currentSpiffStep()}`, - successCallback: refreshPage, + successCallback: returnToLastSpiffStep, httpMethod: 'POST', }); }; @@ -637,8 +641,7 @@ export default function ProcessInstanceShow({ variant }: OwnProps) { HttpService.makeCallToBackend({ path: `/task-complete/${modifiedProcessModelId}/${params.process_instance_id}/${taskToUse.id}`, httpMethod: 'POST', - successCallback: saveTaskDataResult, - failureCallback: saveTaskDataFailure, + successCallback: returnToLastSpiffStep, postBody: { execute }, }); };