This project provides an intuitive tool for translating Activity Relationship Matrices (as introduced by Andree et al., SoSyM 2024) into BPMN models (Montali, Springer)and ConDec language models (Montali, Springer).
git clone https://github.com/INSM-TUM-Teaching/arm-to-bpmn-and-declare.git
cd arm-to-bpmn-and-declare
npm run setup
or manually:
npm install --legacy-peer-deps
If you encounter errors like the following during the installation or startup:
- "Error: Cannot find module 'cors'"
Run the following command to install the missing module:
npm install cors --legacy-peer-deps
- "Error: Cannot find module 'express'"
Run the following command to install the missing module:
npm install express --legacy-peer-deps
- "Error: Cannot find module 'cookie'" or "Failed to resolve entry for package 'cookie'"
Run the following command to install the missing module:
npm install cookie --legacy-peer-deps
Important Note: Due to peer dependency conflicts in this project, it's recommended to use the --legacy-peer-deps
flag for all npm install commands:
npm install <module-name> --legacy-peer-deps
If you encounter build issues with Vite, try clearing the cache:
# On Unix/Mac
rm -rf node_modules/.vite
# On Windows (PowerShell)
Remove-Item -Recurse -Force node_modules\.vite -ErrorAction SilentlyContinue
Terminal 1 - Backend Server:
cd arm-to-bpmn-and-declare
npm run start:backend
Terminal 2 - Frontend Server:
cd arm-to-bpmn-and-declare
npm run start:frontend
Terminal 1 - Backend Server:
cd arm-to-bpmn-and-declare
node server.cjs
The backend server will run at http://localhost:5174
Terminal 2 - Frontend Server:
cd arm-to-bpmn-and-declare
npm run dev
The frontend server will run at http://localhost:5173 (or http://localhost:5174 if 5173 is occupied)
Open your browser at the displayed URL (typically http://localhost:5173 or http://localhost:5174)
If you encounter port conflicts, Vite will automatically try alternative ports. Check the terminal output for the actual URL.
If you see errors like "Cannot find module", ensure you have installed all dependencies:
npm install --legacy-peer-deps
Clear the Vite cache and restart:
# Unix/Mac
rm -rf node_modules/.vite
npm run dev
# Windows (PowerShell)
Remove-Item -Recurse -Force node_modules\.vite -ErrorAction SilentlyContinue
npm run dev
On Windows, run PowerShell as Administrator if you encounter permission errors.
Ensure you're using Node.js v18 or later:
node --version
- Upload ARM Matrix: Upload a JSON file representing an Activity Relationship Matrix (Andree et al., 2024). Example format:
{
"a": { "b": ["<", "⇒"] }
}
Your ARM will be automatically validated. If the uploaded ARM is validated, you'll be routed to choose either BPMN or ConDec language model to translate to.
- Your ARM will be automatically translated and rendered as a graph according to the model you selected.
- Use the buttons at the top of the graph to export your model: BPMN model - BPMN xml, SVG, or png ConDec language model - JSON, or png
- Your model will be automatically rendered as a graph using the syntax of the target process model you select.
- Use the buttons at the top of the graph to export your model: BPMN model - BPMN xml, SVG, or png ConDec language model - JSON, or png
3. Validation of ARM files according to logical and syntactic rules (e.g., temporal/existential relationships, reversibility, valid entries)
6. Export options for BPMN model: Download models as structured BPMN XML , SVG, and high-quality PNG images
7. Log Analysis Outputs in BPMN: Provides detailed log analysis outputs in the BPMN part to help users better understand the translation results before visualization.
8. Export options for ConDec language model: Download models as structured JSON and high-quality PNG images
9. Constraints Translation Results in Declare: Displays the constraints translation results in the Declare part, offering users clear insight into how ARM relations are translated into Declare constraints before visualizing the model.
10. Edit Activities/Constraints in Declare Model: Users can interactively add, delete, and modify activities and constraints within the Declare model.
-
Andree et al.: "A Closer Look at Activity Relationships to Improve Business Process Redesign." SoSyM 2024. https://doi.org/10.1007/s10270-024-01234-5
-
Weske: "Business Process Management: Concepts, Languages, Architectures." Springer: https://link.springer.com/book/10.1007/978-3662-69518-0
-
Montali: "The ConDec Language." In Declarative Process Mining, Springer, 2010. https://doi.org/10.1007/978-3-642-14538-4_3