ResponseCriteria
ResponseCriteria identifies the content that is to be returned, given query success. In essence, the expression here has the effect of filtering the part(s) of the found element(s) that are to be returned. ReturnCriteria plays no role in the query itself. That is handled as a match against the request BOD's noun exemplar. ReturnCriteria allows the sender of the BOD to indicate which information (down to the field level) is requested to be returned, given that the query has been successful in matching the exemplar to existing nouns. That is, in a GetListPurchaseOrder, if one or more PurchaseOrders with a TotalPrice = $1M were found, ReturnCriteria tells the BOD recipient which parts of the PurchaseOrder should be populated with content when the response (ShowPurchaseOrder) is formulated. The expressionLanguage indicates the expression language being used. In order for the ReturnCriteria expression to be evaluable by the BOD recipient, the recipient must be capable of processing and interpreting the specified expression language. XPath is the default, due to its ubiquity among XML processing technologies.
See http://www.openapplications.org/platform/1.
Element information
Namespace: http://www.openapplications.org/oagis/9
Schema document: org_openapplications_platform/1_1_1/Common/OAGi/Components/Meta.xsd
Type: ResponseActionCriteriaType
Properties: Global, Qualified
Content
- Sequence
[1..1]
- ResponseExpression [0..1] ResponseExpression identifies a pointer to the Component being provided as a response to a request. This point is provided using an appropriate value of the given expressionLanguage indicated. The actionCode is intended to indicate what has occured with the given component and/or instance of the given component.
- ChangeStatus [0..1]
Attributes
None
Used in
- Type ResponseVerbType
- Type AcknowledgeType via extension of ResponseVerbType (Element Acknowledge)
- Type ConfirmType via extension of ResponseVerbType (Element Confirm)
- Type ListType via extension of ResponseVerbType (Element List)
- Type RespondType via extension of ResponseVerbType (Element Respond)
- Type ShowType via extension of ResponseVerbType (Element Show)
Sample instance
<ResponseCriteria> <ResponseExpression actionCode="Accepted">token</ResponseExpression> <ChangeStatus> <Code>normalizedString</Code> <Description>string</Description> <EffectiveDateTime>2000-01-01</EffectiveDateTime> <ReasonCode>normalizedString</ReasonCode> <Reason>string</Reason> <StateChange> <FromStateCode>normalizedString</FromStateCode> <ToStateCode>normalizedString</ToStateCode> <ChangeDateTime>2000-01-01</ChangeDateTime> <Description>string</Description> <Note>string</Note> <UserArea> <!--any element--> </UserArea> </StateChange> <UserArea> <!--any element--> </UserArea> </ChangeStatus> </ResponseCriteria>