Backslash is deleted when saving a gel script that reads a pipe delimited file

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

Problem:

Whenever you click save on any Process Script in, and put a "\" (backslash) in front of the Pipe delimiter, the backslash disappears right after you click save.
Without the backslash, the pipe character is interpreted as "OR", which is what we don't want. 

Steps to Reproduce:

1. Create a new process 
2. In that process create a new step
3. In that new step create a new action that is a Custom Script
4. Fill in the required Action Name and Action ID
5. In the box enter the following 

<gel:script
xmlns:core="jelly:core"
xmlns:file="jelly:com.niku.union.gel.FileTagLibrary"
xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary">
<file:readFile fileName="sampledata.pipe" embedded="false"
var="input" delimiter="\|"/>
<gel:out>Input has ${input.size()} rows.</gel:out>
<core:forEach items="${input.getRows()}" var="row">
<gel:out>Username = ${row[0]}</gel:out>
<gel:out>First = ${row[1]}</gel:out>
<gel:out>Last = ${row[2]}</gel:out>
<gel:out>ResourceID = ${row[3]}</gel:out>
</core:forEach>
</gel:script>

6. Click on 'Save' button  
 
Expected Results: Backslash is saved in the following line -- var="input" delimiter="\|"/>
Actual results: Backslash is deleted and saved as in the following line --- var="input" delimiter="|"/> 

Environment:

Applies to all supported PAS environments for specified releases.

Cause:

Caused by CLRT-78367

Resolution:

Resolved in CA PPM 14.2 Generic Patch #4.

Additional Information:

Reference TEC1398937 : PPM 14.2 Generic Patch available to resolve reported issues

Reference CA PPM Resolved Defects Index for CA PPM 14.3

Reference TEC1168095 : BPM-7073 Error GEL Script in 14.2 when HTML img tag is present