JBoss Community

Re: waitTillDone

created by Maciej Swiderski in jBPM - View the full discussion

waitTillDone is usually used in unit testing to wait for response from task server as the communication is done asynchronously so it makes sense to wait for it until proceeding with next steps of the test. It production environment it should not be used as it completely breaks the concept of asynchronous integration making it synchronous.

 

Replacing it with that looks introduces risk of infinite loop in case something goes wrong that's why waitTillDon accept argument of how long it should wait for the response.

 

HTH

Reply to this message by going to Community

Start a new discussion in jBPM at Community