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

Change default script language to Groovy for Kaleo Designer

    Details

      Description

      Note, this fix is almost a duplicate of LPS-71899, however this fix is only aimed at Kaleo Designer, which is a private module and therefore a unique 70x fix.

      Description:
      When attempting to create a new Kaleo Workflow Definition through Kaleo Designer, the default XML which is populated has a small section of code set to run as Javascript. However, as noted in a pull request by Mike Han, we should not be including other scripting executors such as Javascript into the Lifeay Foundation package. Instead, we should be moving to only use Groovy as our executor.

      Since this is the case, we should not have Javascript as the default language for any script instance.

      Steps to Reproduce:

      1. Go to Kaleo Designer
      2. Create a new definition
      3. View the source

      Expected:
      Groovy is set as the language in the definition

      Actual:
      Javascript is set as the language in the definition

      Reproduced:
      DXP de-13 - Yes, and in release bundles, this issue causes an Unsupported Language Exception if Javascript is used anywhere. This is seen by using the definition.
      Branch 70x - Yes, 1403b918fbe4be0bde83b560e20c9b81b3cfd6c7
      Master - Yes, but only Scenario 2 as Kaleo Designer is a private module, 2340bf972ad7381359fdc6df40e388d12c1daa52

        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:
                  3 years, 16 weeks, 6 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP14
                  7.0.0 DXP SP3
                  7.0.3 CE GA4
                  7.0.X EE
                  Master