Bug 1216093

Summary: Cannot print new line using \n in script task in BPMS 6.1
Product: [Retired] JBoss BPMS Platform 6 Reporter: Abhijit humbe <abhumbe>
Component: jBPM DesignerAssignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED DUPLICATE QA Contact: Kirill Gaevskii <kgaevski>
Severity: medium Docs Contact:
Priority: high    
Version: 6.1.0CC: abhumbe, jlindop, kverlaen, mbaluch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-17 11:29:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
reproducerattempt none

Description Abhijit humbe 2015-04-28 13:25:01 UTC
Description of problem:
When using \n in script task in business central project build failed with exception:

Process Compilation error String literal is not properly closed by a double-quote


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Create simple BPMN process which contains script task.
2. Add following SOP statement in script 
System.out.println("\n");
3. Now try to build project, build will fail with exception.

Actual results:


Expected results:


Additional info:
Add above SOP statement in script, save and close process definition. If we reopen same process definition and check script, it will be changed like as:

From:
System.out.println("\n");
TO:
System.out.println("
");

Comment 2 Tihomir Surdilovic 2015-04-30 17:41:30 UTC
I have tried to reproduce this issue without luck so far. See attached screenshot on how this behaves in Designer master and 6.2.x branches. Need further info to reproduce problem as its stated. 

Thanks.

Comment 3 Tihomir Surdilovic 2015-04-30 17:41:59 UTC
in previous comment it should be "see attached video"

Comment 4 Tihomir Surdilovic 2015-04-30 17:42:35 UTC
Created attachment 1020694 [details]
reproducerattempt

Comment 5 Abhijit humbe 2015-05-06 04:49:21 UTC
Hi Tihomir,
Looks like this issue is fixed in master branch. Today again I tried with BPMS 6.1 and jBPM 6.2-final release, and I can see same issue when we use \n.Can you please try with BPMS 6.1 or jBPM 6.2-Final release ? 

Thanks

Comment 6 Jeremy Lindop 2015-12-17 11:29:21 UTC

*** This bug has been marked as a duplicate of bug 1121332 ***