cancel
Showing results for 
Search instead for 
Did you mean: 

Trouble with Execution Listeners

vnama
Champ in-the-making
Champ in-the-making
Hello everyone!

I have define a process where the sequence flow between two service tasks has an execution listener. What I am looking to do is have the process wait for an external event to continue the process. I put an infinite loop within the notify method of my execution listener class. When I deployed this to the explorer, it blocked the entire explorer application. Nothing crashed, but I wasn't able to navigate the application. I wanted to block the process from continuing, but it seems the engine is also being stalled. Is this a misimplementation on my execution class, or the engine?

Also, I'd prefer to not to use a receive task to stall the process, I'm really looking to use some sort of listener that will halt the process and listen for an external event.

Thank you so much for any guidance in this issue!
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Well, the receive task really suites your requirements, so why not use it?

Best regards,

vnama
Champ in-the-making
Champ in-the-making
My trouble is that signalling the receive task. It looks like I need the execution ID. How can I create an external application that has a button that signals to the receive task in the process in the activiti-explorer. My initial thoughts were to use the Activiti-rest, but it doesn't support execution id. Thank you for any input!