Details
-
Bug
-
Status: Closed
-
Resolution: Duplicate
-
Master
-
None
Description
Cannot publish the attached workflow definition if it has been saved.
Update: the sorting of elements gets shifted when you return to a saved definition, and the sequencing of elements is out of order with the <task-timers> element coming after <transitions>.
Also shifts when you switch tabs before you publish.
Steps to Reproduce
- Go to Control Panel > Configuration > Workflow
- Click Add new workflow
- Upload the attached workflow definition
- Click Save
- Navigate back
- Edit Unpublished/Saved workflow
- Click Publish
Expected result : The following should happen:
Success message telling me the workflow was published.
Actual result : The following actually happens:
Error message pops up saying "An error occurred in the workflow engine".
Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 131 of document : cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. Nested exception: cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:373) at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:151) at com.liferay.portal.workflow.kaleo.definition.internal.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:80) ... 194 more Caused by: org.dom4j.DocumentException: Error on line 131 of document : cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. Nested exception: cvc-complex-type.2.4.d: Invalid content was found starting with element 'task-timers'. No child element is expected at this point. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:370) ... 196 more
Reproduced on : Tomcat 9.0.6 + MySQL 5.7.20 + Portal master GIT ID 56ab7b9a78b8779519830d81c9628f31c3d15030 ( + Portal master-private GIT ID af0be151b9eac4e6f32a0efa2151b194740d6715)