PUT /rest/bpm/wle/v1/tasks[?size={integer}][&offset={integer}][&filterByCurrentUser={boolean}][&calcStats={boolean}]fields 和 sort 列表的有效值基于从以下 REST API 返回的元数据字段:
当提供名称作为有效内容的一部分以创建或更新已保存的搜索名称时,该名称受验证规则约束。 名称验证规则的示例:
all。 如果您在服务器上具有 IBM Business Automation Workflow 管理员权限,并且想要运行未过滤的搜索,请不要设置此参数。 可以使用下列其中一个值:conditions 字段的有效值基于从以下 REST API 返回的元数据字段:full_text_searchable 参数设置为 true 的字段 (可搜索字符串)。 FullText搜索值可以包含多个词,每个词可以包含通配符 (* ,?) 或模糊搜索指示符 (~)。| 名称 | 值类型 | 描述 |
|---|---|---|
| Size | 整数 | 指定要返回的最大实体数。 如果未指定此数字,那么将使用为查询定义的缺省大小。
|
| 偏移量 | 整数 | 指定要从查询结果集返回的第一个实体的索引(起点为 0)。 偏移量 0 指示结果集中的第一个实体。 偏移量 1 指的是第二个实体,依此类推。 如果未指定索引,那么缺省值为 0。
|
| filterByCurrentUser | 布尔型 | 此参数是一个标志,用于指示是否应将搜索结果限制为与当前用户关联的实体。 如果将此参数设置为 注: 仅当请求由属于 IBM Business Automation Workflow 安全组的用户执行时,才会使用此参数,否则会将其忽略。 |
| calcStats | 布尔型 | 此参数指示结果是否应包含任务统计信息。 如果未指定参数,那么缺省值为 |
缺省内容类型为application/json.
{
"title":"Saved Search Definition",
"description": " 已保存的搜索定义 JSON。 这是检索搜索时返回的 JSON ,以及保存或更新搜索时用于有效内容的 JSON。" ,
"type":"object",
"properties": {
"id": {
"type":"string",
"description":"The ID of the saved search definition. 将始终返回此字段。 作为有效内容的一部分提供时: 创建: 创建已保存的搜索定义时,应省略标识。 更新: 此字段是可选的,如果提供了此字段,那么标识必须与正在更新的已保存搜索定义的标识匹配。 特别执行: 如果此字段是可选的,并且如果提供了此字段,那么将忽略此字段。" ,
"required": false
},
"name": {
"type":"string",
"description":"The name of the saved search definition. 将始终返回此字段。 作为有效内容的一部分提供时,根据方法的不同,需求会有所不同。" ,
"required": false
},
"所有者": {
"type":"string",
"description":"The owner of the saved search definition. 将始终返回此字段。 如果未提供,那么它将缺省为当前用户。 已保存搜索的所有者始终有权处理他们拥有的已保存搜索。 注: 在 8570 之前定义的共享保存的搜索将不会保存所有者。 共享的已保存搜索 (包括由其他用户拥有或没有已保存所有者的搜索) 可由已保存的搜索管理员创建,更新和删除。"。
"required": false
},
"组织": {
"type":"string",
"description":"A string that indicates how the search results are organized. 该值设置为 "byTask" 或 "byInstance"。 缺省值 (如果未提供给 "byTask")。" ,
"enum":[
"byTask",
"byInstance"
],
"required": false
},
"shared": {
"type":"boolean",
"description": " 指示是否共享已保存的搜索。 缺省值 (如果未提供为 false) " ,
"required": false
},
"teams": {
"type":"array",
"description": "The team that the Saved Search is shared with. 如果已保存的搜索是共享的,那么空团队数组指示共享的已保存搜索是与所有人全局共享的。 The array can optionally include one team to share the Saved Search with. teamId 必须是用户是其成员或管理者的团队。 保存的搜索管理员可以与任何团队共享。 在未来发行版中可能支持与多个团队共享。" ,
"required":false,
"properties": {
"teamId": {"type": "string",
"description": "The team id."
},
"teamName": {"type": "string",
"description": " 团队名称。 在返回的 JSON 中使用,如果包含为有效内容的一部分,那么会将其忽略。"
},
"processAppName": {"type": "string",
"description": " 定义/建模团队的流程应用程序。 在返回的 JSON 中使用,如果包含为有效内容的一部分,那么会将其忽略。"
}
}
},
"size": {
"type":"integer",
"description": " 要检索的项的预定义大小。 缺省值 (如果未提供给系统配置中设置的值)。" ,
"required": false
},
"交互": {
"type":"string",
"description": " 用于将不同任务类别 (可用于声明的任务,已声明的任务,已完成的任务等) 作为目标的过滤器。 缺省值 (如果未提供给 "all")。" ,
"enum":[
"claimed",
"可用" ,
"claimed_and_available" ,
"Completed",
"全部"
],
"required": false
},
"fields": {
"type":"string",
"description": "执行已保存的搜索时要返回的字段的列表。" ,
"required": false
},
"aliases": {
"type":"array",
"description": "已保存搜索的业务数据字段的别名。" ,
"required":false,
"properties": {
"field": {"type": "string",
"description": "别名所针对的业务数据字段。"
},
"alias": {"type": "string" ,
"description": "字段的别名。"
}
}
},
"sort": {
"type":"array",
"description": "已保存的搜索定义的排序顺序。" ,
"required":false,
"properties": {
"field": {"type": "string",
"description": "The field to sort on."
},
"order": {"type": "string",
"description": "要排序的顺序。" ,
"enum":[
"ASC",
"desc"
]
}
}
},
"conditions": {
"type":"array",
"description": "表示已保存的搜索定义的条件。" ,
"required":false,
"properties": {
"field": {"type": "string",
"description": "The field the condition is based on."
},
"operator": {"type": "string",
"description": "The operation to perform. 存在有效值的集合列表。" ,
"enum":[
"EQUALS",
"NotEquals",
"StartsWith",
"包含" ,
"GreaterThan",
"LessThan",
"FullText搜索"
]
},
"value": {"type": "string",
"description": "The value of the condition."
}
}
}
}
}
{
"name": "MySaved搜索" ,
"交互": "claimed_and_available" ,
"fields": [
"taskDueDate",
"taskId",
"taskSubject",
"taskStatus",
"taskPriority",
"taskIsAtRisk",
"taskAtRiskTime",
"taskClosedDate",
"taskActivity名称" ,
"taskActivity类型" ,
"assignedTo用户" ,
"assignedToUserFullName" ,
"assignedToRoleDisplay名称" ,
"instanceName",
"instanceId",
"instanceStatus",
"instanceProcess应用程序" ,
"instanceSnapshot",
"instanceCaseProcessType位置" ,
"instanceCaseStageStatus",
"solutionTargetObjectStoreSymbolicName",
"bpdName",
"department",
"gmApproval",
"hiringManager",
"位置" ,
"caseIdentifier",
"caseType标识"
],
"aliases": [
{
"field": "bpdName" ,
"alias": "特定于客户的别名"
}
],
"排序": [
{
"field": "taskDueDate" ,
"order": "ASC"
}
],
"条件": [
{
"field": "taskDueDate" ,
"operator": "LessThan" ,
"value": "2016-03-02T05:00:00.000Z"
}
],
"organization": "byTask" ,
"size": 25 ,
"shared" :true ,
"teams":[
{
"teamId":"24.eb30156e-52c8-4ec5-9be6-02290d02f827",
"teamName":"GeneralManagers",
"processAppName":"Hiring Sample"
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://rest.bpm.ibm.com/v1/data/savedsearchdefinition"
elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://rest.bpm.ibm.com/v1/data/savedsearchdefinition"
xmlns:common="http://rest.bpm.ibm.com/v1/data/common"
xmlns:pref = "http://rest.bpm.ibm.com/v1/data/root">
<import schemaLocation="Common.xsd" namespace="http://rest.bpm.ibm.com/v1/data/common"/>
<import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root"/>
<!--
已保存的搜索定义。 这是检索搜索时返回的格式。
以及在保存或更新搜索时用于有效内容的格式。
-->
<complexType name="SavedSearchDefinition">
<complexContent>
<extension base="pref:Data">
<sequence>
<!--
The ID of the saved search definition.
将始终返回此字段。 作为有效内容的一部分提供时:
创建: 创建已保存的搜索定义时,标识应该为空。
更新: 可选,如果提供了标识,那么该标识必须与正在更新的已保存搜索定义的标识匹配。
特别执行: 此字段是可选的,如果提供了此字段,那么将忽略此字段。"
-->
<element name="id" type="string" />
<!--
" 已保存的搜索定义的名称。
将始终返回此字段。 作为有效内容的一部分提供时:
创建: 必需且必须遵循名称验证规则。
更新: 可选 (如果为重命名目的提供) 必须遵循名称验证规则
特别执行: 此字段是可选的,如果提供了此字段,那么将忽略此字段。"
-->
<element name="name" type="string" />
<!--
The owner of the saved search definition.
创建: 如果未设置值,那么当前登录的用户将在保存时设置为所有者。
更新: 应用缺省规则。 (8570 之前没有所有者)
-->
<element name="owner" type="string" nillable="true"/>
<!--
A string that indicates how the search results are organized.
The value is set to either "byTask" or "byInstance". 缺省值 (如果未提供)。
-->
<element name="organization" type="string" />
<!-- Indicates whether the saved search is shared. 缺省值 (如果未提供)。 -->
<element name="shared" type="boolean" />
<!-- Indicates if the saved search is shared with a team or global -->
<element name="teams" type="tns:SavedSearchDefnTeam" minOccurs="0" maxOccurs="unbounded"/>
<!-- The pre-predefined size of items to be retrieved. -->
<element name="size" type="integer" nillable="true" />
<!--
用于将不同任务类别的不同 "已保存的搜索" 作为目标的过滤器
(团队任务,已声明的任务,已关闭的任务等)。
-->
<element name="interaction" type="string" nillable="true"/>
<!-- fields or columns -->
<element name="fields" type="string" minOccurs="0" maxOccurs="unbounded"/>
<!-- business data aliases -->
<element name="aliases" type="tns:SavedSearchDefnAlias" minOccurs="0" maxOccurs="unbounded"/>
<!-- sort order -->
<element name="sort" type="tns:SavedSearchDefnSort" minOccurs="0" maxOccurs="3"/>
<!-- search condition -->
<element name="conditions" type="tns:SavedSearchDefnCondition" minOccurs="0" maxOccurs="2"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!--
This type represents the meta data of a saved search definition that is returned in list of definitions.
-->
<complexType name="SavedSearchDefinitionMetadata">
<complexContent>
<extension base="pref:Data">
<sequence>
<!--
The ID of the saved search definition.
If a value is not set, a new saved search definition is created upon save.
-->
<element name="id" type="string" />
<!--
The name of the saved search definition.
-->
<element name="name" type="string" />
<!--
The owner of the saved search definition.
-->
<element name="owner" type="string" nillable="true"/>
<!--
A string that indicates how the search results are organized.
The value is set to either "byTask" or "byInstance".
-->
<element name="organization" type="string" />
<!-- Indicates whether the saved search is shared -->
<element name="shared" type="boolean" />
</sequence>
</extension>
</complexContent>
</complexType>
<!--
A list of saved search definitions.
-->
<complexType name="SavedSearchDefinitions">
<complexContent>
<extension base="pref:Data">
<sequence>
<element name="definitions" type="tns:SavedSearchDefinitionMetadata" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!-- This type represents the sort order of a saved search definition. -->
<complexType name="SavedSearchDefnSort">
<sequence>
<!-- The field to sort on. -->
<element name="field" type="string" />
<!-- This will be set to "DESC" or "ASC". -->
<element name="order" type="string" />
</sequence>
</complexType>
<!-- This type represents the aliases for business data fields of a saved search. -->
<complexType name="SavedSearchDefnAlias">
<sequence>
<!-- The business data field the alias is for. -->
<element name="field" type="string" />
<!-- The alias for the field. -->
<element name="alias" type="string" />
</sequence>
</complexType>
<!-- This type represents the conditions of a saved search definition. -->
<complexType name="SavedSearchDefnCondition">
<sequence>
<!-- The field the condition is based on. -->
<element name="field" type="string" />
<!-- The operation to perform. 存在有效值的集合列表。 -->
<element name="operator" type="string" />
<!-- The value of the condition ". -->
<element name="value" type="string" />
<!-- choice>
<element name="value" type="string" />
<element name="values" type="string" minOccurs="0" maxOccurs="unbounded"/>
</choice-->
</sequence>
</complexType>
<!-- This type represents the teams that are authorized or can execute a shared saved search definition. -->
<complexType name="SavedSearchDefnTeam">
<sequence>
<!-- The team id. -->
<element name="teamId" type="string" />
<!-- The team name. -->
<element name="teamName" type="string" />
<!-- The process app where the team was defined / modeled". -->
<element name="processAppName" type="string" />
</sequence>
</complexType>
<!--
This type represents individual meta data of the type requested that can be used in a saved or adhoc search definition.
It is used to get a list of fields and meta data about those fields. It is filtered by type of meta data requested.
This type is also used for simple enumerations, in which case type and full_text_searchable will be null.
-->
<complexType name="SearchDefinitionMetaData">
<sequence>
<!-- The field name. -->
<element name="name" type="string" />
<!-- The field's type with the type being one of the following: String , Date, Time, Integer, Decimal, Boolean. -->
<element name="type" type="string" />
<!-- The symbolic name of the case property, null for non case property -->
<element name="symbolicName" type="string" />
<!-- Indicate whether the alias is for case level property or activity level property -->
<element name="caseContext" type="string" />
<!-- The attribute to indicate if this field may be used in a full text search. -->
<element name="full_text_searchable" type="boolean" maxOccurs="1" minOccurs="0"/>
</sequence>
</complexType>
<complexType name="SearchDefinitionMetaDataWithOrigins">
<complexContent>
<extension base="tns:SearchDefinitionMetaData">
<sequence>
<element name="origins" type="tns:BusinessDataAliasOrigin" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="SearchDefinitionMetaDataWithId">
<complexContent>
<extension base="tns:SearchDefinitionMetaData">
<sequence>
<element name="id" type="string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="BusinessDataAliasOrigin">
<sequence>
<element name="type" type="string" />
<element name="projectShortName" type="string" />
<element name="branchName" type="string" />
<element name="snapshotName" type="string" nillable="true" />
<element name="snapshotAcronym" type="string" />
<element name="snapshotId" type="string" nillable="true" />
<element name="processName" type="string" />
</sequence>
</complexType>
<!--
A list of meta data filtered by type that can be used in a saved or adhoc search definition
It is filtered by type of meta data requested and the elements returned are determined by the type of meta data requested.
-->
<complexType name="SearchDefintionMetaDataResultsByType">
<complexContent>
<extension base="pref:Data">
<sequence>
<element name="result" type="tns:SearchDefinitionMetaData" minOccurs="0" maxOccurs="unbounded"/>
<element name="caseResult" type="tns:SearchDefinitionMetaData" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!--
A list of action policies or available actions a user has based on the Saved Search Definition.
-->
<complexType name="SavedSearchDefinitionUsersAvailableActions">
<complexContent>
<extension base="pref:Data">
<sequence>
<element name="actions" type="string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!--
此类型描述批量 savedSearch相关操作期间失败的操作。
-->
<complexType name="FailedOperations">
<sequence>
<!-- The saved search ID -->
<element name="savedSearchId" type="string" />
<!-- The error message prefix associated with the error -->
<element name="errorNumber" type="string" />
<!-- The error message associated with the error -->
<element name="errorMessage" type="string" />
</sequence>
</complexType>
<!--
此类型用于返回对多个已保存的搜索执行批量操作的结果。
-->
<complexType name="SavedSearchBulkOperation">
<complexContent>
<extension base="pref:Data">
<sequence>
<!-- A list of zero or more failed operations -->
<element name="failedOperations" type="tns:FailedOperations" minOccurs="0" maxOccurs="unbounded" />
<!-- A list of zero or more saved search definitions -->
<element name="definitions" type="tns:SavedSearchDefinition" minOccurs="0" maxOccurs="unbounded" />
<!-- Counts the saved searches on which the requested action was applied successfully. -->
<element name="succeeded" type="int" minOccurs="0" maxOccurs="1"/>
<!-- Counts the saved searches on which the requested action was applied unsuccessfully. -->
<element name="failed" type="int" minOccurs="0" maxOccurs="1"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns8="http://rest.bpm.ibm.com/v1/data/savedSearchDefinition" xsi:type="ns8:savedSearchDefinition">
<name>mySavedSearchDefn</name>
<owner>ownerUserName</owner>
<organization>byTask</organization>
<shared>true</shared>
<teams>
<teamId>24.da7e4d23-78cb-4483-98ed-b9c238308a03</teamId>
</teams>
<size>1000</size>
<interaction>all</interaction>
<fields>instanceName</fields>
<fields>taskSubject</fields>
<fields>taskStatus</fields>
<fields>taskDueDate</fields>
<fields>taskPriority</fields>
<fields>taskClosedDate</fields>
<fields>taskReceivedDate</fields>
<aliases>
<field>bpdName</field>
<alias>Customer Specific Alias</alias>
</aliases>
<sort>
<field>instanceName</field>
<order>ASC</order>
</sort>
<sort>
<field>taskStatus</field>
<order>ASC</order>
</sort>
<conditions>
<field>taskStatus</field>
<operator>Equals</operator>
<value>Received</value>
</conditions>
</data>
缺省内容类型为application/json.
{
"title": "搜索执行结果集" ,
"type":"object",
"description": "此类型表示执行已保存或特别搜索的结果。" ,
"properties":
{ "identifier" : {"type": "string",
"description": " 与这组查询结果关联的键属性。 这将取决于查询返回的对象类型,并且将是下列其中一项: TASK.TKIID, TASK_TEMPL.TKTID, PROCESS_INSTANCE.PIID。"
},
"query": {"type": "string",
"description": "Name of the query that is associated with this query result set."
},
"entityTypeName": {"type": "string",
"description": " 作为查询结果返回的实体的类型。 这将是 PROCESS_INSTANCE , TASK 或 TASK_TEMPL 之一。"
},
"queryExecuteTime": {"type": "dateTime" ,
"description": " 运行搜索时的服务器时间戳记。 可供移动设备用于接收刷新通知。 可以为空。"
},
"taskIndexUpdateInterval ": {"type": "integer" ,
"description": "任务索引的服务器更新时间间隔。"
},
"attributeInfo": {"type": "array" ,
"description": "此查询返回的属性 (字段) 列表" ,
"properties": {
"name": {"type": "string",
"description": "Attribute name."
},
"type": {"type": "string",
"description": "Attribute type."
},
"isArray": {"type": "boolean",
"description": "Specifies whether the attribute has an array of values."
},
"content": {"type": "string",
"description": "A string that identifies attributes with a well-known value range."
},
"sourceAttribute": {"type": "string",
"description": "The related query table and attribute which provides this attributes' information."
},
"sourceQueryTableIdentifier": {"type": "string", "optional": true,
"description": "The ID of the source attribute's table, as defined in the query table definition."
}
}
},
"offset": {"type": "integer",
"description": "The offset value that was specified on the original request. This value represents the index (within the overall query result set) of the first item being returned"
},
"size": {"type": "integer",
"description": "The number of items being returned"
},
"requestedSize": {"type": "integer",
"description": "The number of items requested in the original request"
},
"totalCount": {"type": "integer",
"description": "Total number of results"
},
"countLimitExceeded": {"type": "boolean",
"description": "True if total number of results exceeds a search limit and is actually unknown"
},
"countLimit": {"type": "integer",
"description": "Specifies the search limit used if any or 0 if it's not set"
},
"items": {"type": "array" ,
"description": " 此查询返回的结果集。 这表示为零个或多个项的列表,其中每个项表示结果集中的一行。 每个项都由 "地图" 表示,其中 "地图" 包含与该项 (行) 关联的各种数据字段。" ,
"properties": {
"key": {"type": "string",
"description": "字段。"
},
"value": {"type": "anyType" ,
"description": "该字段的值。"
}
}
},
"stats": {
"type":"array",
"description": "通过执行特定已保存或特别搜索将返回的结果集中行 (项) 的摘要统计信息" ,
"properties": {
"total": {"type": "integer" ,
"description": "结果总数。"
},
"open": {"type": "integer" ,
"description": "打开的结果总数。"
},
"onTrack": {"type": "integer" ,
"description": "结果总数为 onTrack。"
},
"atRisk": {"type": "integer" ,
"description": "结果总数为 atRisk。"
},
"过期": {"type": "integer" ,
"描述": "已逾期的结果总数。"
}
}
}
}
}
{
"status":"200",
"data": {
"identifier":"TASK.TKIID",
"query":"IBM.DEFAULTALLTASKSLIST_75",
"entityTypeName":"TASK",
"queryExecute时间": "2016-02-02T02:08:56Z" ,
"taskIndexUpdateInterval": 5
"attributeInfo":[
{
"name":"SNAPSHOT_ID",
"type":"String",
"content":"PROCESS_INSTANCE.SNAPSHOT_ID",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceSnapshotId",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"DUE",
"type":"TIMESTAMP",
"content":"TASK.DUE",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskDueDate",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"ORIGINATOR",
"type":"String",
"content":"TASK.ORIGINATOR",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskReceivedFrom",
"sourceQueryTableIdentifier":"n/a"
},
{
"name": "COMPLETED" ,
"type":"TIMESTAMP",
"content": "TASK.COMPLETED" ,
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskClosedDate",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"PT_PTID",
"type":"ID",
"content":"PROCESS_INSTANCE.PTID",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.bpdId",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"PI_NAME",
"type":"String",
"content":"PROCESS_INSTANCE.NAME",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceName",
"sourceQueryTableIdentifier":"n/a"
},
{
"name": "AT_RISK_TIME" ,
"type":"TIMESTAMP",
"content": "TASK.AT_RISK_TIME" ,
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskAtRiskTime",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"KIND",
"type":"String",
"content":"TASK.KIND",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.WLE_TASK_MULTI_ATTRIBUTES",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"STATE",
"type":"String",
"content":"TASK.STATE",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskStatus",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"OWNER",
"type":"String",
"content":"TASK.OWNER",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.assignedToUser",
"sourceQueryTableIdentifier":"n/a"
},
{
"name": "OWNER_FULL_NAME" ,
"type":"String",
"content": "TASK.OWNER_FULL_NAME" ,
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.assignedToUserFullName",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"SNAPSHOT_NAME",
"type":"String",
"content":"PROCESS_INSTANCE.SNAPSHOT_NAME",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceSnapshot",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"PROCESS_APP_ACRONYM",
"type":"String",
"content":"PROCESS_INSTANCE.PROCESS_APP_ACRONYM",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceProcessApp",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"PI_PIID",
"type":"ID",
"content":"PROCESS_INSTANCE.PIID",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceId",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"ACTIVATED",
"type":"TIMESTAMP",
"content":"TASK.ACTIVATED",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskReceivedDate",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"STATUS",
"type":"String",
"content":"TASK.STATUS",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskStatus",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"PRIORITY",
"type":"number",
"content":"TASK.PRIORITY",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskPriority",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"NAME",
"type":"String",
"content":"TASK.NAME",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskActivityName",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"TKIID",
"type":"ID",
"content":"TASK.TKIID",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskId",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"TAD_DISPLAY_NAME",
"type":"String",
"content":"TASK_DESC.DISPLAY_NAME",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskSubject",
"sourceQueryTableIdentifier":"n/a"
},
{
"name":"CONTAINMENT_CTX_ID",
"type":"ID",
"content":"TASK.CONTAINMENT_CTX_ID",
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.instanceId",
"sourceQueryTableIdentifier":"n/a"
},
{
"name": "IS_AT_RISK" ,
"type":"BOOLEAN",
"content": "TASK.IS_AT_RISK" ,
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.taskIsAtRisk",
"sourceQueryTableIdentifier":"n/a"
},
{
"name": "ASSIGNED_TO_ROLE_DISPLAY_NAME" ,
"type":"String",
"content": "TASK_DESC.ASSIGNED_TO_ROLE_DISPLAY_NAME"
"isArray":false,
"sourceAttribute":"IBM.DEFAULTALLTASKSLIST_75.assignedToRoleDisplayName",
"sourceQueryTableIdentifier":"n/a"
}
],
"offset": 0,
"size": 2,
"requestedSize": 2
"totalCount": 11
"countLimit个已超过" :false ,
"countLimit": 500
"项目": [
{
"TASK.TKIID":" 3 " ,
"PROCESS_INSTANCE.PIID":" 3 " ,
"SNAPSHOT_ID": "2064.73dd1d1a-b533-46ef-ba79-c94cb3b0de87"
"DUE": "2016-01-29T17:52:07Z" ,
"ORIGINATOR": "tw_user" ,
"COMPLETED": "2016-01-29T16:52:30Z" ,
"PT_PTID": "25.f99618db-901f-487d-9917-f0aa6c811ab1"
"PI_NAME": "(3) 的员工申请" ,
"AT_RISK_TIME": "2016-01-30T17:46:07Z" ,
"kind": "KIND_PARTICIPATING",
"state": "STATE_FINISHED",
"OWNER": "tw_user" ,
"SNAPSHOT_NAME": "1.0.1" ,
"PROCESS_APP_ACRONYM": "BPMRES1"
"PI_PIID": "3" ,
"ACTIVATED": "2016-01-29T16:52:07Z" ,
"status": "closed",
"priority": 30,
"NAME": "提交职位申请" ,
"TKIID": "3" ,
"TAD_DISPLAY_NAME": "任务: 提交申请" ,
"CONTAINMENT_CTX_ID": "3" ,
"IS_AT_RISK" :true
"ASSIGNED_TO_ROLE_DISPLAY_NAME": 空
},
{
"TASK.TKIID":" 4 " ,
"PROCESS_INSTANCE.PIID":" 4 " ,
"SNAPSHOT_ID": "2064.73dd1d1a-b533-46ef-ba79-c94cb3b0de87"
"DUE": "2016-01-30T17:52:07Z" ,
"ORIGINATOR": "tw_user" ,
"COMPLETED": 空,
"PT_PTID": "25.f99618db-901f-487d-9917-f0aa6c811ab1"
"PI_NAME": "(4) 的员工申请" ,
"AT_RISK_TIME": "2016-02-01T17:46:07Z" ,
"kind": "KIND_PARTICIPATING",
"STATE": "STATE_声明" ,
"OWNER": "tw_user" ,
"SNAPSHOT_NAME": "1.0.1" ,
"PROCESS_APP_ACRONYM": "BPMRES1"
"PI_PIID": "4" ,
"ACTIVATED": "2016-01-30T16:52:07Z" ,
"status": "Received",
"priority": 30,
"NAME": "提交职位申请" ,
"TKIID": "3" ,
"TAD_DISPLAY_NAME": "任务: 提交申请" ,
"CONTAINMENT_CTX_ID": "3" ,
"IS_AT_RISK" :false
"ASSIGNED_TO_ROLE_DISPLAY_NAME": 空
}
],
"stats": {
"总计": 11 ,
"open": 8
"onTrack": 6
"atRisk": 1 ,
"过期": 1
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://rest.bpm.ibm.com/v1/data/savedsearchexecution"
elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://rest.bpm.ibm.com/v1/data/savedsearchexecution"
xmlns:common="http://rest.bpm.ibm.com/v1/data/common"
xmlns:pref="http://rest.bpm.ibm.com/v1/data/root"
xmlns:query = "http://rest.bpm.ibm.com/v1/data/query">
<import schemaLocation="Common.xsd" namespace="http://rest.bpm.ibm.com/v1/data/common"/>
<import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root"/>
<import schemaLocation="Query.xsd" namespace="http://rest.bpm.ibm.com/v1/data/query"/>
<!--
This type represents the results of executing a saved search.
-->
<!-- This type is used to return the results of executing a particular saved search definition. -->
<complexType name="SavedSearchResultSet">
<complexContent>
<extension base="pref:Data">
<sequence>
<!-- The key attribute associated with this set of query results. 这种方法
will depend on the type of objects being returned by the query, and will
为 "TASK.TKIID","TASK_TEMPL.TKTID","PROCESS_INSTANCE.PIID" -->
<element name="identifier" type="string" />
<!-- The name of the saved query for which these results were generated -->
<element name="query" type="string" />
<!-- This field indicates the type of objects are returned by this query.
这将是 "PROCESS_INSTANCE" , "TASK" , "TASK_TEMPL" 中的一个。-->
<element name="entityTypeName" type="string" />
<!-- The server timestamp when the search is run. 由移动设备用于接收刷新通知 -->
<element name="queryExecuteTime" type="dateTime" nillable="true" />
<!-- The server update interval of the task index -->
<element name="taskIndexUpdateInterval" type="integer" nillable="true" />
<!-- The list of attributes (fields, pre8570 aka columns ) returned by this query -->
<element name="attributeInfo" type="query:AttributeInfo"
minOccurs= "0 " maxOccurs= "无界" />
<!-- The offset value that was specified on the original request. 这种方法
value represents the index (within the overall query result set) of the first
要返回的项。 -->
<element name="offset" type="integer" />
<!-- The number of items being returned -->
<element name="size" type="integer" />
<!-- The number of items requested in the original request -->
<element name="requestedSize" type="integer" />
<!-- Total number of results -->
<element name="totalCount" type="integer" />
<!-- True if total number of results exceeds a search limit and is actually unknown -->
<element name="countLimitExceeded" type="boolean" />
<!-- Specifies the search limit used if any or 0 if it's not set -->
<element name="countLimit" type="integer" />
<!-- The set of results returned by this query. This is represented
as a list of zero or more "items", where each item represents a row in the
result set. Each item is represented by a Map, where the Map contains the
与该项关联的各种数据列 (行)。 -->
<element name="items" type="common:Map" minOccurs="0" maxOccurs="unbounded" />
<!-- This type is used to return the stats for rows (items) in the result
将通过执行特定已保存的查询返回的集合。 -->
<element name="stats" type="query:QueryStats" />
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bpm:ResponseData xmlns:bpm='http://rest.bpm.ibm.com/v1/data'>
<status>200</status>
<data xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:savedsrchexec='http://rest.bpm.ibm.com/v1/data/savedsearchexecution' xsi:type='savedsrchexec:SavedSearchResultSet'>
<identifier>TASK.TKIID</identifier>
<query>IBM.DEFAULTALLTASKSLIST_75</query>
<entityTypeName>TASK</entityTypeName>
<queryExecuteTime>2016-02-02T03:03:37Z</queryExecuteTime>
<attributeInfo>
<name>SNAPSHOT_ID</name>
<type>STRING</type>
<content>PROCESS_INSTANCE.SNAPSHOT_ID</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceSnapshotId</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>DUE</name>
<type>TIMESTAMP</type>
<content>TASK.DUE</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskDueDate</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>发起方</name>
<type>STRING</type>
<content>TASK.ORIGINATOR</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskReceivedFrom</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>COMPLETED</name>
<type>TIMESTAMP</type>
<content>TASK.COMPLETED</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskClosedDate</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>PT_PTID</name>
<type>ID</type>
<content>PROCESS_INSTANCE.PTID</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.bpdId</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>PI_NAME</name>
<type>STRING</type>
<content>PROCESS_INSTANCE.NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceName</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>AT_RISK_TIME</name>
<type>TIMESTAMP</type>
<content>TASK.AT_RISK_TIME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskAtRiskTime</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>KIND</name>
<type>STRING</type>
<content>TASK.KIND</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.WLE_TASK_MULTI_ATTRIBUTES</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>STATE</name>
<type>STRING</type>
<content>TASK.STATE</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskStatus</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>OWNER</name>
<type>STRING</type>
<content>TASK.OWNER</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.assignedToUser</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>OWNER_FULL_NAME</name>
<type>STRING</type>
<content>TASK.OWNER_FULL_NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.assignedToUserFullName</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>SNAPSHOT_NAME</name>
<type>STRING</type>
<content>PROCESS_INSTANCE.SNAPSHOT_NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceSnapshot</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>PROCESS_APP_ACRONYM</name>
<type>STRING</type>
<content>PROCESS_INSTANCE.PROCESS_APP_ACRONYM</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceProcessApp</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>PI_PIID</name>
<type>ID</type>
<content>PROCESS_INSTANCE.PIID</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceId</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>ACTIVATED</name>
<type>TIMESTAMP</type>
<content>TASK.ACTIVATED</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskReceivedDate</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>STATUS</name>
<type>STRING</type>
<content>TASK.STATUS</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskStatus</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>PRIORITY</name>
<type>NUMBER</type>
<content>TASK.PRIORITY</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskPriority</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>NAME</name>
<type>STRING</type>
<content>TASK.NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskActivityName</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>TKIID</name>
<type>ID</type>
<content>TASK.TKIID</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskId</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>TAD_DISPLAY_NAME</name>
<type>STRING</type>
<content>TASK_DESC.DISPLAY_NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskSubject</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>CONTAINMENT_CTX_ID</name>
<type>ID</type>
<content>TASK.CONTAINMENT_CTX_ID</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.instanceId</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>IS_AT_RISK</name>
<type>BOOLEAN</type>
<content>TASK.IS_AT_RISK</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.taskIsAtRisk</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<attributeInfo>
<name>ASSIGNED_TO_ROLE_DISPLAY_NAME</name>
<type>STRING</type>
<content>TASK.ASSIGNED_TO_ROLE_DISPLAY_NAME</content>
<isArray>false</isArray>
<sourceAttribute>IBM.DEFAULTALLTASKSLIST_75.assignedToRoleDisplayName</sourceAttribute>
<sourceQueryTableIdentifier>n/a</sourceQueryTableIdentifier>
</attributeInfo>
<offset>0</offset>
<size>2</size>
<requestedSize>2</requestedSize>
<totalCount>11</totalCount>
<countLimitExceeded>false</countLimitExceeded>
<countLimit>500</countLimit>
<items>
<item key='TASK.TKIID'>
<value xsi:type='ns10:string'>3</value>
</item>
<item key='PROCESS_INSTANCE.PIID'>
<value xsi:type='ns10:string'>3</value>
</item>
<item key='SNAPSHOT_ID'>
<value xsi:type='ns10:string'>2064.73dd1d1a-b533-46ef-ba79-c94cb3b0de87</value>
</item>
<item key='DUE'>
<value xsi:type='ns10:string'>2016-01-29T17:52:07Z</value>
</item>
<item key='ORIGINATOR'>
<value xsi:type='ns10:string'>tw_user</value>
</item>
<item key='COMPLETED'>
<value xsi:type='ns10:string'>2016-01-29T16:52:30Z</value>
</item>
<item key='PT_PTID'>
<value xsi:type='ns10:string'>25.f99618db-901f-487d-9917-f0aa6c811ab1</value>
</item>
<item key='PI_NAME'>
<value xsi:type='ns10:string'>Employee Requisition for (3)</value>
</item>
<item key='AT_RISK_TIME'>
<value xsi:type='ns10:string'>2016-01-30T17:46:07Z</value>
</item>
<item key='KIND'>
<value xsi:type='ns10:string'>KIND_PARTICIPATING</value>
</item
<item key='STATE'>
<value xsi:type='ns10:string'>STATE_FINISHED</value>
</item>
<item key='OWNER'>
<value xsi:type='ns10:string'>tw_user</value>
</item>
<item key='SNAPSHOT_NAME'>
<value xsi:type='ns10:string'>1.0.1</value>
</item>
<item key='PROCESS_APP_ACRONYM'>
<value xsi:type='ns10:string'>BPMRES1</value>
</item>
<item key='PI_PIID'>
<value xsi:type='ns10:string'>3</value>
</item>
<item key='ACTIVATED'>
<value xsi:type='ns10:string'>2016-01-29T16:52:07Z</value>
</item>
<item key='STATUS'>
<value xsi:type='ns10:string'>Closed</value>
</item>
<item key='PRIORITY'>
<value xsi:type='ns10:int'>30</value>
</item>
<item key='NAME'>
<value xsi:type='ns10:string'>Submit job requisition</value>
</item>
<item key='TKIID'>
<value xsi:type='ns10:string'>3</value>
</item>
<item key='TAD_DISPLAY_NAME'>
<value xsi:type='ns10:string'>Task: Submit requisition</value>
</item>
<item key='CONTAINMENT_CTX_ID'>
<value xsi:type='ns10:string'>3</value>
</item>
<item key='IS_AT_RISK'>
<value xsi:type='ns10:boolean'>true</value>
</item>
<item key='ASSIGNED_TO_ROLE_DISPLAY_NAME'/>
</items>
<items>
<item key='TASK.TKIID'>
<value xsi:type='ns10:string'>4</value>
</item>
<item key='PROCESS_INSTANCE.PIID'>
<value xsi:type='ns10:string'>4</value>
</item>
<item key='SNAPSHOT_ID'>
<value xsi:type='ns10:string'>2064.73dd1d1a-b533-46ef-ba79-c94cb3b0de87</value>
</item>
<item key='DUE'>
<value xsi:type='ns10:string'>2016-01-30T17:52:07Z</value>
</item>
<item key='ORIGINATOR'>
<value xsi:type='ns10:string'>tw_user</value>
</item>
<item key='COMPLETED'/>
<item key='PT_PTID'>
<value xsi:type='ns10:string'>25.f99618db-901f-487d-9917-f0aa6c811ab1</value>
</item>
<item key='PI_NAME'>
<value xsi:type='ns10:string'>Employee Requisition for (4)</value>
</item>
<item key='AT_RISK_TIME'>
<value xsi:type='ns10:string'>"2016-02-01T17:46:07Z</value>
</item>
<item key='KIND'>
<value xsi:type='ns10:string'>KIND_PARTICIPATING</value>
</item
<item key='STATE'>
<value xsi:type='ns10:string'>STATE_CLAIMED</value>
</item>
<item key='OWNER'>
<value xsi:type='ns10:string'>tw_user</value>
</item>
<item key='SNAPSHOT_NAME'>
<value xsi:type='ns10:string'>1.0.1</value>
</item>
<item key='PROCESS_APP_ACRONYM'>
<value xsi:type='ns10:string'>BPMRES1</value>
</item>
<item key='PI_PIID'>
<value xsi:type='ns10:string'>4</value>
</item>
<item key='ACTIVATED'>
<value xsi:type='ns10:string'>2016-01-30T16:52:07Z</value>
</item>
<item key='STATUS'>
<value xsi:type='ns10:string'>Received</value>
</item>
<item key='PRIORITY'>
<value xsi:type='ns10:int'>30</value>
</item>
<item key='NAME'>
<value xsi:type='ns10:string'>Submit job requisition</value>
</item>
<item key='TKIID'>
<value xsi:type='ns10:string'>4</value>
</item>
<item key='TAD_DISPLAY_NAME'>
<value xsi:type='ns10:string'>Task: Submit requisition</value>
</item>
<item key='CONTAINMENT_CTX_ID'>
<value xsi:type='ns10:string'>4</value>
</item>
<item key='IS_AT_RISK'>
<value xsi:type='ns10:boolean'>false</value>
</item>
<item key='ASSIGNED_TO_ROLE_DISPLAY_NAME'/>
</items>
<stats>
<total>11</total>
<open>8</open>
<onTrack>6</onTrack>
<atRisk>1</atRisk>
<overdue>1</overdue>
</stats>
</data>
</bpm:ResponseData>
缺省内容类型为application/json.
{"description": "WLE 错误响应" ,
"type": "object",
"properties":
{"status": {"type": "string" ,
"description": "先前 API 调用的状态。"
},
"exceptionType": {"type": "string" ,
"description": "与异常关联的类名。"
},
"errorNumber": {"type": "string",
"description": "Message ID of the exception."
},
"errorMessage": {"type": "string",
"description": "Message text of the exception."
},
"errorMessage参数": {"type": ["string"] , "optional": true ,
"description": "异常的消息文本参数。"
},
"programmersDetails": {"type": "object" , "optional": true ,
"description": "其他异常详细信息,例如堆栈跟踪。"
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://rest.bpm.ibm.com/v1/data/exception"
elementFormDefault="unqualified" xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns = "http://rest.bpm.ibm.com/v1/data/exception"
xmlns:dat = "http://rest.bpm.ibm.com/v1/data/root">
<import schemaLocation="BPMRestData.xsd" namespace="http://rest.bpm.ibm.com/v1/data/root" />
<!--
此类型表示错误响应。
-->
<element name="RestRuntimeException">
<complexType>
<sequence>
<element name="status" type="string"/>
<element name="Data" type="tns:ExceptionData">
</element>
</sequence>
</complexType>
</element>
<!--
此类型包含与异常关联的详细错误信息。
-->
<complexType name="ExceptionData">
<sequence>
<element name="status" type="string"/>
<!-- This specifies the java class name of the exception -->
<element name="exceptionType" type="string"/>
<!-- The message ID of the error message -->
<element name="errorNumber" type="string" minOccurs="0"/>
<!-- The complete error message -->
<element name="errorMessage" type="string"/>
<!-- The list of strings inserted into the error message -->
<element name="errorMessageParameters" type="string" minOccurs="0" maxOccurs="unbounded"/>
<!--
与异常关联的堆栈跟踪。
请注意,除非 "server-stacktrace-enabled" 属性
在服务器的 100Custom.xml 文件中启用。
-->
<element name="programmersDetails" type="string"></element>
<!-- Prior responses. 如果使用了批量命令,请设置 -->
<element name="responses" type="dat:BulkCommandResponses" minOccurs="0"></element>
<element name="errorData" type="tns:ErrorData" minOccurs="0" />
</sequence>
</complexType>
<complexType name="ErrorData">
<sequence>
<element name="code" type="string" />
<element name="data" type="string" minOccurs="0" />
</sequence>
</complexType>
</schema>
| 代码 | 描述 |
|---|---|
| 200 成功 | 成功完成 - 已返回所请求的数据。 请注意,该列表可能为空。
|
| 400 错误请求 | 错误请求
|
| 401 未授权 | 未授权调用者执行此请求。
|
| 403 禁止 | 调用者无权执行此操作。
|
| 406 不可接受 | 不支持请求的内容类型或内容编码。 |
| 409 冲突 | 错误请求。 请参阅提供的详细信息。
|
| 415 介质类型不受支持 | 不支持请求的内容类型或内容编码。 |
| 500 内部服务器错误 | 内部服务器错误。 请参阅提供的详细信息。
|
8.5.7
父主题: 搜索执行资源