Created attachment 1130461 [details] ConsoleError Description of problem: If the user tries to create a constant with double quotes, e.g. value="this" in the DataIOEditor, the constant is not saved correctly. Version-Release number of selected component (if applicable): 6.2.0.GA Steps to Reproduce: 1. Create a BP with a User Task 2. Add a DataInput to the task 3. Set the source of the DataInput to a constant which includes double-quotes Actual results: When the user clicks the "OK" button, sometimes there is no response (but there's an error in the browser's debug console) and sometimes the constant is apparently saved, but when the BP is saved then reopened, the constant is missing the double-quote characters. Expected results: Constants should allow double-quote characters. Additional info: See attached image
To reproduce this problem in jbpm-6.4.0.Final: - Create a BP - Add a User Task - Open the Data I/O Editor for the task - Add a Data Input called "input1" and set the source to the constant "hello", including the double-quote characters at the beginning and end. When the focus leaves the Source text-box, the UI should say ""hello"" indicating that the constant is "hello", with a double-quote before and after the word. - Click the Save button on the Data I/O Editor - Open the Data I/O Editor for the task (source still says ""hello"" at this point) - Click the Save button on the Data I/O Editor - Open the Data I/O Editor for the task - at this point, the Source value says "hello", i.e. the constant itself has lost its start and end double-quote.
Fixed on master: https://github.com/droolsjbpm/jbpm-designer/commit/3ea12aa368159efa185d7c65f61d1b7d04ee5bf8