Could how phase2 "rule-processing" works be explained a bit more?

Does each loop iteration reevaluate every rule that is in phase2 regardless of if it evaluated to false on a previous iteration?

What terminates the phase2 loop, is it when there is an iteration where all rules evaluate to false?

If a phase2 mediator returns false does it still stop all processing - so no more phase2 and no out-phase?

   ...ant

On 10/27/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
Hi all;
 
Two Infravio guys came from India (Sathish , Vikas) and Axis2 guys had a discussion whole today and finally we came up with the following Architecture.
 
 
 
The synapse execution is done in three phases,
  1. In-phase
  2. Rule-processing
  3. Out-phase
 
In In-phase for the mediators does not have pre-condition so they can run as a sequence , after finishing that
There can be rules that run in a loop and the loop will end depending on the mediator status or the rule pre-condition , finally the out-phase will be invoked and they can be also run in sequence  without considering pre-condition.
 
Then the above picture can be described as follows;
  step 1 : Synapse Engine get a message , then that will ask Rule Processor to calculate rule for that particular message , it will calculate in-phase mediators and give that to SynaseEngine.
  step 2 : Then it will invoked those Rules (the graphical representation of rule is as picture below) , after finishing that chain , looping will start
  step 3 : here the a rule will be invoked and evaluate the condition and will decide to continue or stop , after finishing the loop , we assume that RuleProcessor will be calculated the out-phase rules and
 step 4 : Will be called those rules
 step 5 : finally the message will be drop into the bus (if there is any)
 
 
 
 
 
 
And this picture almost based on Paul's picture , since it can be problem if we are going  to use separate transports for Synapse (code duplication etc) , and we hope to discuss more on this in the IRC
 
 
comments ....
 

Thanks,
 Deepal
................................................................
~Future is Open~

Reply via email to