Code Monkey home page Code Monkey logo

bpmn-model-generators's Introduction

BPMN CLI tools

This repository contains the source code for three CLI tools:

  1. BPMNBlockModelGenerator: Generate a BPMN model with a varying number of predefined blocks (see details below).
  2. BPMNParallelBranchModelGenerator Generate a BPMN model with x parallel branches of length y (see details below).
  3. BPMNStatPrinter Print statistics for all BPMN models in a given folder (see details below).

All CLI tools use the Camunda BPMN model library to do the heavy lifting. The CLI tools are prebuilt and contained in ./prebuilt-tools. You can check their arguments using the help command:

java -jar ./prebuilt-tools/BPMNParallelBranchModelGenerator.jar --help

The tools are prebuilt and tested with Java 20 (OpenJDK 20.0.2.1 2023-08-22).

BPMNBlockModelGenerator

The CLI tool generates BPMN models from one up to a given number of blocks. There are three predefined blocks:

Blocks

After the first three blocks the tool will repeat the blocks in the same order until it reaches the given number of blocks. The following is an example of a BPMN model with three blocks:

BPMN model with three blocks

Arguments (generated by --help):

Usage: bpmnblock-model-generator-args [<options>]

  This is a command-line tool for generating BPMN models with an increasing number of three predefined blocks.

Options:
  -b, -number-of-blocks=<int>  Number of blocks (default=3)
  -p, -path=<text>             Path for the generated BPMN models (required)
  -h, --help                   Show this message and exit

BPMNParallelBranchModelGenerator

The CLI tool generates BPMN models using the following schema:

Schema describing the generation

Arguments (generated by --help)

Usage: bpmnparallel-model-generator-args [<options>]

  This is a command-line tool for generating BPMN models with parallel branches up to the defined number and the defined length.

Options:
  -b, -number-of-branches=<int>  Number of parallel branches (default=3)
  -l, -length-of-branches=<int>  Length of parallel branches (default=3)
  -p, -path=<text>               Path for the generated BPMN models (required)
  -h, --help                     Show this message and exit

BPMNStatPrinter

The CLI tool prints the file name, number of gateways, number of flow nodes, number of sequence flows, and number of flow elements to the console in CSV format.

Arguments (generated by --help)

Usage: stat-printer-args [<options>]

  This is a command-line tool for printing statistics about BPMN models.

Options:
  -p, -path=<text>  Path where the BPMN models are located (required)
  -h, --help        Show this message and exit

bpmn-model-generators's People

Contributors

timkraeuter avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.