Description
I've been trying to use custom icons for custom work items in jbpm-console, and there seems to be a bug in the jbpm-designer code that prevents using icons uploaded through the web interface or in external jars.
If you step through the source code during the process designer load, you'll find that the JbpmPreprocessingUnit class assumes that all icon files exist in a project's "/global" folder, and it prepends the global folder path to any icon paths in wid files if they doesn't already start with it. Also, you can't upload to the global folder through the web interface because it forces all uploaded files to be placed a project's "/src/main/resources" folder.
I tried working around this limitation by setting a relative path from the global folder like "../src/main/resources/myIcon.png", but that fails, too. None of the icons available in the drop-down in the wid designer work either, because they're all relatively-pathed from the resources folder. That's because the VFSRepository code doesn't resolve relative paths in the assetExists() method when creating a uniqueId to use for the lookup.
Unfortunately, until this limitation is addressed, we can only reference icons in a project's global folder. I'd upload a fix, but it's not clear what the dev team intends as the proper behavior.
Thanks in advance,
Robert
p.s. It should be noted that none of these problems exist in the eclipse designer where custom icons work perfectly.