Bug 768127

Summary: Process disappears upon save in Web Designer if error in variables
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jeff DeLong <jdelong>
Component: jBPM 5Assignee: Kris Verlaenen <kverlaen>
Status: VERIFIED --- QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: rzhang
Target Milestone: ---   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jeff DeLong 2011-12-15 20:28:31 UTC
Description of problem:

Process disappears upon save in Web Designer if error in variables, or in other text entry fields. No way for user to know the correct format. Error makes it impossible for Designer to save the changes.

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

Dev6 - designer.war


How reproducible:

Very


Steps to Reproduce:
1. Create a simple process (Start -> Script Task -> End). 
2. Enter the package and id
3. Enter a few variables with an error in their format.
4. Add a script 
5. Save
  
Actual results:

The process disappears. 

Expected results:

WARNING: JSON error, process variable incorrectly specified, changes were not saved. Correct format for process variables is <variableName>:<variableType>,<variableName>:<variableType>,...


Additional info:

Saving often helps mitigate the general problem, as you can re-open the older version of the saved file.

Comment 1 Tihomir Surdilovic 2012-01-02 21:00:55 UTC
This is fixed in designer and the guvnor 5.3.x branch. However the functionality is somewhat different:
When user tries to save a process or view the process sources from the Guvnor function bar above the designer editor, and there are parsing issues with the process trying to be saved, Designer will prompt user with a message that this operation could not be performed and to view the server logs for more details. It is not easy to deliver error-specific messages and this would take a large amount of time. Let me know if the currently described functionality works for you.

Thanks.

Comment 2 Tihomir Surdilovic 2012-01-02 21:02:35 UTC
assigning to jeff to provide info.

Comment 3 Jeff DeLong 2012-01-02 23:02:08 UTC
As long as the server log describes the problem with the process and the process does not disappear this should be okay.