I have a simple process with a a receive task. ( I am ok with any other task type).
I want the receive task to move forward only if an event is received with event type CUSTOM and message="Move Forward"
How do I create a listener for this scenario and how do I throw event using Java API along with message variable.
Have you tried in the way that it is described in the documentation? -> Activiti User Guide ?
Hi, Sude Bhat
You can use the event listeners to and set a custom variable value i.e. message="Move Forward" as and check the forward if value is same then do what you want,
Refer this documentation , How to create Activiti Event Listener with Spring Boot Example - JavaSampleApproach
Thanks,
Kalpesh,
Hi Mauricio -
I have been scratching my head on this. I have read all of these. Nowhere I see an event ExecutionListener that says "oh the message I got is not the one I care about so I will not the wait task to move forward". How can an ExecutionListener prevent a task from moving forward depending what message variable it receives?
Hi Kalpesh -
But in this case, the right approach would be to use ExecutionListner right? I read ActivitiEventListener can be only defined at the process level.
I am at "Receive Task" and I want Receive Task to only move forward if I get message="Move Forward". So I have to put the logic in Receive Task right?
Thank you
Yes.
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.