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

Kaleo Designer removes the "receptionType="to"" attribute and changes recipients from XML document when changing to "View" mode

    Details

    • Story Points:
      1
    • Fix Priority:
      4

      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 used to have
        <notification>
            <name>Review Completion Notification</name>
            <template>
                <![CDATA[]]>
            </template>
            <template-language>freemarker</template-language>
            <notification-type>email</notification-type>
            <recipients receptionType="to">
                <user/>
            </recipients>
            <execution-type>onExit</execution-type>
        </notification>
        

        now we have

        <notification>
            <name>Review Completion Notification</name>
            <template>
                <![CDATA[]]>
            </template>
            <template-language>freemarker</template-language>
            <notification-type>email</notification-type>
            <recipients>
                <assignees/>
            </recipients>
            <execution-type>onExit</execution-type>
        </notification>
        

        i.e

      • the receptionType="to" attribute from recipients was dropped; and
      • the recipients changed from users to assignees.

        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:
                  6 days ago