creating Workflow error

Application Name: OpenMRS platform 2.0.1 Version Number: Reference 2.5

Question: I am trying to setup states for a workflow following instructions from here: https://wiki.openmrs.org/display/docs/Administering+Programs,+Workflows+and+States created program created workflow when i tried to create states for the workflow by click on the workflow link got a workflow not found error. not sure why.

Thanks, Tim

Can you remove this Program and try creating new program and see if the error still comes? And can you paste server logs.

1 Like

Hi, not sure what you mean by deleting this program and recreate it. do you have a new version? i downloaded this from the website.

thanks, Trung

On OpenMRS Programs page, you have created a new program and tried adding Workflow, states right… I was asking you to delete the created program and try creating a new program and see if the error is still persisting.

got it. will let you know.

thanks

Hello, still got the same http 500 error after deleted program and added a new one. pasting the errors from apache:

INFO - LoggingAdvice.invoke(115) |2016-12-05 11:27:54,812| In method ConceptService.saveConcept. Arguments: Concept=Concept #null, INFO - LoggingAdvice.invoke(155) |2016-12-05 11:27:54,842| Exiting method saveConcept INFO - LoggingAdvice.invoke(115) |2016-12-05 11:29:58,889| In method ProgramWorkflowService.saveProgram. Arguments: Program=Program(id=2, concept=Concept #129473, workflows=[ProgramWorkflow(id=null)]), INFO - LoggingAdvice.invoke(155) |2016-12-05 11:29:58,942| Exiting method saveProgram Dec 05, 2016 11:30:01 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [openmrs] in context with path [/openmrs-standalone] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Can’t find workflow] with root cause java.lang.IllegalArgumentException: Can’t find workflow at org.openmrs.web.controller.program.WorkflowFormController.formBackingObject(WorkflowFormController.java:67) at org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:366) at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:346) at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:288) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:146) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:50) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.module.web.filter.ForcePasswordChangeFilter.doFilter(ForcePasswordChangeFilter.java:60) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:72) at org.openmrs.module.owa.filter.OwaFilter.doFilter(OwaFilter.java:57) at org.openmrs.module.web.filter.ModuleFilterChain.doFilter(ModuleFilterChain.java:70) at org.openmrs.module.web.filter.ModuleFilter.doFilter(ModuleFilter.java:54) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.web.filter.OpenmrsFilter.doFilterInternal(OpenmrsFilter.java:108) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:150) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

Hi, Looks like there is bug in OpenMRS Legacy UI module which is fixed in 1.2.4 version. Can you try updating the Legacy UI module? For updating Legacy UI Module to the version 1.2.4 in which the issue is fixed, you will have to clone and build this openmrs repo locally as the module is not yet released which can be checked at https://modules.openmrs.org/#/show/231/legacy-ui-module.

Hi, i updated the module to latest so there is no more error but the save function does not work. I clicked save after enter a stage and then exit, get back in the same workflow but the states were not there.

Can you share screenshot and list the steps followed?

what is a quick way to send you and short video that recorded my steps?

Can you try https://vimeo.com/upload or FileDropper

here is the link. http://www.■■■■■■■■■■■■■■■/openmrsworkflowprocess

again, i am new to openmrs so I may have missed some steps.

Thanks, Tim

Hello, were you able to view the video and tell what was going on?

Thanks, Tim

@missilen, Suspected if the reason was using random concepts for Workflow, Program, States. Tried in local , that doesn’t seem to be a problem. Can you check in server logs to see if there is any exception thrown thats not visible on UI?