Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating/expanding a subprocess overlaps previous content #1244

Open
volkergersabeck opened this issue Feb 18, 2019 · 16 comments
Open

Creating/expanding a subprocess overlaps previous content #1244

volkergersabeck opened this issue Feb 18, 2019 · 16 comments
Labels
backlog Queued in backlog BPMN enhancement New feature or request hacktoberfest modeling refactoring support Flags an issue as an improvement for editing of existing diagrams. spring cleaning Could be cleaned up one day ux

Comments

@volkergersabeck
Copy link

volkergersabeck commented Feb 18, 2019

Description

When creating an expanded sub-process inside a flow the sub-process by default overlaps with previous content, requiring additional user actions to properly layout things.

This is shown in the following screencapture:

1244 switch task to subprocess

Expected Behaviour

If the subprocess does not yet have following content, then expand the subprocess only to the right, such that it does not overlap the previous content

@nikku
Copy link
Member

nikku commented Feb 18, 2019

Nice little improvement.

@nikku nikku added BPMN modeling enhancement New feature or request ux labels Feb 18, 2019
@pinussilvestrus pinussilvestrus added the backlog Queued in backlog label Feb 20, 2019
@nikku nikku added this to the M29 milestone Mar 6, 2019
@nikku nikku added ready Ready to be worked on and removed backlog Queued in backlog labels Apr 2, 2019
@falko
Copy link
Member

falko commented Apr 11, 2019

In other situations, an automatic application of the Space Tool might help.

@nikku nikku added the good first issue Good for newcomers label Apr 23, 2019
@gustavjf gustavjf added in progress Currently worked on and removed ready Ready to be worked on labels May 6, 2019
@gustavjf gustavjf self-assigned this May 6, 2019
@philippfromme
Copy link
Contributor

We could even go as far as checking for available space in all directions and expanding based on that information.

@falko
Copy link
Member

falko commented May 7, 2019

Any improvement in this area would be helpful.

@falko
Copy link
Member

falko commented May 7, 2019

And let's be very clear here: This is how it always looks when one creates a Sub-Process because our users are conditioned to avoid the palette and use the context pad.

@falko falko changed the title Expanding a subprocess overlaps previous content Creating/expanding a subprocess overlaps previous content May 7, 2019
@gustavjf
Copy link
Contributor

gustavjf commented May 8, 2019

@philippfromme

Right, we have an issue for the scenario where there is content after the expanded subprocess. In the case of content above and below being overlapped, I think that would need further discussion on what the expected result should be. In this ticket, I'll focus on the scenario where there is only content before, and not above/below/after.

@falko

Just to make sure I understand what you mean by "one creates", do you mean the same as when "one expands", as shown in the screen capture? If not, could you explain how this issue is manifested when creating an expanded subprocess? I understand creating and expanding to be two different scenarios unless I'm mistaken.

@falko
Copy link
Member

falko commented May 8, 2019 via email

@gustavjf
Copy link
Contributor

gustavjf commented May 9, 2019

Got it, thanks for the clarification.

@nikku
Copy link
Member

nikku commented May 29, 2019

We moved this issue back to the backlog as the implementation and the behavioral implications turned out way more complicated than expected.

@nikku nikku removed the needs review Review pending label May 29, 2019
@nikku nikku added the backlog Queued in backlog label May 29, 2019
@nikku nikku removed this from the M29 milestone May 29, 2019
nikku pushed a commit to bpmn-io/bpmn-js that referenced this issue May 29, 2019
… content

This covers two scenarios:

1. When a shape is replaced with an expanded subprocess
2. When a subprocess is toggled from collapsed to expanded

Only when:

1. There are incoming sequence flows (previous content)
2. There are no outgoing sequence flows (following content)

Prescribed in and related to camunda/camunda-modeler#1244
@nikku
Copy link
Member

nikku commented May 29, 2019

Work in progress on upstream feature branch: https://github.com/bpmn-io/bpmn-js/compare/1244-expand-subprocess-right.

@pinussilvestrus pinussilvestrus added the spring cleaning Could be cleaned up one day label Aug 11, 2020
@nikku nikku removed the medium label Dec 8, 2020
@nikku nikku added the refactoring support Flags an issue as an improvement for editing of existing diagrams. label Dec 8, 2023
@JacobiCamunda
Copy link

I stumbled across this today. Here is what it currently looks like.
screen-recorder-wed-jan-17-2024-13-57-48.webm

@falko
Copy link
Member

falko commented Jan 18, 2024 via email

@nikku
Copy link
Member

nikku commented Jan 18, 2024

CC @crobbins215. A good example where we're not done yet because we cause users in rather common refactoring activities (during refinement) harm.

A solution is, unfortunately, not an easy pick, as it would require a flow local space tool.

We could re-assess if there is easy picks to improve the situation.

@crobbins215
Copy link

We had this exact issue when we added "groups" to Flow, we didn't get around to the solution which would be something like #876.

@falko
Copy link
Member

falko commented Jan 18, 2024

How about we just do a partial solution and assume that there is already space to the right, e.g. because we are at the end of a sequence or have already created space. With that assumption we could simply place the Sub-Process further right, i.e. aligned to the left of the morphed task and not centered on it. Maybe that is a quick win that solves 80%.

@nikku
Copy link
Member

nikku commented Jan 18, 2024

We tried the partial solution. It was not an easy pick at the time.

If we optimized for the partial solution, why not use append anything to append a sub-process right away using create/append anything?

capture 4dWlYy_optimized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog BPMN enhancement New feature or request hacktoberfest modeling refactoring support Flags an issue as an improvement for editing of existing diagrams. spring cleaning Could be cleaned up one day ux
Projects
None yet
Development

No branches or pull requests

8 participants