The complete Discovery state diagram adds StatusRequest and CancelRequest. The substates of Discovery remain the same, but additional transitions are present. If a
CancelRequest is received while in the Processing Query state, the session will transition to the Idle state. Depending upon the value of the freeResources parameter in the
CancelRequest, a result set may or may not exist once in the Idle State. Note that because the client sets the request ID in a request, the client knows the ID that is used in a status
or cancel request.
Figure 20 — Discovery state diagram complete
7.4.5 Access state diagram
The Access State Diagram is shown in Figure 21. A session can be in the Access substate, once a successful initialization has occurred at which time the Access substate
will be in the initial state. Upon receiving a BrokeredAccessRequest, the Access state will transition to the Processing Request State. During the Processing Request State, the
state of an Order may be modified based on the contents of the BrokeredAccessRequest. The state of the Order is a separate state machine; see Figure 22 and Figure 23 where
order estimation and order submission are diagrammed. Transitions in the Order state may occur independent of OGC Catalogue Interface requests, e.g., order fulfilled is a
transition that occurs without a BrokeredAccessRequest. The server may delete orders. The server shall be prepared to respond to client request for an order that has been deleted
62
Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved.
by returning the paired response containing a diagnostic indicating that the order does not exist.
Once the processing of a BrokeredAccessRequest has completed a response is sent and the state transitions to Idle. Transition out of the Idle state occurs upon the client sending
a BrokeredAccessRequest in which case the state transitions to Processing Request. When a TerminateRequest is received, the Catalogue Interface state, which includes the
Access substate, transitions from Main to the end state also closing the Access state.
Proces s ing Reques t
CG_BrokeredAcces s Reques t
reques t complete CG_BrokeredAcces s
Res pons e
CG_StatusRequest CG_StatusResponse
Access
CG_CancelReques t CG_CancelRes pons e,
CG_BrokeredAcces s Res pons e
Idle CG_BrokeredAcces s Reques t
Figure 21 — Access state diagram
Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved.
63
Order Estim ation
order cancelled
order being estimated
order estimated
order not valid
CG_BrokeredAccessRequest [RequestType = “ orderEstimate” ]
CG_BrokeredAccessResponse order not valid during estimation
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderCancel” ]
CG_BrokeredAccessResponse estimation complete
order deleted
order deleted
order deleted
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse CG_BrokeredAccessRequest
[RequestType = “ orderMonitor” ] CG_BrokeredAccessResponse
Figure 22 — Order estimation state diagram
Order Subm ission
order cancelled
order not valid
CG_BrokeredAccessRequest [RequestType = “ orderQuoteandSubmit” ]
CG_BrokeredAccessResponse order not valid
during quotation
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderCancel” ]
CG_BrokeredAccessResponse quotation
complete order deleted
order deleted
order deleted
order completed
order being processed
order being quoted
order fulfilled
CG_BrokeredAccessRequest [RequestType = “ orderCancel], processing can be cancelled
CG_BrokeredAccessResponse order not valid
during processing
CG_BrokeredAccessRequest [RequestType = “ orderCancel” ],
processing cannot be cancelled CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse CG_BrokeredAccessRequest
[RequestType = “ orderMonitor” ] CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse
CG_BrokeredAccessRequest [RequestType = “ orderMonitor” ]
CG_BrokeredAccessResponse
Figure 23 — Order submit state diagram
64
Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved.
7.4.6 Management state