REST API - findCaseByCriteria
The table summarizes the REST API - findCaseByCriteria.
Request
| Format | POST <baseurl>/globaldata/model/<caseType>/<version>/findbyquery |
| Path parameters |
|
| Body | caseCriteriaType: the parameters from the CaseCriteriaTypeelement (from the BusinessDataServices schema) that defines the criteria to be evaluated. For information about criteria syntax, see "Case Data Query Language (DQL)" in TIBCO® BPM Enterprise Case Data User Guide. |
Response
| JSON | Returns a JSON representation of the contents of a SearchResultselement. |
| XML | Returns the contents of a SearchResultselement (from the BusinessDataServices schema) |
Example
| Request | POST <baseurl>/globaldata/model/com.example.gddemo.Car/2/findbyquery |
| Body | <xml-fragment>
<queryString>
engine.model = :model order by vehicleID
desc
</queryString>
<namedParameterAssignment>
<name>model</name>
<value>1.6%</value>
</namedParameterAssignment>
<paginationOptions>
<startPosition>1</startPosition>
<maxResults>-1</maxResults>
</paginationOptions>
</xml-fragment>
|
| Response | {
"xml-fragment":
{
"caseReference":
[
"BDS-2-com.example.gddemo.Car-42-0",
"BDS-2-com.example.gddemo.Car-33-0"
],
"hasMoreResults": false
}
}
|