This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1007 - CHOICE WITH MIXTURE OF BLOCKING AND NON-BLOCKING ELEMENTS
Summary: CHOICE WITH MIXTURE OF BLOCKING AND NON-BLOCKING ELEMENTS
Status: CLOSED FIXED
Alias: None
Product: WS Choreography
Classification: Unclassified
Component: Last Call Comment: Confirmed Closed (show other bugs)
Version: unspecified
Hardware: PC Windows 2000
: P2 normal
Target Milestone: --
Assignee: Martin Chapman
QA Contact: Martin Chapman
URL: http://lists.w3.org/Archives/Public/p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-10 16:06 UTC by Martin Chapman
Modified: 2005-09-28 21:40 UTC (History)
0 users

See Also:


Attachments

Description Martin Chapman 2005-01-10 16:06:19 UTC
If a choice construct has a mixture of blocking and non-blocking
elements, then it is not clear how these should be processed.

"If the choice has Work Units with guard conditions, the first Work Unit
that matches the guard condition is selected and the other Work Units
are disabled."

Does this mean the 'first' with respect to time, or the first in lexical
order?

For example, if the choice construct has two elements, the first one
blocks awaiting some information, while the second element is
non-blocking:

- should the choice construct evaluate the first item and then suspend
until the first element has a known value.

- or should the blocking element be skipped as its value cannot be
determined, and therefore the second element is evaluated?

However, if this second element evaluates to false, then does this mean
that the choice suspends awaiting one of the blocked elements (i.e. the
first element in this case) to be evaluated to true, or until no
elements remain to be evaluated?

The semantics of the choice construct are unclear in this situation.

Regards

Gary and Steve
Comment 1 Martin Chapman 2005-02-14 20:42:07 UTC
From meeting on 11-jan-05
http://lists.w3.org/Archives/Member/member-ws-chor/2005Jan/att-0002/2005-01-
11_WS-Chor_Notes.txt:

Discussion deferred as deemed to be a technical issue.
Comment 2 Martin Chapman 2005-03-08 11:01:06 UTC
Discussed at feb-mar 05 F2F:

http://lists.w3.org/Archives/Member/member-ws-chor/2005Mar/att-
0001/Ws_Chor_f2f__Feb-Mar_2005_-0.txt

Summary:
<SRT> The choice ordering structure enables specifying that at most one 
activity 
(as defined by two or more Activity-Notations) MUST be performed.
 Nick: don't talk about "ambiguity," it makes development difficult
<SRT> Add to section: Where there is ambiguity (i.e. more than one match at the 
same time) for all roles involved in the matching lexical ordering is used to 
select a match.
<SRT> Where there is more than one match lexical ordering is used to select a 
match.
<SRT> Note for primer: We cannot solve the problem a distributed choice in 
which 
matches may occur at different participants in of different order.
 issue 1007 resolved with above clarification on lexical ordering.
Comment 3 Martin Chapman 2005-05-10 15:04:28 UTC
Steve and Gary have been informed of the group's decision [1] and we are 
awaiting 
confirmation. Category changed to LCC: Closed.

[1] http://lists.w3.org/Archives/Public/public-ws-chor-
comments/2005May/0010.html
Comment 4 Greg Ritzinger 2005-05-25 19:10:00 UTC
In 2.5.1.3 Choice instated the sentence:Where there is more than one match
lexical ordering is used to select a match.
Comment 5 Martin Chapman 2005-09-28 21:40:13 UTC
cross checked and closed confirmed