diff --git a/src/main/java/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess.java b/src/main/java/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess.java index 98a4120..26a5b14 100644 --- a/src/main/java/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess.java +++ b/src/main/java/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess.java @@ -85,6 +85,7 @@ protected RegulationDispatchWorkflowMetaProcess(String reference, LocalDate emis init(reference, emissionDate, emissor, description, regulationReference); } + @Atomic public static RegulationDispatchWorkflowMetaProcess createNewProcess(final CreateRegulationDispatchBean bean, final User user) { String reference = bean.getReference(); diff --git a/src/main/java/module/regulation/dispatch/presentationTier/CreateRegulationDispatchAction.java b/src/main/java/module/regulation/dispatch/presentationTier/CreateRegulationDispatchAction.java index 6fd7c97..4cf1032 100644 --- a/src/main/java/module/regulation/dispatch/presentationTier/CreateRegulationDispatchAction.java +++ b/src/main/java/module/regulation/dispatch/presentationTier/CreateRegulationDispatchAction.java @@ -78,7 +78,7 @@ public ActionForward createInvalid(final ActionMapping mapping, final ActionForm return forward("/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess/create.jsp"); } - @Atomic + public ActionForward create(final ActionMapping mapping, final ActionForm form, final HttpServletRequest request, final HttpServletResponse response) { CreateRegulationDispatchBean bean = getRenderedObject("bean"); @@ -115,6 +115,7 @@ public ActionForward editInvalid(final ActionMapping mapping, final ActionForm f final HttpServletResponse response) { RegulationDispatchActivityInformation bean = getRenderedObject("bean"); request.setAttribute("bean", bean); + request.setAttribute("dispatch", bean.getProcess()); return forward("/module/regulation/dispatch/domain/RegulationDispatchWorkflowMetaProcess/edit.jsp"); }