Skip to content

Commit

Permalink
add client before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Nov 6, 2024
1 parent 9d5a7f5 commit 99ba6d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ private String encodeXMLDiagramName(String xmlDiagramName) {

private void saveWorkflow() {
try {
this.workflow.setClient(ServiceManager.getUserService().getSessionClientOfAuthenticatedUser());
ServiceManager.getWorkflowService().save(this.workflow, true);
} catch (DataException e) {
Helper.setErrorMessage(e.getLocalizedMessage(), logger, e);
Expand All @@ -345,7 +346,6 @@ private void saveWorkflow() {
*/
public String newWorkflow() {
this.workflow = new Workflow();
this.workflow.setClient(ServiceManager.getUserService().getSessionClientOfAuthenticatedUser());
return workflowEditPath + "&id=" + (Objects.isNull(this.workflow.getId()) ? 0 : this.workflow.getId());
}

Expand Down

0 comments on commit 99ba6d5

Please sign in to comment.