The BPMN Parser Project is a Java-based tool designed to parse BPMN (Business Process Model and Notation) files, perform various operations such as counting BPMN elements, adding random activity times to tasks, and calculating the cycle time.
- Count BPMN Elements: The project provides functionality to count all BPMN elements within a BPMN file, including start events, end events, tasks, and gateways.
- Add Activity Time: It allows users to add random activity times to user tasks or tasks in a BPMN file, enhancing the realism of process simulations.
- Calculate Cycle Time: The project can calculate the cycle time of a process based on the durations of tasks and the maximum time among outgoing flows from parallel gateways.
To use the BPMN Parser, follow these steps:
- Clone the repository to your local machine.
- Navigate to the
src
directory. - Compile and run the
Parser.java
file. - When prompted, enter the name of the BPMN file located in the
resource
folder.
- Import BPMN Files: Download your BPMN files (created in BPMN.io) and place them in the
resource
folder. - Run the Program: Execute
Parser.java
and enter the filename (with extension) when prompted. - View Results: The program will create a new file with the prefix "updated_" in the
resource
folder, containing the BPMN file with added activity times. - Analyzing Results: The program counts all BPMN elements within a file. It also calculates cycle time by giving random duration to tasks.
Contributions to the BPMN Parser are welcome. Please follow the contribution guidelines and open a pull request for any proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.