Skip to content

Bugfix/FOUR-25060: When we create a PMBlock from a process with alternatives A and B, the pmblock is created only with alternative B - #8652

Closed
CarliPinell wants to merge 2 commits into
developfrom
bugfix/FOUR-25060
Closed

Bugfix/FOUR-25060: When we create a PMBlock from a process with alternatives A and B, the pmblock is created only with alternative B#8652
CarliPinell wants to merge 2 commits into
developfrom
bugfix/FOUR-25060

Conversation

@CarliPinell

@CarliPinell CarliPinell commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Solution

When process is created with Alternatives A and B, from now on when PM Block is created from Modeler with option "Save as PM Block", depending on whether we are on the Alternative A or B tab, the PM block is generated with the process of each alternative.

How to Test

  1. Log in
  2. Go to Designer
  3. Click on Process
  4. Create a new process
  5. Create a alternative A and B
  6. Save process. with Alternative A / B
  7. Create a Pmblcok with that process
  8. Open the Pmblock

Related Ticket

https://processmaker.atlassian.net/browse/FOUR-25060

ci:package-pm-blocks:bugfix/FOUR-25060
ci:deploy

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

@eiresendez eiresendez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge. The PR now sends the selected AB alternative from the modal and the controller fetches the matching BPMN version (defaulting to A), so PM blocks won’t default to alternative B anymore.

@sanjacornelius
sanjacornelius requested review from PaolaPellegrini and removed request for mcraeteisha and sanjacornelius December 16, 2025 19:55
@vladyrichter

Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-4c571dd418.engk8s.processmaker.net

1 similar comment
@vladyrichter

Copy link
Copy Markdown

QA server K8S was successfully deployed https://ci-4c571dd418.engk8s.processmaker.net

@processmaker-sonarqube

Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@sanjacornelius

Copy link
Copy Markdown
Contributor

Closing PR no longer needed based on this ticket comment

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.

4 participants