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

DDM Form Expression evaluation method calls itself recursively more often than necessary

    Details

      Description

      In the method DDMFormEvaluatorHelper.setDDMExpressionVariables(

      this will lead to a recursive call even when the valueString is blank

      String valueString = getValueString(
      	ddmFormFieldValue.getValue(), ddmFormField.getType());
      
      if (valueString != null) {
      	setExpressionVariableValue(
      		ddmExpression, name, ddmFormField.getDataType(),
      		valueString);
      }
      

      If a form contains fields the magnitude of hundreds, running the evaluation will last about 30 seconds.

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            istvan.dezsi Istvan Dezsi
            Participants of an Issue:
            Recent user:
            Cleydyr Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 6 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP60
                7.0.0 DXP SP9
                7.0.X