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

Workflow notification event has a wrong id regarding the XSD

    Details

      Description

      Attaching a "private message" notification to a workflow state in the Kaleo editor prevents the workflow to be saved.
      The problem is that the value associated with the "private Message" choice is "privateMessage" whereas the XDS says it should be "private-message"

      Here is the part of the stacktrace that show the issue :

      [...]
      at java.lang.Thread.run(Thread.java:744)
      Caused by: com.liferay.portal.kernel.workflow.WorkflowException: Unable to parse definition
      at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:69)
      at com.liferay.portal.workflow.kaleo.runtime.DefaultWorkflowEngineImpl.validateWorkflowDefinition(DefaultWorkflowEngineImpl.java:509)
      ... 216 more
      Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 50 of document : cvc-enumeration-valid: Value 'privateMessage' is not facet-valid with respect to enumeration '[email, im, private-message, user-notification]'. It must be a value from the enumeration. Nested exception: cvc-enumeration-valid: Value 'privateMessage' is not facet-valid with respect to enumeration '[email, im, private-message, user-notification]'. It must be a value from the enumeration.
      at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:393)
      at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:141)
      at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.doParse(XMLWorkflowModelParser.java:78)
      at com.liferay.portal.workflow.kaleo.parser.XMLWorkflowModelParser.parse(XMLWorkflowModelParser.java:66)
      ... 217 more
      Caused by: org.dom4j.DocumentException: Error on line 50 of document : cvc-enumeration-valid: Value 'privateMessage' is not facet-valid with respect to enumeration '[email, im, private-message, user-notification]'. It must be a value from the enumeration. Nested exception: cvc-enumeration-valid: Value 'privateMessage' is not facet-valid with respect to enumeration '[email, im, private-message, user-notification]'. It must be a value from the enumeration.
      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:390)
      ... 220 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              harry.chai Harry Chai
              Reporter:
              alexandre.fillatre Alexandre Fillatre
              Participants of an Issue:
              Recent user:
              Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 46 weeks, 4 days ago

                  Packages

                  Version Package
                  7.1.0 M1
                  7.1.X
                  7.2.X
                  Master