Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-79526

Cannot publish a saved workflow definition with the <task-timer> element in Kaleo Designer

    Details

    • Fix Priority:
      4

      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

      1. Go to Control Panel > Configuration > Workflow
      2. Click Add new workflow
      3. Upload the attached workflow definition
      4. Click Save
      5. Navigate back
      6. Edit Unpublished/Saved workflow
      7. 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)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 2 weeks, 3 days ago

                  Packages

                  Version Package