npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

camunda-codegen

v0.0.8

Published

This project generates java code based on BPMN models for the Camunda workflow engine.

Downloads

27

Readme

CodeGen

This project generates Java code for the Camunda workflow engine based on BPMN.

The project is a work in progress. The way the generator will work is going to change through time.

Status

Currently, the generator can generate:

  • Java code from User Tasks, Service Tasks and DTO's from their input and output.
  • PDFs that contain all User Tasks and Service Tasks, including their properties and incoming and outgoing flows.

Install

There are two ways of using the generation tool:

  1. Install camunda-codegen globally with npm install -g camunda-codegen and then use camunda-codegen in the commandline.
  2. Use NPX to use the generator without having to install it globally. npx camunda-codegen. NPX is installed together with NPM, by default!

In this README, we'll be using the NPX way.

Usage

To start the generator without arguments, simply run npx camunda-codegen in the terminal.

To input a BPMN model right away, use the bpmn argument like this, provided with a path to your BPMN model:

npx camunda-codegen --bpmn=./examplemodel.bpmn

The generator also supports absolute paths.

Arguments

This section contains all arguments that can be used when starting the program.

bpmn

Lets you input the path to a BPMN file. For example:

npx camunda-codegen --bpmn=./examplemodel.bpmn

cfg / config

Lets you input a custom config that will overwrite the default values. For example:

npx camunda-codegen --config=C:/codegenconfigs/javagenconfig.yml

hlp

Shows a help menu with all possible flags:

npx camunda-codegen --hlp

Configuration

The generator bases decisions on a default configuration YML file. This configuration can be overwritten by using the cfg or config argument. By default, it uses the following configuration:

java:
  generate: true
  package: com.codegen
  outputPath: ./generated/java

pdf:
  generate: true
  outputPath: ./generated/pdf

log: 
  console: info
  file: error
  outputPath: ./logs
  logFileName: codegen.log

Edit any options and use the cfg or config argument to overwrite the default configuration.

Logging levels

This project uses Winston. To change the default logging levels, create a config and choose one of the texts from the following levels.

NOTE: A logging level will also log all the levels that are lower than itself. For example, http will also show info, warn and error logs.

  error: 0,
  warn: 1, 
  info: 2, 
  http: 3,
  verbose: 4, 
  debug: 5, 
  silly: 6 

Future work

  • Generate Unit Tests for the generated code.
  • Extend Camunda Modeler input/output with types so typed DTO's can be generated.