Red Hat Bugzilla – Bug 801835
Work Item Definition where the work item name contains spaces breaks designer
Last modified: 2012-05-04 11:56:07 EDT
Description of problem:
After creating a WID like this in Guvnor
> "name" : "My Task",
> "parameters" : [ ... ],
> "results" : [ ... ],
> "displayName" : "My Task",
> "icon" : "",
designer throws an exception when looking for file
and fails to finish opening any process.
Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4
Steps to Reproduce:
1. create a new Work Item Definition in Guvnor
2. save it as is, as long as it is pre-filled with a work item named "My Task"
3. create or open any BPMN2 process in the same package
Designer fails to load the process. It shows "Please wait while loading..." message forever. java.io.FileNotFoundException is thrown (see server log).
Designer should look for the correct file and not fail if work item definition contains spaces.
Created attachment 568949 [details]
First made change to Guvnor default wid template to remove the space in the name field value (https://github.com/droolsjbpm/guvnor/commit/08b396b9f33a86c50e5c5e42e74aaa094e5b3e42) - this is in the Guvnor 5.3.x branch. Also updated Designer to remove any spaces in the name if there are any. Also fixed issue with empty icons by introducing a default service node icon which gets placed if no icon value is selected. Designer changes are in master and Designer 2.1.x branch.
Fix verified in ER6. A small step to make Guvnor+Designer unbreakable :)