Personnalisation avancée > Utilisation de composants réutilisables > Composants réutilisables disponibles > Identité d'élément > Identité des tâches
  
Identité des tâches
L'élément Identité des tâches est une configuration prédéfinie du composant réutilisable Identité d'élément qui affiche un panneau contenant des informations de base sur une tâche Windchill. Le panneau Identité des tâches fournit des informations de base sur une tâche et sur la demande de modification associée. Ce panneau inclut les titres primaires et secondaires des attributs d'identité et de demande de modification. Les attributs par défaut inclus dans le panneau sont Rôle, Date d'échéance, Statut, Catégorie et Priorité de la demande. Il existe également un composant réutilisable Barre d'actions, intégré dans le volet Identité des tâches. Les actions par défaut incluses dans le panneau sont Approuver, Rejeter, Analyser et Réaffecter.
La capture d'écran suivante vous donne un aperçu de la configuration prédéfinie Identité d'élément :
Pour en savoir plus sur la configuration du panneau Identité des tâches, consultez la rubrique Identité d'élément. Vous trouverez également des informations sur les propriétés de liaison du panneau Identité des tâches.
Exemple de configuration
{
"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"
}
}