Bug 1216093 - Cannot print new line using \n in script task in BPMS 6.1
Summary: Cannot print new line using \n in script task in BPMS 6.1
Keywords:
Status: CLOSED DUPLICATE of bug 1121332
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Tihomir Surdilovic
QA Contact: Kirill Gaevskii
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-28 13:25 UTC by Abhijit humbe
Modified: 2019-06-13 08:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-17 11:29:21 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
reproducerattempt (3.52 MB, video/quicktime)
2015-04-30 17:42 UTC, Tihomir Surdilovic
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.