任务实例查询提供可用的任务查询列表。仅支持默认的任务列表 IBM.DEFAULTALLTASKSLIST_75。
示例 URL:
https://PFSIHS.cn.ibm.com/rest/bpm/federated/v1/tasks/queries
示例响应:
{"federationResult":
[{"indexRefreshInterval":1000,"id":"bpm170","statusCode":200,"taskCom
pletionUrlPrefix":"https:\/\/BPM856IHS.cn.ibm.com
\/teamworks","restUrlPrefix":"https:\/\/BPM856IHS.cn.ibm.com\/rest\/b
pm\/wle","systemType":"SYSTEM_TYPE_WLE","indexName":"bpm170","systemI
D":"e2021188-db69-46e3-9f24-30c5e2ffb3db","version":"8.5.6.0"},
{"indexRefreshInterval":1000,"id":"bpm37","statusCode":200,"taskCompl
etionUrlPrefix":"https:\/\/BPM8013IHS.cn.ibm.com
\/teamworks","restUrlPrefix":"https:\/\/BPM8013IHS.cn.ibm.com
\/rest\/bpm\/wle","systemType":"SYSTEM_TYPE_WLE","indexName":"bpm37",
"systemID":"4998fd69-9e05-45c5-930e-
ceb1829a6cf8","version":"8.0.1.3"}],"items":
[{"authorizationType":"INSTANCE_BASED","kind":"FEDERATED","entityType
Name":"TASK","systemIDs":["e2021188-db69-46e3-9f24-
30c5e2ffb3db","4998fd69-9e05-45c5-930e-ceb1829a6cf8"],"locales":
["zh","tr","sv","ru","ro","pl","no","nb","ko","ja","default","en","ar
","cs","da","de","el","es","fi","fr","iw","hu","it","zh_TW","pt_BR"],
"name":"IBM.DEFAULTALLTASKSLIST_75","description":"This is the
default tasks list. Define custom tasks lists to show selected
business
data.","displayName":"All","keyAttribute":"TASK.TKIID"}],"identifier"
:"name"}
任务实例查询属性提供了默认任务列表中您可在任务列表查询中使用的属性名。
示例 URL:
https://PFSIHS.cn.ibm.com/rest/bpm/federated/v1/tasks/query/IBM.DEFAULTALLTASKSLIST_75/attributes
示例响应:
{"federationResult":
[{"indexRefreshInterval":1000,"id":"bpm170","statusCode":200,"taskComp
letionUrlPrefix":"https:\/\/BPM856IHS.cn.ibm.com\/teamworks","restUr
lPrefix":"https:\/\/BPM856IHS.cn.ibm.com\/rest\/bpm\/wle","systemType
":"SYSTEM_TYPE_WLE","indexName":"bpm170","systemID":"e2021188-db69-
46e3-9f24-30c5e2ffb3db","version":"8.5.6.0"},
{"indexRefreshInterval":1000,"id":"bpm37","statusCode":200,"taskCompl
etionUrlPrefix":"https:\/\/BPM8013IHS.cn.ibm.com\/teamworks","restUrl
Prefix":"https:\/\/BPM8013IHS.cn.ibm.com\/rest\/bpm\/wle","systemType
":"SYSTEM_TYPE_WLE","indexName":"bpm37","systemID":"4998fd69-
9e05-45c5-930e-ceb1829a6cf8","version":"8.0.1.3"}],"totalSystemTypeCount":1,
"items":[{"content":"instance.processinstancename.string",
"sourceAttribute":"instance.processinstancename.string",
"name":"PI_DISPLAY_NAME","sourceQueryTableIdentifier":"n\/a",
"type":"string","isArray":false},{"content":"process.processtemplateid.key",
"sourceAttribute":"process.processtemplateid.key","name":"PT_PTID",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.duetime.date","sourceAttribute":"task.duetime.date",
"name":"DUE","sourceQueryTableIdentifier":"n\/a","type":"date","isArray":false},
{"content":"task.isatrisk.boolean","sourceAttribute":"task.isatrisk.boolean",
"name":"IS_AT_RISK","sourceQueryTableIdentifier":"n\/a","type":"boolean",
"isArray":false},{"content":"task.status.key","sourceAttribute":"task.status.key",
"name":"STATUS","sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.atrisktime.date","sourceAttribute":"task.atrisktime.date",
"name":"AT_RISK_TIME","sourceQueryTableIdentifier":"n\/a","type":"date",
"isArray":false},{"content":"instance.processinstancename.string",
"sourceAttribute":"instance.processinstancename.string","name":"PI_NAME",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.tkiid.key","sourceAttribute":"task.tkiid.key","name":"TKIID",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.groupid.key","sourceAttribute":"task.groupid.key","name":"GROUP_ID",
"sourceQueryTableIdentifier":"n\/a","type":"number","isArray":false},
{"content":"task.owner.key","sourceAttribute":"task.owner.key","name":"OWNER",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.completiontime.date","sourceAttribute":"task.completiontime.date",
"name":"COMPLETED","sourceQueryTableIdentifier":"n\/a","type":"date","isArray":false},
{"content":"task.priority.long","sourceAttribute":"task.priority.long","name":"PRIORITY",
"sourceQueryTableIdentifier":"n\/a","type":"number","isArray":false},
{"content":"task.description.string","sourceAttribute":"task.description.string",
"name":"TAD_DESCRIPTION","sourceQueryTableIdentifier":"n\/a","type":"string",
"isArray":false},{"content":"instance.snapshotname.string",
"sourceAttribute":"instance.snapshotname.string","name":"SNAPSHOT_NAME",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.userid.key","sourceAttribute":"task.userid.key","name":"USER_ID",
"sourceQueryTableIdentifier":"n\/a","type":"number","isArray":false},
{"content":"instance.piid.key","sourceAttribute":"instance.piid.key",
"name":"PROCESS_INSTANCE.PIID","sourceQueryTableIdentifier":"n\/a",
"type":"string","isArray":false},{"content":"instance.snapshotid.key",
"sourceAttribute":"instance.snapshotid.key","name":"SNAPSHOT_ID",
"sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.activationtime.date","sourceAttribute":"task.activationtime.date",
"name":"ACTIVATED","sourceQueryTableIdentifier":"n\/a","type":"date",
"isArray":false},
{"content":"task.state.key","sourceAttribute":"task.state.key","name"
:"STATE","sourceQueryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.name.string","sourceAttribute":"task.name.string","name"
:"NAME","sourceQueryTableIdentifier":"n\/a","type":"string","isArray
":false},
{"content":"instance.piid.key","sourceAttribute":"instance.piid.key",
"name":"PI_PIID","sourceQueryTableIdentifier":"n\/a","type":"string","isAr
ray":false},
{"content":"process.processappacronym.string","sourceAttribute":"proc
ess.processappacronym.string","name":"PROCESS_APP_ACRONYM","sourceQue
ryTableIdentifier":"n\/a","type":"string","isArray":false},
{"content":"task.containmentcontextid.key","sourceAttribute":"task.co
ntainmentcontextid.key","name":"CONTAINMENT_CTX_ID","sourceQueryTable
Identifier":"n\/a","type":"string","isArray":false},
{"content":"task.originator.key","sourceAttribute":"task.originator.k
ey","name":"ORIGINATOR","sourceQueryTableIdentifier":"n\/a","type":"s
tring","isArray":false},
{"content":"task.tkiid.key","sourceAttribute":"task.tkiid.key","name"
:"TASK.TKIID","sourceQueryTableIdentifier":"n\/a","type":"string","is
Array":false},
{"content":"task.assignedtoroledisplayname.string","sourceAttribute":
"task.assignedtoroledisplayname.string","name":"ASSIGNED_TO_ROLE_DISP
LAY_NAME","sourceQueryTableIdentifier":"n\/a","type":"string","isArra
y":false},
{"content":"task.kind.key","sourceAttribute":"task.kind.key","name":"
KIND","sourceQueryTableIdentifier":"n\/a","type":"string","isArray":f
alse},
{"content":"task.displayname.string","sourceAttribute":"task.displayn
ame.string","name":"TAD_DISPLAY_NAME","sourceQueryTableIdentifier":"n
\/a","type":"string","isArray":false}]}启动实体REST API
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-117267-7.html
台湾如果敢宣布独立