OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

provision message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [provision] statusReturns.


I had trouble with this in 1.0 so i agree with (1); can't answer (2) and 
your (3) makes good sense to me...

Darran

Gary P Cole wrote:

> The 'status' operation can return either 1) the current state of the 
> target operation (which is executing asynchronously) or 2) any results 
> of the target operation.  The optional 'statusReturns' attribute of 
> the StatusRequestType indicates whether the requestor wants the 
> provider to return #1 or #2 above.  The value of  "statusReturns" must 
> be either 'status' or 'result'.
>
> Have I stated it correctly up to this point?  If not, please correct 
> me.  If so, hold on, because this is where I think it gets weird.
>
> If the statusRequest#statusReturns='status', then the provider 
> actually returns (in the SpmlResponse that is nested as 
> statusResponse#currentResponse) one of 
> {'success'||'failure'||'pending'}.  In other words, asking for 
> 'status' gets you "result".
> If the statusRequest#statusReturns='result', then the provider 
> actually returns (in the SpmlResponse that is nested as 
> statusResponse#currentResponse) any output thus far produced by the 
> target operation .  In other words, asking for 'result' gets you output.
> 1) Am I the only one who finds this confusing?
>
> 2) Doesn't status always have to return the "result" attribute (in the 
> SpmlResponse that is nested as statusResponse#currentResponse) since 
> the "result" attribute is required?
>
> 3) Wouldn't it be simpler to have an optional attribute that asks the 
> provider to return output?
> Couldn't we replace 'statusReturns' with something like:
>    <attribute name='returnOutput' type='xsd:boolean" use="optional" 
> default="false"/>
>
> gpc
>
>
> To unsubscribe from this mailing list (and be removed from the roster 
> of the OASIS TC), go to 
> http://www.oasis-open.org/apps/org/workgroup/provision/members/leave_workgroup.php. 
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]