W3C home > Mailing lists > Public > public-ws-chor@w3.org > April 2006

Re: Latest draft of primer is at:

From: Gary Brown <gary@pi4tech.com>
Date: Tue, 18 Apr 2006 11:11:03 +0100
Message-ID: <4444BB37.5020302@pi4tech.com>
To: Yves Lafon <ylafon@w3.org>
CC: Steve Ross-Talbot <steve@pi4tech.com>, 'WS-Choreography List' <public-ws-chor@w3.org>

Hi

I have checked section 4.1.3 Time, and I think the pseudo code and code 
fragment are wrong.

The workunit represents a while loop, while the pseudo code represents a 
repeat until. The workunit has a 'hasDurationPassed' function so would 
need to be blocking - but if this was the case it would block for 30 
seconds before going into the workunit, where the behaviour we wish to 
show is that it blocks as one of the choices for 30 seconds, and if no 
other choice path occurs, then it would take the timeout path.

So it would be:

while barteringDone=false do
    choice {
          sequence { quote accept and set barteringDone=true }
          sequence { reject quote }
          workunit guard=hasDurationPassed blocking=true {
                ......
          }
     }
done

Regards
Gary


Yves Lafon wrote:
>
> On Mon, 17 Apr 2006, Steve Ross-Talbot wrote:
>
>>
>> http://lists.w3.org/Archives/Public/www-archive/2006Apr/0009.html
>>
>> This is the basis for the review work between now and Tuesday's call. 
>> Agenda is the same as last week.
>
> See http://www.w3.org/2002/ws/chor/edcopies/primer/primer.html
> The corrected XML master is at 
> http://www.w3.org/2002/ws/chor/edcopies/primer/primer.xml
>
> Also in
> 3.2.1 Interactions
> In the fourth paragraph after the example:
> "for the variables -, -  and - respectively."
>
Received on Tuesday, 18 April 2006 10:11:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 01:01:44 GMT