All Projects → hifly81 → jbpm-spring-boot

hifly81 / jbpm-spring-boot

Licence: other
Sample of a jbpm service with spring boot. It runs on OpenShift and it has prometheus metrics and a grafana dashboard

Programming Languages

java
68154 projects - #9 most used programming language
vba
158 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to jbpm-spring-boot

bamboo-prometheus-exporter
Prometheus Exporter For Bamboo
Stars: ✭ 18 (+12.5%)
Mutual labels:  grafana, prometheus-metrics
bobbycar
IoT Transportation demo using Red Hat OpenShift and Middleware technologies
Stars: ✭ 33 (+106.25%)
Mutual labels:  openshift, grafana
activiti-examples
Alfresco Process Services powered by Activiti Examples.
Stars: ✭ 58 (+262.5%)
Mutual labels:  bpmn, bpm
grafana-operator
An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
Stars: ✭ 449 (+2706.25%)
Mutual labels:  openshift, grafana
camunda-prometheus-process-engine-plugin
Monitor your KPIs!!! Camunda BPM Process Engine Plugin providing Prometheus Monitoring, Metric classes for various BPMN use, Grafana Annotations, and HTTPServer data export: Used to generate Prometheus metrics anywhere in the Engine, including BPMN, CMN, and DMN engines and instances.
Stars: ✭ 48 (+200%)
Mutual labels:  grafana, bpm
docker-openshift-grafana
Grafana Docker Image for use with Red Hat OpenShift
Stars: ✭ 22 (+37.5%)
Mutual labels:  openshift, grafana
plg
A Business Processes and Logs Generator
Stars: ✭ 30 (+87.5%)
Mutual labels:  bpmn, bpm
Camunda Bpm Platform
Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Spring, Spring Boot, CDI.
Stars: ✭ 2,390 (+14837.5%)
Mutual labels:  bpmn, bpm
grafana-weathermap-panel
plugin weathermap for Grafana. This project is still in development.
Stars: ✭ 27 (+68.75%)
Mutual labels:  grafana, prometheus-metrics
workflower-bundle
A Symfony bundle for Workflower
Stars: ✭ 23 (+43.75%)
Mutual labels:  bpmn, bpm
prom-bitbucket-exporter
Prometheus Exporter for Bitbucket
Stars: ✭ 47 (+193.75%)
Mutual labels:  grafana, prometheus-metrics
bonita-engine
Deploy, execute, manage process-based applications made with Bonita studio or through Engine APIs
Stars: ✭ 123 (+668.75%)
Mutual labels:  bpmn, bpm
macropower-analytics-panel
It's like Google Analytics, but for Grafana dashboards!
Stars: ✭ 16 (+0%)
Mutual labels:  grafana, prometheus-metrics
awesome-camunda
a curated list of awesome Camunda BPM projects, libraries, tools, documentations, forum posts, etc.
Stars: ✭ 93 (+481.25%)
Mutual labels:  bpmn, bpm
Kogito Runtimes
Kogito Runtimes - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
Stars: ✭ 188 (+1075%)
Mutual labels:  bpmn, bpm
businessautomation-cop
All examples related to business automation processes such as jbpm, drools, dmn, optaplanner, cloud native kogito(quarkus), quickstart, pipelines, runtimes, etc.
Stars: ✭ 50 (+212.5%)
Mutual labels:  jbpm, jbpm-process
Jbpm
a Business Process Management (BPM) Suite
Stars: ✭ 1,226 (+7562.5%)
Mutual labels:  bpmn, bpm
Kogito Examples
Kogito examples - Kogito is a cloud-native business automation technology for building cloud-ready business applications.
Stars: ✭ 96 (+500%)
Mutual labels:  bpmn, bpm
micronaut-camunda-bpm
Integration between Micronaut and Camunda (Workflow Engine). We configure Camunda with sensible defaults, so that you can get started with minimum configuration: simply add a dependency in your Micronaut project to embed the workflow engine!
Stars: ✭ 73 (+356.25%)
Mutual labels:  bpmn, bpm
policy-reporter
Monitoring and Observability Tool for the PolicyReport CRD with an optional UI.
Stars: ✭ 140 (+775%)
Mutual labels:  grafana, prometheus-metrics

jbpm-spring-boot example

Example of a jbpm service with spring boot.
The project is composed by a kjar, representing a sample new-hire BPMN process and by a kie-server running on spring boot.

This is an image showing the BPMN process: ScreenShot 1

OpenShift Environment installation

Prerequisites

You need an OpenShift cluster version 3.11 to run the application.
You can also use minishift or oc cluster.

You need the OpenShift CLI (oc command) on your machine in order to use the launch.sh script.

You need Docker on your machine to build the images.

Openshift installation

Deployment on OpenShift has been perfomed using the maven fabric8 plugin; openshift resources are into folder: src/main/fabric8:

Image Build:

mvn fabric8:build -Dfabric8.namespace=${build_environment}

Generate & Apply DeploymentConfig:

mvn fabric8:resource fabric8:resource-apply -Dfabric8.openshift.enableAutomaticTrigger=false -Dfabric8.openshift.imageChangeTrigger=false -Dfabric8.namespace=${deploy_environment} -Dfabric8.generator.name=docker-registry.default.svc:5000/${build_environment}/${service_name}:1.0.0

Deploy to OpenShift:

oc rollout latest dc/${deploy_config} -n ${deploy_environment}

Local Environment installation

Prerequisites (if you want monitoring via business central)

You need an existing PAM business central listening at localhost:8080 (for monitoring the kie server).
You need to define these two properties for the business central in order to monitor the kie-server:

<property name="org.kie.server.user" value="user"/>
<property name="org.kie.server.pwd" value="user"/>

Install the kjar in your .m2 repo

  cd new-hire-kjar
  mvn clean install

Define the kie server properties

The list of kie containers (groupId, artifactId version) to deploy at startup must be defined inside the new-hire-service.xml file.
The kjars must exists inside your local .m2 maven repository.

Several application.properties are defined, each one with a specific database configuration:

  • h2 (default)
  • mysql
  • postgres
  • oracle

You can configure the user/password to connect with the controller (Business Central) through the following system properties inside the new-hire-service.xml file:

 org.kie.server.controller.user=<user>
 org.kie.server.controller.pwd=<password>

Custom Rest endpoint

A custom rest endpoint, registered under path /rest/pam is available and it adds additional APIs to the kie server.

Run a kie-server and deploy a kjar

  cd new-hire-service
  mvn clean install && mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=h2 -Ph2

Run a kie-server and deploy a kjar with mysql dbms

  cd new-hire-service
  mvn clean install && mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=mysql -Pmysql

Run a kie-server and deploy a kjar with postgres dbms

  cd new-hire-service
  mvn clean install && mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=postgres -Ppostgres

Run a kie-server and deploy a kjar with oracle dbms

  cd new-hire-service
  mvn clean install && mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=oracle -Poracle

Prometheus metrics

Process instances and human tasks basic metrics are exposed using prometheus; they are available at url:
http://localhost:8090/rest/metrics

Swagger

Swagger is available at: http://localhost:8090/rest/api-docs

load the json definition: http://localhost:8090/rest/api-docs?url=http://localhost:8090/rest/swagger.json

Postman collection

A postman collection named postman.json for testing the API is available inside postman directory.

cd new-hire-service/postman
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].