This project is a BPMN Editor plugin for IntelliJ IDEA. It provides a custom editor for BPMN files with features such as Camunda BPMN Modeler UI, validation, and integration with the system clipboard.
- Custom BPMN file editor (Classic BPMN Modeler, Camunda 7 and Camunda 8)
- Integration with system clipboard
- For Camunda 7 added working with 'inline script' in external script editor
- Supported *.bpmn and *.bpmn20.xml files
- Color themes
- IntelliJ IDEA 2023.2.6 or later
- JDK 17 or later
To build the project, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/bpmn-editor-plugin.git cd bpmn-editor-plugin
-
Open the project in IntelliJ IDEA:
- Open IntelliJ IDEA.
- Select
File > Open...
and choose thebpmn-editor-plugin
directory.
-
Configure the JDK:
- Go to
File > Project Structure...
. - In the
Project
section, set theProject SDK
to JDK 17 or later.
- Go to
-
Build the project:
-
./gradlew clean build
-
To install the plugin from the IntelliJ IDEA Marketplace, follow this link: Camunda BPMN Editor
To install the plugin in IntelliJ IDEA, follow these steps:
-
Prepare the plugin .zip file:
-
./gradlew clean build buildPlugin
- This will generate a .zip file in the
build/distributions
directory.
-
-
Install the plugin in IntelliJ IDEA:
- Open IntelliJ IDEA.
- Go to
File > Settings...
(orIntelliJ IDEA > Preferences...
on macOS). - Select
Plugins
from the left-hand menu. - Click on the gear icon at the top right and select
Install Plugin from Disk...
. - Navigate to the
build/distributions
directory and select the generated .zip file. - Click
OK
and restart IntelliJ IDEA (if you need) when prompted.
Once the plugin is installed, you can use it to open and edit BPMN files:
-
Open a BPMN file:
- In IntelliJ IDEA, open a project that contains BPMN files.
- Double-click on a BPMN file to open it in the custom BPMN editor.
-
Configure the editor settings:
- Go to
File > Settings...
(orIntelliJ IDEA > Preferences...
on macOS). - Select
Tools > Camunda BPMN Editor Settings
from the left-hand menu. - Configure the color theme and other settings as desired.
- Go to
The Camunda BPMN Editor Plugin includes a linter to help you maintain high-quality BPMN diagrams. Here's how to set it up and use it:
-
Enable the linter:
- Go to
File > Settings...
(orIntelliJ IDEA > Preferences...
on macOS). - Navigate to
Tools > Camunda BPMN Editor Settings
. - Check the box to enable the linter.
- Go to
-
Configure linter rules:
- In your project root directory, create a file named
.bpmnlintrc
. - This file should contain your linter configuration in JSON format. For example:
{ "extends": [ "bpmnlint:recommended" ], "rules": { "label-required": "error", "no-implicit-split": "warn" } }
- In your project root directory, create a file named
-
Using custom linter plugins:
-
If you want to use custom linter plugins, you have two options:
a. Add the plugin source code to your project:
- Create a folder in your project named
bpmnlint-plugin-{custom_plugin_name}
. - Place the plugin source code in this folder.
b. Use npm to manage plugin dependencies:
- Add a
package.json
file to your project root. - Add the custom plugins as dependencies. For example:
{ "dependencies": { "bpmnlint-plugin-custom": "^1.0.0" } }
- Run
npm install
in your project root to install the plugins.
- Create a folder in your project named
-
-
Applying linter rules:
- The linter will automatically run when you open or modify a BPMN file.
- Linter warnings and errors will be displayed in the editor.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Oleksandr Havrysh 🇺🇦
If you find this project useful, you can support its development by making a donation via links: