POST /rest/bpm/wle/v2/search[?query={string}][&size={integer}][&offset={integer}]
| Name | Value Type | Description |
|---|---|---|
| query | string | id of a reusable search query.
|
| size | integer |
Specifies the maximum number of results to be returned.
Use this parameter with the offset parameter to provide paging in the results.
This value, when provided, will override any existing size value defined in the output section of the search query.
Default value : 25
|
| offset | integer |
Specifies the index (origin 0) of the first result to return.
Offset 0 refers to the first result; offset 1 to the second one, and so on.
Use this parameter with the size parameter to provide paging in the results.
Default value : 0
|
The default content type is application/json.
{
"datasource": {
"datatype": "TASKS",
"systemTypes": [
"Process",
"BPEL"
]
},
"population": {
"target": "SELF"
},
"filters": {
"interaction": "all",
"v1_conditions": []
},
"output": {
"includeAllBusinessData": false,
"usersFullName": true,
"sort": [
{
"field": "taskDueDate",
"order": "ASC"
},
{
"field": "taskPriority",
"order": "DESC"
}
],
"alphabeticalSort": false,
"size": 25,
"stats": {
"type": "Basic"
}
}
}
The default content type is application/json.
{
"title": "JSON search response",
"description": "A JSON search response",
"type": "object",
"properties": {
"datatype": {
"description": "The type of data that has been retrieved",
"required": false,
"type": "string",
"enum": ["TASKS",
"INSTANCES"]
},
"systems": {
"description": "The systems against which the search was run",
"type": "array",
"items": {
"type": "object",
"properties": {
"systemID": {
"type": "string",
"description": "ID of the IBM Business Automation Workflow system that the request was sent to."
},
"index": {
"type": "string",
"description": "The name of the Federated Data Repository index in which the data for this system is indexed."
},
"restUrlPrefix": {
"type": "string",
"description": "The prefix to use for processes in this federated IBM Business Automation Workflow system."
},
"taskCompletionUrlPrefix": {
"type": "string",
"description": "The prefix to use for services in this federated IBM Business Automation Workflow system."
},
"version": {
"type": "object",
"description": "The product version on this federated IBM Business Automation Workflow system."
},
"systemType": {
"type": "string",
"description": "The type of this federated IBM Business Automation Workflow system, either \"SYSTEM_TYPE_WLE\", \"SYSTEM_TYPE_WPS\" or \"SYSTEM_TYPE_CASE\"."
},
"portalSupportUrlPrefix": {
"type": "string",
"description": "The prefix to use for access to the portal for this federated IBM Business Automation Workflow system (BPD only)."
},
"targetObjectStoreName": {
"type": "string",
"description": "The name of the target object store for this system (Case only)."
},
"statusCode": {
"type": "integer",
"description": "HTTP status code that was returned from this IBM Business Automation Workflow system."
}
}
}
},
"queryExecuteTime": {
"type": "string",
"description": "The date and time at which the search was performed"
},
"requestedSize": {
"type": "number",
"description": "The maximum number of results that were requested in the response"
},
"responseSize": {
"type": "number",
"description": "The actual number of results in the response"
},
"offset": {
"type": "integer",
"description": "The offset into the entire result set where this query response has begin."
},
"totalCount": {
"type": "integer",
"description": "The total number of results in the Federated Data Repository"
},
"fieldsMetadata": {
"type": "array",
"description": "Metadata describing the fields included in the results",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the field"
},
"type": {
"type": "string",
"description": "The type of the field"
},
"isArray": {
"type": "boolean",
"description": "true if the field is an array, false otherwise"
},
"isBusinessData": {
"type": "boolean",
"description": "true if the field is a business data, false otherwise"
},
"source": {
"type": "string",
"description": "The name of the field in the Federated Data Repository index"
}
}
}
},
"results": {
"type": "array",
"description": "The results",
"items": {
"type": "object"
}
},
"stats": {
"type": "object",
"description": "Statistics that were requested in the search query"
}
}
}
None
| Code | Description |
|---|---|
| 200 OK | Successful operation.
|
| 400 Bad Request | Bad Request
|
| 403 Forbidden | The caller is not authorized to perform this operation.
|
| 404 Not Found | The saved search definition does not exist.
|
| 406 Not Acceptable | The requested content type or content encoding is not supported. |
| 409 Conflict | Bad Request. See the details provided.
|
| 415 Unsupported Media Type | The content type or content encoding of the request is not supported. |
| 500 Internal Server Error | Internal Server Error. See the details provided.
|
24.0.0.0
Parent Topic: Search Resource