https://github.com/kmacedovarela/simple-jbpm-kafka-sample
A simple project that shows how to emit messages from a process to Kafka
https://github.com/kmacedovarela/simple-jbpm-kafka-sample
Last synced: about 1 month ago
JSON representation
A simple project that shows how to emit messages from a process to Kafka
- Host: GitHub
- URL: https://github.com/kmacedovarela/simple-jbpm-kafka-sample
- Owner: kmacedovarela
- Created: 2020-10-29T01:11:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T01:17:47.000Z (almost 5 years ago)
- Last Synced: 2025-03-20T07:06:19.536Z (7 months ago)
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Simple jBPM Kafka Integration Sample
=======================## Pre Reqs
- Project tested with jBPM 7.44 / Available on RHPAM 7.9+
- Project tested on JDK 11## Set up your environment:
1. To start the kafka environment, let's clone this repo:
`$ git clone https://github.com/hguerrero/amq-examples.git `
2. Enter the folder
`cd amq-examples/strimzi-all-in-one/`
3. Start Kafka
`docker-compose up`
4. In another tab, create the Kafka topic:
`docker-compose exec kafka bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic jbpm-task-events`
## Inside jBPM / RHPAM
1. Install the Kafka WIH in BC (Settings > Custom Tasks > KafkaPublishMessages)
2. Clone this project into business central
3. Deploy this project
4. Start a process instance## Tracking the kafka topic
You can use kafkacat to track the topic.
`$ kafkacat -b 127.0.0.1:9092 -t jbpm-task-events`
Example outputs when the messages are received
````
% Reached end of topic jbpm-task-events [0] at offset 0
Karina event for APAC
% Reached end of topic jbpm-task-events [0] at offset 1
````