Verification¶
Once you have implemented both the frontend and backend parts, follow these steps to verify your new diagram type.
1. Frontend Verification¶
Start the web application:
npm run dev
Open the editor in your browser.
Create a new project and select “MyNewDiagram” as the type.
Verify that the Palette shows your new element(s).
Drag an element onto the Canvas.
Ensure it renders correctly and you can move/resize it.
2. Backend Verification¶
Ensure the BESSER backend server is running:
python besser/utilities/web_modeling_editor/backend/backend.pyThe default port is
9000(http://localhost:9000/besser_api).In the editor, trigger a Generate action (or a custom button associated with your diagram).
Verify that the backend receives the JSON payload.
Check the backend logs to confirm that your
process_my_new_diagramfunction is called.Verify that the output (code or model) is generated correctly.
3. Run Automated Checks¶
Before opening a pull request, run the full automated check suite:
npm run lint
npm run test
npm run build
This verifies linting, unit tests, and production build all pass with your changes.
Note
The standalone Node/Express server (npm run start:server) serves built webapp assets and a small set of /api
routes, but code generation and validation still rely on the BESSER backend.