Bug 1243598 - [GSS](6.1.z) Designer does not allow line breaks in many component
Summary: [GSS](6.1.z) Designer does not allow line breaks in many component
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: jBPM Designer
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: CR2
: 6.1.0
Assignee: Tihomir Surdilovic
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On: 1243597
Blocks: bpms6.1.3-payload
TreeView+ depends on / blocked
 
Reported: 2015-07-15 21:21 UTC by Alessandro Lazarotti
Modified: 2020-03-27 19:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1243597
Environment:
Last Closed: 2020-03-27 19:04:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1259265 0 unspecified CLOSED Cannot save imported process with signal catching event 2021-02-22 00:41:40 UTC

Internal Links: 1259265

Description Alessandro Lazarotti 2015-07-15 21:21:02 UTC
+++ This bug was initially created as a clone of Bug #1243597 +++

User is not able to use line breaks in most bpmn2 components in Designer, that affects the readability of processes.

The follow components does not support line breaks:
- Events
- Gateways
- Swimlanes

Customer expectation is that all components support line breaks in text fields. 

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

Comment 2 Tihomir Surdilovic 2015-08-17 16:13:29 UTC
master: https://github.com/droolsjbpm/jbpm-designer/commit/085a65545
6.3.x: https://github.com/droolsjbpm/jbpm-designer/commit/0a70129da
6.2.x: https://github.com/droolsjbpm/jbpm-designer/commit/0ca8936213b75071eae5253e98d84036d0e0613f

This is possible now for following elements: 

Gateways
Lanes
Subprocesses
Events
Data Objects
Data Stores
Text Annotations
callActivities

Comment 3 Tihomir Surdilovic 2015-08-24 17:35:52 UTC
Updates for commits (6.2.x branches):

jbpm: https://github.com/droolsjbpm/jbpm/commit/ca172a339
jbpm-designer: https://github.com/droolsjbpm/jbpm-designer/commit/778c561d5

Comment 5 Jiri Locker 2015-09-01 16:03:13 UTC
Hi, I have to return this ticket because the merge conflict on 6.2.x branch wasn't resolved correctly and some unrelated changes were included.

For example https://github.com/droolsjbpm/jbpm-designer/commit/0ca8936213b75071eae5253e98d84036d0e0613f#commitcomment-13002949. Due to this change, old color attributes are ignored and so when opening a BPMN2 process created in 6.1.2 or older, no colors are displayed. This is a regression.

Please revisit the commit on 6.2.x branch carefully, there may be many more unrelated changes.

Comment 6 Kirill Gaevskii 2015-09-01 16:17:31 UTC
Hi,

product version have no Data Objects and Data Stores so it is not tested. For another component you can add the name with line breaks through properties. If you will double-click on element it will remove all line breaks from it name.

See: 
https://bugzilla.redhat.com/show_bug.cgi?id=1258980
https://bugzilla.redhat.com/show_bug.cgi?id=1233981

Comment 7 Tihomir Surdilovic 2015-09-01 16:44:42 UTC
For colors the older definitions still the default colors should be applied. There is no backwards compatibility to older colors as we started using a bpmn2 color standard which should be used moving forward instead of the custom attributes we had earlier.

Comment 8 Tihomir Surdilovic 2015-09-01 16:46:10 UTC
The color change allows users to be compatible between editors that use bpmncolor standard.

Comment 9 Tihomir Surdilovic 2015-09-01 16:47:35 UTC
(In reply to Kirill Gaevskii from comment #6)
> Hi,
> 
> product version have no Data Objects and Data Stores so it is not tested.
> For another component you can add the name with line breaks through
> properties. If you will double-click on element it will remove all line
> breaks from it name.
> 
> See: 
> https://bugzilla.redhat.com/show_bug.cgi?id=1258980
> https://bugzilla.redhat.com/show_bug.cgi?id=1233981

Yes, as stated in the original BZ for these changes from the last patch release to add multiline names users have to use the "name" property from the properties menu on the right.

Comment 10 Jiri Locker 2015-09-01 17:14:31 UTC
(In reply to Tihomir Surdilovic from comment #7)
> For colors the older definitions still the default colors should be applied.
> There is no backwards compatibility to older colors as we started using a
> bpmn2 color standard which should be used moving forward instead of the
> custom attributes we had earlier.

If I understand it correctly this is a move towards being more standards-aligned. This is good and I also understand that changes breaking backward compatibility are acceptable under certain conditions. It would probably be OK to drop the old drools-namespaced attributes in the next minor release (6.x) but if this change was not specifically requested by users I would rather not included in this 6.1.x patch update.

Comment 11 Tihomir Surdilovic 2015-09-01 17:16:25 UTC
I understand. At this point it would be easier to add the backwards compat than remove the standards impl. I will do that and as users save the process they will get the updated bpmn2 which includes the standard. WDYT?

Comment 12 Jiri Locker 2015-09-01 17:47:36 UTC
Does that mean the bunch of additional changes on 6.2.x (compared to original fix on master) are not a result of bad merge but were included intentionally because they were somehow necessary for the backport?

If so, can you please confirm that the change of color attributes is the only side effect? Or do we need to watch out for other changes in behaviour? Your answer would be helpful because we got parse error of the process attached to bug 1242410 but validation of the same process in 6.1.2 (previous patch) has no errors(*) so I suspected this to be perhaps something that had broken with the "bad merge".

(*) These are not regular validation issues but a parsing error that prevents getting validation results, accessing node properties and making changes on canvas.

Comment 13 Tihomir Surdilovic 2015-09-02 03:15:07 UTC
We did have an issue with moving only the needed code over because we did large changes to many parts of the round-tripping json-to-bpmn2 in between the last and this patch releases. I think definitely look out for any possible issues and report so we can fix asap.
Thank you!

Comment 14 Tihomir Surdilovic 2015-09-02 15:29:59 UTC
6.2.x commit for backwards compat on colors:
https://github.com/droolsjbpm/jbpm-designer/commit/bd158a8098b6b05fa82d3006337f48acf81ed128

Comment 15 Jiri Locker 2015-09-10 15:14:36 UTC
Colors backward compatibility added.


Note You need to log in before you can comment on or make changes to this bug.