Red Hat Bugzilla – Bug 1233981
[GSS](6.1.z) Unable to split the connector name into two lines in BPM Suite 6.1
Last modified: 2015-09-01 11:48:12 EDT
+++ This bug was initially created as a clone of Bug #1225181 +++ Description of problem: It is not possible to split a connector name into two lines. After saving, everything is placed at the same line. See xx and yy. Version-Release number of selected component (if applicable): BPM Suite 6.1 How reproducible: Always (firefox) Steps to Reproduce: 1. Create a simple process and add a connector; 2. Name it and split the name into two lines (i.e. Sample Name) 3. Save , close and re-open the process. Actual results: Everything will be placed at the same line after saving. Expected results: It should still be splitted into two lines after saving/re-opening.
For nodes that have a width+height (like tasks, subprocesses etc) the name text is placed inside the node. In these cases we do have the ability to 'fill" the space of the node with text and put the text within the boundaries of the node shape. For Sequence Flows since they are lines we have to place the name above the line. There is no shape (with+height) so we have to place the text in a single line. I tried a couple of options to fix this but none of them really look good. The best I could suggest for sequence flows is in the case a longer name is needed to make the sequence flow line long enough for that text to fit in.
Just to add - there is always an option for the user to add a Text Annotation node to the sequence flows. This node is purely cosmetic and allows users to place additional text / description / explanation of certain nodes in the process. This would be a great workaround for this issue as well.
Fixed in Designer master and 6.2.x branches. 6.2.x commit https://github.com/droolsjbpm/jbpm-designer/commit/c5402f1eba56c063468bde9d3afd48d4a8c92b74 Please note that you have to use the Name property in the properties pannel in otder to set a multi-line name for sequence flows. This is done for sequence flows and Tasks. For other nodes please raise a different BZ as their implementation will need a little different approach.
This is appropriated thanks Tiho
SequenceFlow is splitted into two lines after saving/re-opening. But building of process fails with error: ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseException : <metaData> has an invalid parent element [SequenceFlow (_04D7C658-CA7D-4137-9C86-A1568359F3AE) [processStartEvent -> _55158B2B-F80F-40EE-9725-56465865423A]]
Can you please tell me how I can reproduce your findings? I tried locally with master and 6.2.x branches and I tested on http://hp-dl380pg8-01.lab.eng.brq.redhat.com:8100/kie-wb without success. Where can I download the bits or what eng server can I use to see the issues?
Found the issue - the jbpm parser currently does not allow extension elements (metadata) on sequence flows. We have a fix on jbpm master which is currently being evaluated. We will have more info on this very soon.
Tiho - Thank you for digging into this issue!
Fix commits (note they are jBPM commits, not Designer): master: https://github.com/droolsjbpm/jbpm/commit/734a1957b 6.2.x: https://github.com/droolsjbpm/jbpm/commit/4c75d32b9bf4b5d8740c474b066ab4a99f9ce9b0