{"id":16177876,"url":"https://github.com/hifly81/jbpm-spring-boot","last_synced_at":"2025-10-24T09:30:35.095Z","repository":{"id":45530850,"uuid":"169071421","full_name":"hifly81/jbpm-spring-boot","owner":"hifly81","description":"Example of a jbpm service with spring boot. It runs on OpenShift and it has prometheus metrics and a grafana dashboard","archived":true,"fork":false,"pushed_at":"2022-11-16T09:27:21.000Z","size":482,"stargazers_count":19,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-27T20:53:08.036Z","etag":null,"topics":["bpm","bpmn","bpmn-process","grafana","jbpm","jbpm-process","kie-server","metrics","openshift","prometheus","prometheus-metrics","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hifly81.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-04T11:54:55.000Z","updated_at":"2024-07-14T15:46:50.000Z","dependencies_parsed_at":"2023-01-21T18:54:46.368Z","dependency_job_id":null,"html_url":"https://github.com/hifly81/jbpm-spring-boot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hifly81%2Fjbpm-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hifly81%2Fjbpm-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hifly81%2Fjbpm-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hifly81%2Fjbpm-spring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hifly81","download_url":"https://codeload.github.com/hifly81/jbpm-spring-boot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237944082,"owners_count":19391588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bpm","bpmn","bpmn-process","grafana","jbpm","jbpm-process","kie-server","metrics","openshift","prometheus","prometheus-metrics","spring-boot"],"created_at":"2024-10-10T05:10:59.647Z","updated_at":"2025-10-24T09:30:34.681Z","avatar_url":"https://github.com/hifly81.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"jbpm-spring-boot example\n=============================\n\nExample of a jbpm service with spring boot.\u003cbr\u003e\nThe project is composed by a kjar, representing a sample new-hire BPMN process and by a kie-server running on spring boot.\u003cbr\u003e\n\nThis is an image showing the BPMN process:\n![ScreenShot 1](images/newhire.png)\n\n## OpenShift Environment installation\n\n### Prerequisites\n\nYou need an OpenShift cluster version 3.11 to run the application.\u003cbr\u003e\nYou can also use minishift or oc cluster.\n\nYou need the OpenShift CLI (oc command) on your machine in order to use the launch.sh script.\n\nYou need Docker on your machine to build the images.\n\n### Openshift installation\n\nDeployment on OpenShift has been perfomed using the maven fabric8 plugin; openshift resources are into folder: *src/main/fabric8*:\n\nImage Build:\n\n```bash\nmvn fabric8:build -Dfabric8.namespace=${build_environment}\n```\n\nGenerate \u0026 Apply DeploymentConfig:\n\n```bash\nmvn 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\n```\n\nDeploy to OpenShift:\n\n```bash\noc rollout latest dc/${deploy_config} -n ${deploy_environment}\n```\n\n\n## Local Environment installation\n\n### Prerequisites (if you want monitoring via business central)\n\nYou need an existing PAM business central listening at localhost:8080 (for monitoring the kie server).\u003cbr\u003e\nYou need to define these two properties for the business central in order to monitor the kie-server:\n```bash\n\u003cproperty name=\"org.kie.server.user\" value=\"user\"/\u003e\n\u003cproperty name=\"org.kie.server.pwd\" value=\"user\"/\u003e\n```\n\n### Install the kjar in your .m2 repo\n\n```bash\n  cd new-hire-kjar\n  mvn clean install\n```\n\n### Define the kie server properties\n\nThe list of kie containers (groupId, artifactId version) to deploy at startup must be defined inside the new-hire-service.xml file.\u003cbr\u003e\nThe kjars must exists inside your local .m2 maven repository.\n\nSeveral application.properties are defined, each one with a specific database configuration:\n - h2 (default)\n - mysql\n - postgres\n - oracle\n\nYou can configure the user/password to connect with the controller (Business Central) through the following system properties inside the new-hire-service.xml file:\n\n```bash\n org.kie.server.controller.user=\u003cuser\u003e\n org.kie.server.controller.pwd=\u003cpassword\u003e\n```\n\n### Custom Rest endpoint\n\nA custom rest endpoint, registered under path /rest/pam is available and it adds additional APIs to the kie server.\n\n### Run a kie-server and deploy a kjar\n\n```bash\n  cd new-hire-service\n  mvn clean install \u0026\u0026 mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=h2 -Ph2\n```\n\n### Run a kie-server and deploy a kjar with mysql dbms\n\n```bash\n  cd new-hire-service\n  mvn clean install \u0026\u0026 mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=mysql -Pmysql\n```\n\n### Run a kie-server and deploy a kjar with postgres dbms\n\n```bash\n  cd new-hire-service\n  mvn clean install \u0026\u0026 mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=postgres -Ppostgres\n```\n\n### Run a kie-server and deploy a kjar with oracle dbms\n\n```bash\n  cd new-hire-service\n  mvn clean install \u0026\u0026 mvn spring-boot:run -Dspring-boot.run.fork=false -Dorg.kie.server.startup.strategy=LocalContainersStartupStrategy -Dspring.profiles.active=oracle -Poracle\n```\n\n### Prometheus metrics\n\nProcess instances and human tasks basic metrics are exposed using prometheus; they are available at url:\u003cbr\u003e\nhttp://localhost:8090/rest/metrics\n\n### Swagger\n\nSwagger is available at:\nhttp://localhost:8090/rest/api-docs\n\nload the json definition:\nhttp://localhost:8090/rest/api-docs?url=http://localhost:8090/rest/swagger.json\n\n### Postman collection\n\nA postman collection named postman.json for testing the API is available inside postman directory.\n\n```bash\ncd new-hire-service/postman\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhifly81%2Fjbpm-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhifly81%2Fjbpm-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhifly81%2Fjbpm-spring-boot/lists"}