Flowable event registry demo with RabbitMQ
RabbitMQ instalation with 3 queues defined:
- start-process
- receive-message
- send-message
- To start process - send message on start-process queue
Set properties: content_type : application/json
{
"id" : "randomId"
}
This action starts process. Next step is send and receive message task. Message is send to send-message queue automatically. Process stops and wait for message from RabbitMQ to continue.
- To continue process - send message on receive-message queue
Set properties: content_type : application/json
{
"id" : "randomId"
}
This action proceed process.
- Spring Boot
- H2 database
- Flowable
- Gradle
- spring-boot-starter-amqp
- flowable-jms-spring-executor
- flowable-spring-boot-starter-process
Inbound channel - ch-in-*.channel
Outbound channel - ch-out-*.channel
Inbound event - ev-in-*.event
Outbound event - ev-out-*.event
Start event - Start event registry event
- defined Event key
and Mapping from event payload
Activities - Send event task
- defined Event key
and Mapping to event payload
, to wait for response from message broker - set Set service task to be triggerable
and define Trigger event key
and Mapping from event payload