Description of problem:
If a service task contains a java command which covers more than 1 line then saving this in the designer will make the project not compilable.
Steps to Reproduce:
1. Import jbpm-plaground
2. Switch to 'async-examples'
3. Go to 'Project Editor' and hit 'Build&Deploy' (build should succeed)
4. Open the 'check weather' process, make a modification (e.g. move an activity), save the change
5. Go to 'Project Editor' and hit 'Build&Deploy' (build should fail)
Unable to build expression for action 'String info = "Response is operation executed successfully:" + weather.success + ...
This is the script defined in the 'Transform' script task and it contains a multiline java command (string concatenation).
No error and the project will be build without errors.
See full server.log in the attachment.
A workaround is to write one command per line. No '\n' characters.
Created attachment 919270 [details]
full server log
Allow "\n" in Java string literals in Script activities.
The previous commit didn't work at runtime, so reverted by undoing the changes in
Handles "\n" in single and multiline expressions in BP's, and fixes the sample BP jbpm-playground/async-examples/check weather
Fix compilation error of "check weather" BP due to previous commit:
Verified on 6.1.0.ER2.
*** Bug 1216093 has been marked as a duplicate of this bug. ***