Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,16 @@ public WorkflowResponse updateWorkflow(WorkflowRequest workflow, String workflow
currentWorkflow = createWorkflow(workflow, workflowId);
List<WorkflowTemplateParameters> templateProperties = workflow.getTemplate().getSteps();
List<Parameter> parameterList = createParameterList(workflowId, templateProperties);
List<Parameter> oldPrameterList =
workflowManagementService.getWorkflowParameters(workflowId);
workflowManagementService.addWorkflow(currentWorkflow, parameterList,
CarbonContext.getThreadLocalCarbonContext().getTenantId());
// Update the corresponding approval tasks if there are any.
approvalEventService.updateApprovalTasksOnWorkflowUpdate(workflowId, parameterList, oldPrameterList);
return getWorkflow(workflowId);
} catch (WorkflowClientException e) {
throw handleClientError(Constants.ErrorMessage.ERROR_CODE_CLIENT_ERROR_UPDATING_WORKFLOW, workflowId, e);
} catch (WorkflowException e) {
} catch (WorkflowException | WorkflowEngineException e) {
throw handleServerError(Constants.ErrorMessage.ERROR_CODE_ERROR_UPDATING_WORKFLOW, workflowId, e);
}
}
Expand Down
Loading