活动
“活动”是“项列表”组件的预定义配置,可在更改请求任务中显示审阅者活动。对于每个审阅者,“活动”都会显示最新一轮审阅的详细信息。可通过配置来选取要显示的属性。默认属性有“全名”、“角色”、“上次修改时间”、Work Item Routing Choices 和 Work Item Comment。
您可以根据工作项的路由选择来筛选活动。“活动”具有与“项列表”类似的搜索、排序、筛选、导出和恢复默认值等功能。
下面是一个示例图像,其中显示了“活动”的预定义配置:
绑定属性 
有关绑定“活动”的信息,请参阅项列表组件。
* 
对于“活动”,输入绑定属性支持 PTC.Workflow.WorkItem 对象类型。
selectedItems 绑定属性的输出中包含具有 PTC.Workflow.WorkItem 对象类型的项。
配置属性 
有关配置“活动”的信息,请参阅项列表组件。
属性名称
说明
属性类型
默认值
必需或可选
attributes
有关详细信息,请参阅项列表
接受 PTC.Workflow.WorkItem 对象类型的属性。
不适用
必需
defaultSortField
有关详细信息,请参阅项列表
接受 PTC.Workflow.WorkItem 对象类型的属性。
不适用
可选
filterFields
有关详细信息,请参阅项列表
接受 PTC.Workflow.WorkItem 对象类型的属性。
不适用
可选
配置示例 
{
"actionBarConfiguration":{
"value":{
"actionBarConfigurationJSON":{
"value":""
}
}
},
"attributes":{
"inTailoring":true,
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"id":"Owner|FullName",
"ordinal":0
},
{
"id":"Role#Display",
"ordinal":1
},
{
"id":"ProcessData#WorkitemRoutingChoices",
"ordinal":2
},
{
"id":"LastModified",
"ordinal":3
},
{
"id":"ProcessData#WorkitemComment",
"ordinal":4
}
],
"objectType":"PTC.Workflow.WorkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
}
},
"defaultSortFields":{
"selectedValues":{
"data":[
{
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
},
"itemListsData":[
{
"items":[
{
"additionalData":{
"itemListDefaultSortFieldDefinition":{
"defaultSortDirection":{
"selectedKey":"asc"
}
}
},
"id":"Owner|FullName"
}
],
"objectType":"PTC.Workflow.WorkItem"
}
]
}
]
}
},
"enableSearch":{
"additionalData":{
"itemListSearchDefinition":{
"searchHintText":{
"value":"[[PTC.Nav.Activity.FindHintText]]"
}
}
},
"value":true
},
"filterFields":{
"selectedValues":{
"data":[
{
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
},
"itemListsData":[
{
"items":[
{
"additionalData":{
"itemListFilterFieldDefinition":{
"defaultSelectedFilterValues":{
"filters":{
}
},
"filterLabelOverride":{
"value":""
}
}
},
"id":"ProcessData#WorkitemRoutingChoices",
"ordinal":0
}
],
"objectType":"PTC.Workflow.WorkItem"
}
]
}
]
}
},
"label":{
"value":"[[PTC.Nav.Activity.UILabel]]"
},
"maxNumberOfRowsInGrid":{
"inTailoring":true,
"value":50
},
"selectionType":{
"selectedKey":"none"
},
"showExportAction":{
"inTailoring":true,
"value":false
},
"waitForInput":{
"value":true
}
}
自定义服务 
除配置外,每个组件还支持通过扩展其业务逻辑来自定义组件。每个组件的业务逻辑在事物模板中都包含可改写服务,您可以对这些服务进行扩展和改写。下表对此组件的可改写服务进行了详细说明。
有关每个服务的返回值和参数的示例,请参阅自定义服务的输入/输出示例
名称
说明
GetConfigurations
返回“活动”的可用配置。
参数:
返回:JSON
GetImplementationLabel
返回此组件的本地化名称或可用于获取此本地化名称的标记。此本地化名称显示在 Mashup Builder 用户界面中。
参数:
返回:字符串
GetItems
返回在输入中指定的工作项 ID 的活动信息。
参数:
input (可选) - CCO 格式的 JSON,其中包含要从后端系统获取的数据的输入 ID,以及后端系统的适配器信息。
configuration (必需) - JSON,其中包含从“定制管理器”资源获得的最终合并配置。
返回:CCO 格式的 JSON
InitializeFilters
返回配置中每个筛选器字段的筛选器类型定义。
参数:
input (可选) - CCO 格式的 JSON,其中包含要从后端系统获取的数据的输入 ID,以及后端系统的适配器信息。
configuration (必需) - JSON,其中包含从“定制管理器”资源获得的最终合并配置。
返回:CCO 格式的 JSON
DefHookMaxRowsProperties
返回要在栅格区域中显示的最大行数的属性。
参数:
返回:JSON
实施定义 
[
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.Workflow.WorkItem",
"selectionGroupIds": [
"WI"
]
}
]
}
],
"allowSubsetForTailoring": false
},
"additionalDefinition": [],
"updateServiceName": "",
"addServiceName": "",
"maximumSelectedAttributes": null,
"minimumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": true,
"key": "attributes"
},
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.Workflow.WorkItem",
"selectionGroupIds": [
"WI"
]
}
]
}
],
"allowSubsetForTailoring": false
},
"additionalDefinition": [
{
"key": "itemListDefaultSortFieldDefinition",
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"default": "asc",
"options": [
{
"key": "asc",
"label": "[[PTC.Nav.ItemList.SortOrder.Asc]]",
"description": "",
"additionalDefinition": []
},
{
"key": "dsc",
"label": "[[PTC.Nav.ItemList.SortOrder.Dsc]]",
"description": "",
"additionalDefinition": []
}
],
"updateServiceName": "",
"addServiceName": ""
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.RadioButton"
},
"mandatory": false,
"key": "defaultSortDirection"
}
]
}
],
"updateServiceName": "",
"addServiceName": "",
"maximumSelectedAttributes": null,
"minimumSelectedAttributes": null
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": false,
"key": "defaultSortFields"
},
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"minValue": 1,
"maxValue": 1000,
"step": 10,
"default": 50
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Number"
},
"mandatory": true,
"key": "maxNumberOfRowsInGrid"
},
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"supportedTypes": {
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.Workflow.WorkItem",
"selectionGroupIds": [
"WI"
]
}
]
}
],
"allowSubsetForTailoring": false
},
"additionalDefinition": [
{
"key": "itemListFilterFieldDefinition",
"directDefinition": [
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {
"type": {},
"dynamiclySetTypeServiceName": "GetFilterTypeDefinitionForFilterField"
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.FieldFilter"
},
"mandatory": false,
"key": "defaultSelectedFilterValues"
},
{
"property": {},
"value": {
"initializationData": {
"constraints": {},
"properties": {}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.Textbox"
},
"mandatory": false,
"key": "filterLabelOverride"
}
]
}
],
"updateServiceName": "",
"addServiceName": "",
"maximumSelectedAttributes": 1,
"minimumSelectedAttributes": 0
}
},
"elementVersion": "1.0.0",
"elementName": "PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory": false,
"key": "filterFields"
}
]
这对您有帮助吗?