Event listeners

Hello Team,
Hope you are doing well. I want to know, if there is a way to execute workflow by some event. I have a scenario where we send a email and if the user click on the email and approves the workflow then after the workflow should execute.

So please suggest referenced document and any example if we have in java.
Thanks in advance!!

@manish yes you can write your own domain specific events to Zeebe Commands translator by using the Spring Boot Zeebe Integration or the Zeebe Java client. With the client you can call any operation on workflows that you need, such as cancel or start new workflows. For example here I am receiving a POST request and starting a workflow instances based on that: https://github.com/salaboy/fmtok8s-c4p/blob/master/src/main/java/com/salaboy/conferences/c4p/C4PController.java#L63

Thank you @salaboy for your quick response. I have implemented a demo based on your suggestion and its working. Thank you for your support every-time.

1 Like

@manish I am happy to hear that it is working for you… keep us posted if you find any issues or you have feature requests.

1 Like