Table of Contents
- Accelerator Architecture
- Creating Custom Accelerators
- Configuring Accelerator Profiles
- Customizing Project Structure
- Advanced Customization Examples
Accelerator Architecture
Accelerators in Aletyx Playground are Git-based templates that are applied to your business models (DMN, BPMN, etc.). Each Accelerator consists of:- A Git repository with template files
- Configuration metadata that defines how the Accelerator appears and behaves
- Destination mappings that determine where your existing assets are placed
Creating Custom Accelerators
Step 1: Fork the Base Accelerator Repository
Start by forking one of the existing Accelerator repositories:Step 2: Configure Your Branch Structure
Each Accelerator profile typically has its own branch. For example:main: General-purpose acceleratordmn: DMN-focused acceleratorbpmn: Process-focused accelerator
Step 3: Customize the Template Files
In your branch, you’ll find template files that define the project structure. Common files to customize include:pom.xml: Define dependencies and build configurationDockerfile: Container configurationapplication.properties: Application configuration.github/workflows/: CI/CD pipeline configurations
Configuring Accelerator Profiles
Accelerators are registered in Aletyx Playground through environment variables or configuration files. TheKIE_SANDBOX_ACCELERATORS environment variable accepts a JSON array of Accelerator profiles:
Configuration Parameters Explained
Customizing Project Structure
POM.XML Customization
Thepom.xml file is crucial as it defines all project dependencies. Here’s an example of a customized pom.xml for a DMN-focused project:
Application Properties
Theapplication.properties file configures your application’s runtime behavior:
Dockerfile
A custom Dockerfile for your Accelerator:GitHub Actions Workflow
Adding a CI/CD pipeline templates to your Accelerator is also a great way to improve the time to release! This can be done by creating a base template that could be stored in the.github folder like a standard GitHub action file. This provides ease of starting to provide the means to deploy.
Advanced Customization Examples
Adding Kafka Integration
To add Kafka messaging capabilities to your Accelerator, modify thepom.xml to include:
application.properties file that controls the connection to Kafka, an example of some of these integrations is included below: