I'm building a process where at some point I have an intermediate event to receive a message from another process.
This message may or may not take a long time to come. Is there any way to set a timeout on the intermediate receive message event so that if it doesn't get one in a specified period of time then it will just continue along anyway?
The only way I can think of is to set the token to be transient and have a separate parallel token which loops until the time runs out. Presumably this would have to be in a subprocess so that if the message does come along after the timeout it doesn't do something it should have done earlier. If the message doesn't get consumed it'll disappear after the life time runs out. Is there another more elegant way?
I'm building a process where at some point I have an intermediate event to receive a message from another process.
This message may or may not take a long time to come. Is there any way to set a timeout on the intermediate receive message event so that if it doesn't get one in a specified period of time then it will just continue along anyway?
The only way I can think of is to set the token to be transient and have a separate parallel token which loops until the time runs out. Presumably this would have to be in a subprocess so that if the message does come along after the timeout it doesn't do something it should have done earlier. If the message doesn't get consumed it'll disappear after the life time runs out. Is there another more elegant way?
Thanks,
Al