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

Kaleo designer: View mode will add some default label which cause workflow change

Details

    Description

      1. Go to Control Panel -> Kaleo Designer.
      2. Edit Single Approver.
      3. Do not any action in edit page, directly click Publish.
      *Result: *Generated workflow is different from original. Please see the below defination.

      Generated:

      <notification>
                      <name>Review Notification</name>
                      <template> <![CDATA[${userName} sent you a ${entryType} for review in the workflow.]]> </template>
                      <template-language>freemarker</template-language>
                      <notification-type>user-notification</notification-type>
                      <recipients>
                          <user/>
                      </recipients>
                      <execution-type>onAssignment</execution-type>
      </notification>
      

      Original:

      <notification>
                      <name>Review Notification</name>
                      <template>${userName} sent you a ${entryType} for review in the workflow.</template>
                      <template-language>freemarker</template-language>
                      <notification-type>email</notification-type>
                      <notification-type>user-notification</notification-type>
                      <execution-type>onAssignment</execution-type>
      </notification>
      

      In view mode, <recipients> is existed in <notification> by default, so this will be added when publish the form in view mode. and <notification-type> only can be set for one in one <notification>. If I publish this in view mode, it will fetch view desgined workflow. This will create one different workflow with the original, even though I didn't do any change.

      Expected Behavior: Please improve UI desgin so that workflow definition is not changed.

      Attachments

        Activity

          People

            renato.rego Renato RĂªgo
            hai.yu Hai Yu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package