FOUR-12003: Modeler now detects if process was generated by AI by TinCodes · Pull Request #1731 · ProcessMaker/modeler

Issue & Reproduction Steps

The new features for AI Unified Generation need a way to detect if a process was made by AI so that it may suggest to create assets for the new process on Modeler.

Solution

  • Introduced a query string to communicate if the process was generated by the AI Generation tool.
  • Used window.ProcessMaker.modeler global variable to reach the Modeler project and have easy access to the check.

Related Tickets & Packages

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.