camunda-modeler icon indicating copy to clipboard operation
camunda-modeler copied to clipboard

Simplify appending expanded sub-processes

Open nikku opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe.

When building a BPMN diagram, sometimes during the design phase I'd like to append an expanded sub-process directly from the current element. I'd even argue that, in the automation context, this is the more prominent action than appending a collapsed sub-process.

Right now though, this interaction is poorly supported. I.e. it takes an incredible amount of effort to get this done, even on an empty canvas:

capture QwPa8Y_optimized

Describe the solution you'd like

It should be easy to append an expanded sub-process right from the currently selected flow element.

  • Update the append menu to allow appending an expanded sub-process or
  • Update the replace menu to allow replacing a task to an expanded sub-process

Describe alternatives you've considered

As mentioned above, there is a few options.

Additional context

This is related to https://github.com/camunda/camunda-modeler/issues/1244, i.e. the fact that replacing a task with a sub-process (after it has been placed) results in unnecessary noise on the diagram. :arrow_right: It may be better to support appending the sub-process right away.

nikku avatar Nov 06 '20 10:11 nikku

I've investigated this issue and there is one major roadblock making this a bit more effort to implement. The Modeling#appendShape API doesn't support multiple elements at the moment the way the Create feature does. Thus, appending a subprocess with a start event isn't as easy as adding the respective context pad entry.

philippfromme avatar Apr 15 '21 07:04 philippfromme

I would really love this feature. Currently, there isn't even an option to expand a collapsed sub-process for C8 models. So I have to delete the element and drag it in from the side. Screen Shot 2022-05-16 at 17 06 18Screen Shot 2022-05-16 at 17 07 07

korthout avatar May 16 '22 15:05 korthout

Will be solved via create/append anything:

capture qpon4Z_optimized

nikku avatar May 16 '22 17:05 nikku

Fully supported with create/append anything in bpmn-js@13+:

capture byijla_optimized

nikku avatar Dec 07 '23 14:12 nikku