Skip to content

Commit

Permalink
fixed WorkflowController.create()
Browse files Browse the repository at this point in the history
Issue #823
  • Loading branch information
rsoika committed Sep 8, 2024
1 parent c0bff42 commit 2b77156
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ public void create() throws ModelException {
data.replaceItemValue("$writeaccess", data.getItemValue(WorkflowKernel.CREATOR));

// assign WorkflowGroup and editor
data.replaceItemValue("$workflowgroup", startProcessEntity.getItemValueString("txtworkflowgroup"));
data.replaceItemValue("$workflowStatus", startProcessEntity.getItemValueString("txtname"));
ItemCollection processDef = modelService.getModelManager().loadProcess(data);
data.replaceItemValue(WorkflowKernel.WORKFLOWGROUP, processDef.getItemValueString("name"));
data.replaceItemValue(WorkflowKernel.WORKFLOWSTATUS, startProcessEntity.getItemValueString("name"));
data.replaceItemValue("txtWorkflowImageURL", startProcessEntity.getItemValueString("txtimageurl"));
data.replaceItemValue("txtWorkflowEditorid", startProcessEntity.getItemValueString("txteditorid"));

Expand Down

0 comments on commit 2b77156

Please sign in to comment.