Skip to content

FOUR-34380: Subprocess Inline to group task to reduce the visualizacion of BPMN-FE - #1970

Open
rodriquelca wants to merge 10 commits into
feature/FOUR-34328from
feature/FOUR-34380
Open

rodriquelca wants to merge 10 commits into
feature/FOUR-34328from
feature/FOUR-34380

Conversation

@rodriquelca

@rodriquelca rodriquelca commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Issue & Reproduction Steps

Implement bpmn:SubProcess as an embedded subprocess (not call activity): collapsed on the main canvas, internal flow edited via drill-down on the same paper.

From the toolbar, add Sub Process (processmaker-modeler-embedded-sub-process).
Enter via crown or the + on the shape; model Start → tasks → End inside.
Use Back to process to return to the main view; save and reopen the diagram.
Expected behavior:
Main canvas shows only the collapsed subprocess and main-level flows. Inside drill-down, only subprocess children are shown and editable. BPMN XML: model children under bpmn:SubProcess; DI as two diagrams (main process + subprocess plane per BPMN 2.0 §12).

Actual behavior (before):
Call activity covered “sub process”; no true embedded subprocess, no drill-down, or inconsistent DI/UX (duplicates, ghost selection, bad flow targets).

Solution

  • Node type processmaker-modeler-embedded-sub-process, drill-down (enterSubProcess / exitSubProcess), toolbar Back to process.
  • Children in subProcessContainer / flowElements of the subprocess; DI in a second BPMNDiagram.
  • Visibility, selection, connections, crown, and parse/export aligned with subprocess context.
image image

How to Test

  1. Add embedded subprocess; drill down; complete an internal flow; return to the main process.
  2. Reopen saved BPMN: main view collapsed; internal content only after entering the subprocess.
  3. Select and connect inside the subprocess—only internal elements.
  4. Export: subprocess children in MODEL under subProcess; two BPMNDiagram in DI.
  5. npx jest tests/unit/embeddedSubProcessDiagram.spec.js

Related Tickets & Packages

PR's Related

ProcessMaker/processmaker#9160

ci:processmaker:feature/FOUR-34328

@pmPaulis
pmPaulis requested a review from caleeli November 13, 2026 18:16
@pmPaulis pmPaulis changed the title FOUR-34380: Subprocess Inline to group task to reduce the visualizacion of BPMN - FE FOUR-34380: Subprocess Inline to group task to reduce the visualizacion of BPMN-FE Nov 13, 2026
@pmPaulis

Copy link
Copy Markdown
Contributor

@rodriquelca please review the Sonar observations

@decisions-sonarqube

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
19 New issues
C Reliability Rating on New Code (required ≥ A)
18 New Maintainability Issues (required ≤ 0)
1 New Reliability Issues (required ≤ 0)

See analysis details on SonarQube

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants