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

Kaleo Designer removes notification type form XML document when changing to "View" mode

    Details

      Description

      When we add an XML document to the "Source" from Kaleo Designer and then go to the "View" mode, some content can be added to specific nodes, resulting in a different workflow definition than the one first given.

      Steps to reproduce

      1. Go to Kaleo Designer.
      2. Go to the "Source (Kaleo XML)" mode.
      3. Replace the content of the editor with the content from single-approver-3.xml.
      4. Go back to the "View" mode.
      5. Go back to the "Source (Kaleo XML)" mode.
      6. Compare the resulting XML document to the original one we got from single-approver-3.xml .

      Expected results

      • The content we got from the editor would be identical to the one from single-approver-3.xml. At most, some formatting changes would be applied.

      Actual results

      • Where we had
        <notification>
            <name>Creator Modification Notification</name>
            <template>
                <![CDATA[]]>
            </template>
            <template-language>freemarker</template-language>
            <notification-type>email</notification-type>
            <notification-type>user-notification</notification-type>
            <execution-type>onAssignment</execution-type>
        </notification>
        
        

        now we have this:

            <name>Creator Modification Notification</name>
            <template>
                <![CDATA[]]>
            </template>
            <template-language>freemarker</template-language>
            <notification-type>user-notification</notification-type>
            <recipients>
                <user/>
            </recipients>
            <execution-type>onAssignment</execution-type>
        </notification>
        

        In this new result <notification-type>email</notification-type> line was deleted.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 27 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP58
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.0 Beta 1
                  7.1.X
                  7.2.X
                  Master