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

Create Ad-Hoc SubProcess via create/replace menu #4801

Closed
2 tasks
barmac opened this issue Jan 22, 2025 · 12 comments
Closed
2 tasks

Create Ad-Hoc SubProcess via create/replace menu #4801

barmac opened this issue Jan 22, 2025 · 12 comments
Assignees
Labels
enhancement New feature or request modeling ux
Milestone

Comments

@barmac
Copy link
Collaborator

barmac commented Jan 22, 2025

Problem you would like to solve

I just tried out the properties panel solution, and found the way to create an ad-hoc subprocess super cumbersome. It is a separate type of an element. Why do we create it via modifiers? Why can't I find it in the create/replace menu?

Image

I can create a transaction though:

Image

Proposed solution

  • Add ad-hoc subprocess to the list of elements (with proper icon/icons)
  • Remove ~ symbol from modifiers

Image

Alternatives considered

Keep the ~ modifier.

Additional context

Related to #4739

@barmac barmac added enhancement New feature or request modeling ux labels Jan 22, 2025
@jarekdanielak
Copy link
Contributor

Do we keep the ~ in the UI as an indicator of an ad-hoc subprocess or we make it look different somehow else?

cc. @lmbateman

Image

@jarekdanielak jarekdanielak self-assigned this Jan 22, 2025
@nikku
Copy link
Member

nikku commented Jan 22, 2025

Do we keep the ~ in the UI as an indicator of an ad-hoc subprocess or we make it look different somehow else?

We need to keep it on the UI, I'd be fine to have same sub-process and ad-hoc sub process icon.

@barmac
Copy link
Collaborator Author

barmac commented Jan 22, 2025

Remove ~ symbol from modifiers

It's about this modifier:

Image

@barmac
Copy link
Collaborator Author

barmac commented Jan 22, 2025

Do we keep the ~ in the UI as an indicator of an ad-hoc subprocess or we make it look different somehow else?

cc. @lmbateman

Image

The ~ has to stay. This is required by the BPMN specification.

@lmbateman
Copy link

So, just to clarify

  • We're keeping the ~ in the on-canvas element, per BPMN standard
  • We're removing the ~ from the Create element menu, and explicitly adding subprocesses to the Sub-processes list

If correct, that sounds good to me.

@nikku
Copy link
Member

nikku commented Jan 22, 2025

Create element menu

From the replace menu, we don't allow toggling from there anymore, but encourage explicit changing from sub-process => ad-hoc sub-process, as we encourage from sub-process to event-sub-process or transaction (and vice versa).

@jarekdanielak
Copy link
Contributor

Do we want ad-hoc subprocess options in the replace/append menu for a general task or only for a subprocess? So similar to Transaction and Start event subprocess, you'd have to go through a regular subprocess to get to ad-hoc option.

I vote not to clutter the general replace menu too much and make it accessible after changing to a subprocess only.

So no this:

Image

@jarekdanielak
Copy link
Contributor

After a discussion with @barmac, these are all the ways to get to a ad-hoc subprocess.

Notice we don't offer an option to go directly from an expanded subprocess to a collapsed ad-hoc subprocess and vice versa. This is due to a implementation quirk in BpmnReplace that is capable of either replacing an element or toggling its collapse.

Image

@nikku
Copy link
Member

nikku commented Jan 23, 2025

Notice we don't offer an option to go directly from an expanded subprocess to a collapsed ad-hoc subprocess and vice versa.

I'd also argue that this is rarely, if ever your intend as a user. Why would the type change, but also the visibility of contents (at the same time)?

@barmac
Copy link
Collaborator Author

barmac commented Jan 23, 2025

Notice we don't offer an option to go directly from an expanded subprocess to a collapsed ad-hoc subprocess and vice versa.

I'd also argue that this is rarely, if ever your intend as a user. Why would the type change, but also the visibility of contents (at the same time)?

Totally. This was also why we decided against additional work to support this case.

jarekdanielak added a commit to bpmn-io/bpmn-js that referenced this issue Jan 23, 2025
@jarekdanielak
Copy link
Contributor

Fixed upstream in bpmn-js v18.2.0

@jarekdanielak jarekdanielak added the fixed upstream Requires integration of upstream change label Jan 24, 2025 — with bpmn-io-tasks
@philippfromme
Copy link
Contributor

Closed via #4810.

@bpmn-io-tasks bpmn-io-tasks bot removed the fixed upstream Requires integration of upstream change label Jan 27, 2025
@github-actions github-actions bot added this to the M85 milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request modeling ux
Projects
None yet
Development

No branches or pull requests

5 participants