Gel Script process fails to validate when comments are inside of gel script tag.

Document ID : KB000047708
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

Steps to Reproduce:

1. Login to CA PPM as an Administrator
2. Navigate to Administration->Processes
3. Open and existing process in Draft or create a new one
4. Create or go an existing Step

5. Create Custom Script and paste below GEL script
<gel:script
  xmlns:core="jelly:core"
  xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
  xmlns:sql="jelly:sql"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>

  <!-- COMMENT -->
  <core:set var="abc" value="2"/>
    
  <core:if test="${abc &lt; 2}">
    <gel:log level="INFO">This should not throw an error</gel:log>
  </core:if>

</gel:script>

6. Click on Validate


Expected Result: 

GEL script should validate successfully

Actual Result: 

BPM-0703: Custom script syntax error at line 11, column 22: The value of attribute "test" associated with an element type "core:if" must not contain the '<' character.

Workaround:

remove the <!-- comment -->

Cause:

Caused by CLRT-80841

Resolution:

Open. Defect is target for resolution in future release as well as in the next patches for 15.1, 14.4 and 14.3.