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

CDATA blocks in an embedded FreeMarker template of a workflow definition are not formatted correctly (non-CE only)

    Details

      Description

      Steps to Reproduce (Non-CE Versions Only)

      1a. On master, navigate to Global Menu (3x3 grid icon on top-right of page) > Process Builder
      1b. On branch, navigate to Control Panel > Configuration > Workflow
      2. Create a new workflow
      3. Paste the contents of definition.txt as the workflow definition and save

      Expected Results
      There are no differences in the workflow definition after saving

      Actual Results
      Example of a difference corresponding to the "approved" element (near line 25 of definition.txt):

      Before

      <script>
          <![CDATA[
              import com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil;
              import com.liferay.portal.kernel.workflow.WorkflowConstants;
      
              WorkflowStatusManagerUtil.updateStatus(WorkflowConstants.getLabelStatus("approved"), workflowContext);
          ]]>
      </script>
      

      After

      <script><![CDATA[import com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil;
              import com.liferay.portal.kernel.workflow.WorkflowConstants;
      
              WorkflowStatusManagerUtil.updateStatus(WorkflowConstants.getLabelStatus("approved"), workflowContext);]]></script>
      

        Attachments

        1. after.png
          after.png
          70 kB
        2. before.png
          before.png
          69 kB
        3. definition.txt
          6 kB

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  7.1.X
                  7.2.10 DXP FP7
                  7.2.X
                  Master