vert-x3 / vertx-examples

Vert.x examples
Apache License 2.0
3.55k stars 2.09k forks source link

added jbpm-vertx #428

Open prasanthatl opened 3 years ago

prasanthatl commented 3 years ago

Adding a new example project showcasing the use of jbpm and vertx.

vietj commented 3 years ago

@prasanthatl thanks for the contribution, I don't understand the purpose of this example because the only thing that the verticle does is to create a process. I don't see how a verticle could interact more closely with a process, like reacting on a state change and perform a vertx action. Can you elaborate ?

cvillami commented 3 years ago

For example, we tried to integrate Camunda with vert.x, it was not bad at all, but on some occasions I saw that micro-locks occurred in the event bus. According to the tests that I carried out, it seems that those locks were when it required information from the database, for example, you could do a load test and the micro lock only occurred on the first request of the test.

prasanthatl commented 3 years ago

I have modified the example to include vertx features as well. Sender verticle will publish a message to event bus. A Jbpm verticle will receive that message and start a process by passing the message as one of the parameter to the process. The jbpm process will accept the parameter and use it in one of the steps (prints it from a process).