任務標識
「任務標識」是「項目標識」元件的預先定義組態,它會顯示一個面板,其中包含有關 Windchill 任務的基本資訊。任務標識面板提供有關任務及其關聯變更請求的基本資訊。此面板包括變更請求與標識屬性的主要標題與次要標題。面板中包括的預設屬性有「角色」、「到期日」、「狀況」、「類別」和「要求優先順序」。還有一個動作列元件內嵌在任務標識面板中。面板中包括的預設動作為「核准」「拒絕」「分析」「重新指派」
以下是顯示任務標識預先定義組態的範例圖像:
繫結內容 
如需有關繫結任務標識的資訊,請參閱項目標識元件。
* 
針對任務標識,輸入繫結內容支援 PTC.Workflow.WorkItemPTC.ChangeMgmt.ChangeRequest 物件類型。
組態內容 
如需有關配置任務標識的資訊,請參閱項目標識元件。
內容名稱
描述
內容類型
預設值
必要或選用
primaryTitle
如需詳細資訊,請參閱項目標識
接受 PTC.Workflow.WorkItemPTC.ChangeMgmt.ChangeRequest 物件類型的屬性。
N/A
必要
secondaryTitle
如需詳細資訊,請參閱項目標識
接受 PTC.Workflow.WorkItemPTC.ChangeMgmt.ChangeRequest 物件類型的屬性。
N/A
必要
attributes
如需詳細資訊,請參閱項目標識
接受 PTC.Workflow.WorkItemPTC.ChangeMgmt.ChangeRequest 物件類型的屬性。
N/A
必要
範例組態 
{
"primaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"Subject|SubjectName"
}
],
"objectType":"PTC.Workflow.WorkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"actionBarConfiguration":{
"value":{
"actionBarConfigurationJSON":{
"value":"{ \"maxItemsToShow\": { \"value\": 2 }, \"modelThingName\": { \"entityName\": \"PTC.ActionBarModel.Thing\" }, \"actions\": { \"selectedValues\": { \"data\": [ { \"itemListsData\": [ { \"items\": [ { \"id\": \"Approve\", \"additionalData\": { \"actionConfiguration\": { \"overrideLabel\": { \"value\": \"\" }, \"popupHeight\": { \"value\": 479 }, \"actionButtonVisibility\": { \"selectedKey\": \"HideUnavailable\" }, \"buttonStyle\": { \"selectedKey\": \"tertiary\" }, \"mashupName\": { \"mashupName\": \"PTC.AccessApp.WindchillServices.RoutingOptionMashup\" }, \"fireEventOnFinish\": { \"value\": false }, \"activityType\": { \"selectedKey\": \"popup\" }, \"redirectAfterPopupSuccess\": { \"mashupName\": \"PTC.MyTasksAppMashup\" }, \"popupWidth\": { \"value\": 600 } } }, \"ordinal\": 10 }, { \"id\": \"Reject\", \"additionalData\": { \"actionConfiguration\": { \"overrideLabel\": { \"value\": \"\" }, \"popupHeight\": { \"value\": 479 }, \"actionButtonVisibility\": { \"selectedKey\": \"HideUnavailable\" }, \"buttonStyle\": { \"selectedKey\": \"tertiary\" }, \"mashupName\": { \"mashupName\": \"PTC.AccessApp.WindchillServices.RoutingOptionMashup\" }, \"fireEventOnFinish\": { \"value\": false }, \"activityType\": { \"selectedKey\": \"popup\" }, \"redirectAfterPopupSuccess\": { \"mashupName\": \"PTC.MyTasksAppMashup\" }, \"popupWidth\": { \"value\": 600 } } }, \"ordinal\": 20 }, { \"id\": \"Analyze\", \"additionalData\": { \"actionConfiguration\": { \"overrideLabel\": { \"value\": \"\" }, \"popupHeight\": { \"value\": 479 }, \"actionButtonVisibility\": { \"selectedKey\": \"HideUnavailable\" }, \"buttonStyle\": { \"selectedKey\": \"tertiary\" }, \"mashupName\": { \"mashupName\": \"PTC.AccessApp.WindchillServices.RoutingOptionMashup\" }, \"fireEventOnFinish\": { \"value\": false }, \"activityType\": { \"selectedKey\": \"popup\" }, \"redirectAfterPopupSuccess\": { \"mashupName\": \"PTC.MyTasksAppMashup\" }, \"popupWidth\": { \"value\": 600 } } }, \"ordinal\": 30 }, { \"id\": \"Reassign\", \"additionalData\": { \"actionConfiguration\": { \"overrideLabel\": { \"value\": \"[[PTC.AccessApp.Reassign]]\" }, \"popupHeight\": { \"value\": 579 }, \"actionButtonVisibility\": { \"selectedKey\": \"AlwaysShown\" }, \"buttonStyle\": { \"selectedKey\": \"tertiary\" }, \"mashupName\": { \"mashupName\": \"PTC.AccessApp.WindchillServices.ReassignActionMashup\" }, \"fireEventOnFinish\": { \"value\": false }, \"activityType\": { \"selectedKey\": \"popup\" }, \"redirectAfterPopupSuccess\": { \"mashupName\": \"PTC.MyTasksAppMashup\" }, \"popupWidth\": { \"value\": 600 } } }, \"ordinal\": 40 } ], \"objectType\": \"WT.WorkItem.Actions\" } ], \"adapter\": { \"instanceName\": \"windchill\", \"thingName\": \"PTC.WCAdapter\" } } ] } } }"
}
}
},
"showSecondaryIcon":{
"version":"1.0.0",
"value":false
},
"secondaryTitle":{
"selectedValues":{
"data":[
{
"itemListsData":[
{
"items":[
{
"numericIdentifier":1,
"id":"Activity|Name"
}
],
"objectType":"PTC.Workflow.WorkItem"
}
],
"adapter":{
"instanceName":"windchill",
"thingName":"PTC.WCAdapter"
}
}
]
},
"pattern":"%1",
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"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,
"filteredValues":{
"data":[
{
"itemListsData":[
{
"objectType":""
}
],
"adapter":{
"instanceName":"",
"thingName":""
}
}
]
}
},
"showImage":{
"version":"1.0.0",
"value":false,
"additionalData": {
"itemIdentityShowImageDefinition": {
"defaultImagePath": {
"value": "/Thingworx/MediaEntities/PTC.Nav.ItemIdentity.ThumbnailTask"
}
}
}
},
"enableExpandCollapse":{
"version":"1.0.0",
"value":true
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
}
}
自訂服務 
除組態以外,每個元件還支援延伸其企業邏輯以自訂元件。每個元件的企業邏輯包括物範本中可以進行延伸與取代的置換服務。此元件的置換服務會在下表中詳細說明:
如需每個服務的傳回結果與參數範例,請參閱自訂服務的輸入/輸出範例
名稱
描述
GetConfigurations
傳回任務標識實行的可用組態。
參數:
傳回:JSON
GetImplementationLabel
傳回元件的當地語系化名稱或可用於取得當地語系化名稱的權杖。此當地語系化名稱會顯示在 Mashup Builder 使用者介面中。
參數:
傳回:字串
GetItemIdentityAttributes
檢查組態並新增所需的其他任何屬性,然後調用 GetAttributeValues 來從後端系統擷取所有屬性值。
可將工作項目狀況新增至屬性清單。工作項目狀況可決定是啟用還是禁用動作列。
參數:
input (必要) - CCO 格式的 JSON,其中包括要從後端系統擷取之資料的輸入 ID,以及後端系統的轉接器資訊。
configuration (選用) - 包含從「調整管理員」資源取得之最終合併組態的 JSON。
attributes (必要) - 包含現成屬性清單的 JSON,如在組態中所定義或透過調整所設定。
傳回:JSON
GetAttributesValues
傳回 JSON,其中包含屬性及其值。
參數:
input (必要) - CCO 格式的 JSON,其中包括要從後端系統擷取之資料的輸入 ID,以及後端系統的轉接器資訊。
configuration (選用) - 包含從「調整管理員」資源取得之最終合併組態的 JSON。
attributes (必要) - 包含現成屬性與其他屬性清單的 JSON。
傳回:CCO 格式的 JSON
實行定義 
{
"array":[
{
"value":{
"initializationData":{
"constraints":{

},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.Workflow.WorkItem",
"selectionGroupIds":[
"WI-CR"
]
},
{
"objectType":"PTC.ChangeMgmt.ChangeRequest",
"selectionGroupIds":[
"WI-CR"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":""
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory":true,
"key":"primaryTitle"
},
{
"value":{
"initializationData":{
"constraints":{

},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.Workflow.WorkItem",
"selectionGroupIds":[
"WI-CR"
]
},
{
"objectType":"PTC.ChangeMgmt.ChangeRequest",
"selectionGroupIds":[
"WI-CR"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":""
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.PatternSelector"
},
"mandatory":true,
"key":"secondaryTitle"
},
{
"value":{
"initializationData":{
"constraints":{

},
"properties":{
"supportedTypes":{
"data":[
{
"adapter":{
"thingName":"PTC.WCAdapter",
"instanceName":"windchill"
},
"itemListsData":[
{
"objectType":"PTC.Workflow.WorkItem",
"selectionGroupIds":[
"WI-CR"
]
},
{
"objectType":"PTC.ChangeMgmt.ChangeRequest",
"selectionGroupIds":[
"WI-CR"
]
}
]
}
],
"allowSubsetForTailoring":true
},
"updateServiceName":"",
"addServiceName":"",
"maximumSelectedAttributes":5,
"minimumSelectedAttributes":null
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.AttributesSelector"
},
"mandatory":true,
"key":"attributes"
},
{
"property":{

},
"value":{
"initializationData":{
"constraints":{

},
"properties":{
"directDefinition":[
{
"property":{

},
"value":{
"initializationData":{
"constraints":{

},
"properties":{
"hintText":null
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Textbox"
},
"mandatory":false,
"key":"actionBarConfigurationJSON"
}
]
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.DefinitionGroup"
},
"mandatory":false,
"key":"actionBarConfiguration"
},
{
"value":{
"initializationData":{
"properties":{

},
"constraints":{

},
"additionalDefinition":[
{
"true":{
"label":"[[PTC.Nav.Yes]]",
"additionalDefinition":[
{
"key":"itemIdentityShowImageDefinitions",
"directDefinition":[
{
"property":{

},
"value":{
"initializationData":{
"constraints":{

},
"properties":{

}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Textbox"
},
"mandatory":false,
"key":"defaultImagePath"
}
]
}
]
},
"false":{
"label":"[[PTC.Nav.No]]",
"additionalDefinition":[

]
},
"default":false
}
]
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"key":"showImage"
},
{
"property":{

},
"value":{
"initializationData":{
"version":"1.0.0",
"constraints":{

},
"properties":{
"default":false,
"true":{
"additionalDefinition":[

],
"label":"[[PTC.AccessApp.Yes]]"
},
"false":{
"additionalDefinition":[

],
"label":"[[PTC.AccessApp.No]]"
}
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"mandatory":false,
"key":"showSecondaryIcon"
},
{
"property":{

},
"value":{
"initializationData":{
"version":"1.0.0",
"constraints":{

},
"properties":{
"default":true,
"true":{
"additionalDefinition":[

],
"label":"[[PTC.Nav.Yes]]"
},
"false":{
"additionalDefinition":[

],
"label":"[[PTC.Nav.No]]"
}
}
},
"elementVersion":"1.0.0",
"elementName":"PTC.Nav.DynamicForm.Toggle"
},
"mandatory":true,
"key":"enableExpandCollapse"
}
]
}
這是否有幫助?