>
> It's "ref > field-ref > variable-ref", "default-ref" is used when no
> ref is present and that field-ref nor variable-ref points to something
> useful.
> "else-ref" contains a sequence of participant that are used in case of
> failure of communication with ref/field-ref/variable-ref. As soon as a
> participant in else-ref gets the workitem (dispatch successful), the
> participant expression is considered as 'applied'.
>


It means that the choice is exclusive? Like this:

if (isValidParticipant(ref ))  participant-ref = ref;
else if (isValidParticipant(field-ref))  participant-ref = field-ref;
else if (isValidParticipant(variable-ref))  participant-ref = variable-ref;
else if (isValidParticipant(default-ref)) participant-ref = default-ref;
else {
    while (else-ref.hasNext() && !responseFrom(participant-ref)) {
         participant-ref = else-ref.next()
         if (isValidParticipant(participant-ref)) {
             timeout.init()
             while (! timeout.isOver())  {
                 sleep(XX);
            }
        }
    }
}
if (! isValid(participant-ref)) {
     // what happens if all fails?
}

If we use the $ notation we could express the field-ref and variable-ref by
the ref attribute like this?
<participant
    ref = ${variable-name}  <=> variable-ref = variable-name
    ref = ${f:field-name} <=> field-ref = field-name
>


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"OpenWFE users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/openwfe-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to