So we are looking at Mediator interface like,
public int mediate(MessgeContext msgCtx) ;
+1 for "int" approach. So, this way, if we can achieve extensibility in future.
Saminda
On 10/21/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
Hi paul;+1 for that approach, return an int instead a boolean
Thanks,
Deepal
................................................................
~Future is Open~----- Original Message -----From: Paul FremantleSent: Thursday, October 20, 2005 7:50 PMSubject: Re: Rule Engine / DispatcherAnt,
I was thinking that it would be up to the Engine whether to spawn a new thread or not. But I guess the point is if its a call rather than a return, that would be complex. On the other hand, I guess we could simply change the response from a boolean to an int
e.g.
public static final int CONTINUE=0, END=1, RESTART=2; etc
That way the engine can decide whether to use a new thread or continue on the existing one. However, we shouldn't make assumptions about which thread a mediation is run on.
Paul
