進階自訂 > 使用可重複使用的元件 > 可用可重複使用的元件 > 項目標識 > 任務標識
  
任務標識
任務標識是項目標識可重複使用的元件之預先定義配置,它會顯示一個面板,其中包含有關 Windchill 任務的基本資訊。任務標識面板提供有關任務及其關聯變更請求的基本資訊。此面板包括變更請求與標識屬性的主要標題與次要標題。面板中包括的預設屬性有「角色」「到期日」「狀況」「類別」「要求優先順序」。還有一個動作列可重複使用的元件,內嵌在任務標識面板中。面板中包括的預設動作為「核准」「拒絕」「分析」「重新指派」
以下是顯示任務標識預先定義組態的範例圖像:
如需有關配置任務標識面板的資訊,請參閱項目標識。您也可以在此找到任務標識之繫結內容的相關資訊。
範例組態
{
"actions": {
"maxItemsToShow": {
"value": 2
},
"modelThingName": {
"entityName": "PTC.ActionBarModel.Thing"
},
"actions": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"id": "Approve",
"additionalData": {
"actionConfiguration": {
"overrideLabel": {
"value": ""
},
"actionButtonVisibility": {
"selectedKey": "HideUnavailable"
},
"buttonStyle": {
"selectedKey": "primary"
},
"mashupName": {
"mashupName": "PTC.AccessApp.WindchillServices.RoutingOptionMashup"
},
"popupWidth": {
"value": 600
},
"popupHeight": {
"value": 479
},
"redirectAfterPopupSuccess": {
"mashupName": "PTC.MyTasksAppMashup"
},
"fireEventOnFinish": {
"value": false
},
"activityType": {
"selectedKey": "popup"
}
}
},
"ordinal": 10
},
{
"id": "Reject",
"additionalData": {
"actionConfiguration": {
"overrideLabel": {
"value": ""
},
"actionButtonVisibility": {
"selectedKey": "HideUnavailable"
},
"buttonStyle": {
"selectedKey": "primary"
},
"mashupName": {
"mashupName": "PTC.AccessApp.WindchillServices.RoutingOptionMashup"
},
"popupWidth": {
"value": 600
},
"popupHeight": {
"value": 479
},
"redirectAfterPopupSuccess": {
"mashupName": "PTC.MyTasksAppMashup"
},
"fireEventOnFinish": {
"value": false
},
"activityType": {
"selectedKey": "popup"
}
}
},
"ordinal": 20
},
{
"id": "Analyze",
"additionalData": {
"actionConfiguration": {
"overrideLabel": {
"value": ""
},
"actionButtonVisibility": {
"selectedKey": "HideUnavailable"
},
"buttonStyle": {
"selectedKey": "primary"
},
"mashupName": {
"mashupName": "PTC.AccessApp.WindchillServices.RoutingOptionMashup"
},
"popupWidth": {
"value": 600
},
"popupHeight": {
"value": 479
},
"redirectAfterPopupSuccess": {
"mashupName": "PTC.MyTasksAppMashup"
},
"fireEventOnFinish": {
"value": false
},
"activityType": {
"selectedKey": "popup"
}
}
},
"ordinal": 30
},
{
"id": "Reassign",
"additionalData": {
"actionConfiguration": {
"overrideLabel": {
"value": "[[PTC.AccessApp.Reassign]]"
},
"actionButtonVisibility": {
"selectedKey": "AlwaysShown"
},
"buttonStyle": {
"selectedKey": "primary"
},
"mashupName": {
"mashupName": "PTC.AccessApp.WindchillServices.ReassignActionMashup"
},
"popupWidth": {
"value": 600
},
"popupHeight": {
"value": 579
},
"redirectAfterPopupSuccess": {
"mashupName": "PTC.MyTasksAppMashup"
},
"fireEventOnFinish": {
"value": false
},
"activityType": {
"selectedKey": "popup"
}
}
},
"ordinal": 40
}
],
"objectType": "WT.WorkItem.Actions"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
}
},
"secondaryTitle": {
"pattern": "%1",
"fields": {
"data": [
{
"itemListsData": [
{
"items": [
{
"numericIdentifier": 1,
"id": "Activity|Name"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"id": "Role#Display",
"ordinal": 0
},
{
"id": "Activity|Deadline",
"ordinal": 1
},
{
"id": "Status#Display",
"ordinal": 2
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"items": [
{
"id": "Category#Display",
"ordinal": 3
},
{
"id": "RequestPriority#Display",
"ordinal": 4
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"inTailoring": true
},
"title": {
"pattern": "%1",
"fields": {
"data": [
{
"itemListsData": [
{
"items": [
{
"numericIdentifier": 1,
"id": "Subject|SubjectName"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"modelThing": {
"entityName": "PTC.TaskIdentityModelThing",
"version": "1.0.0"
}
}