Thanks a lot for your help but I prefer to avoid Java as I never have used it. I will try to find another way.
Some people mentioned on the forum two other solutions : use 2 work flow and use the custom states.
But I don’t know how to create 2 successive workflows in Bubble and I didn’t manage to succeed with the custom states. I will dig into those ideas. Hope that it can work.
Thanks again!