Closed haulmont-git closed 5 years ago
ProcessRuntimeManagerBean:93
ProcessInstance activitiProcessInstance = runtimeService.startProcessInstanceById(procInstance.getProcDefinition().getActId(), variables); procInstance.setActProcessInstanceId(activitiProcessInstance.getProcessInstanceId()); procInstance.setStartComment(comment); procInstance.setActive(true); procInstance.setStartDate(timeSource.currentTimestamp()); procInstance.setStartedBy(userSessionSource.getUserSession().getCurrentOrSubstitutedUser()); procInstance = em.merge(procInstance);
In fact, after runtimeService.startProcessInstanceById call process is already completed, but here we rewrite active flag and other variables.
Original issue: https://youtrack.haulmont.com/issue/PL-9292
Git changesets by gorbunkov:
gorbunkov
a32f66e1 in master - Process Instances remain Active if they do not have user tasks #17
ProcessRuntimeManagerBean:93
In fact, after runtimeService.startProcessInstanceById call process is already completed, but here we rewrite active flag and other variables.
Original issue: https://youtrack.haulmont.com/issue/PL-9292