カスタマイズサービスの入力/出力の例
ここでは、サービス名に従ってアルファベット順にリストされた、カスタマイズサービスの入力と出力の例を示します。
CalculateProgress
パラメータ:
input:
{
"version": "1.0.0",
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.Workflow.WorkItem",
"items": [
{
"id": {
"value": "OR:wt.workflow.work.WorkItem:326525"
}
}
]
}
]
}
]
}
configuration:
{
"progressBarMessage": {
"version": "1.0.0",
"value": "[[PTC.Nav.TaskProgress.ProgressBarMessage]]"
},
"title": {
"version": "1.0.0",
"value": "[[PTC.Nav.TaskProgress.Title]]"
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
}
}
戻り値:
{
"data": {
"timeStamp": "2020-05-28 17:57:08.056",
"data": [
{
"itemListsData": [
{
"metadata": {
"Reject": {
"icon": "/Thingworx/MediaEntities/PTC.Nav.TaskProgress.RejectedIcon",
"step": "1",
"label": "Reject",
"ordinal": "1"
},
"PendingTasks": {
"icon": "/Thingworx/MediaEntities/PTC.Nav.TaskProgress.PendingIcon",
"step": "0",
"label": "[[PTC.Nav.TaskProgress.PendingTasks]]",
"ordinal": "3"
},
"Approve": {
"icon": "/Thingworx/MediaEntities/PTC.Nav.TaskProgress.ApprovedIcon",
"step": "1",
"label": "Approve",
"ordinal": "0"
},
"Analyze": {
"icon": "/Thingworx/MediaEntities/PTC.Nav.TaskProgress.ClarifyIcon",
"step": "1",
"label": "Analyze",
"ordinal": "2"
}
},
"items": [
{
"Reject": {
"value": "1"
},
"PendingTasks": {
"value": "1"
},
"Approve": {
"value": "4"
},
"Analyze": {
"value": "1"
}
}
]
}
]
}
],
"version": "1.0.0",
"statusMessage": "OK",
"status": "200"
},
"stepsMetadata": {}
}
GetAdditionalAttributes
戻り値:
{
"timeStamp": "2020-05-28 16:32:26.605",
"data": [
{
"itemListsData": [
{
"metadata": {
"Additional_Attr1": {
"label": "Additional attribute 1",
"type": "String"
},
"Additional_Attr2": {
"label": "Additional attribute 2",
"type": "String"
}
},
"items": [
{
"Additional_Attr1": {
"value": ""
},
"Additional_Attr2": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"version": "1.0.0",
"statusMessage": "OK",
"status": "200"
}
GetAdditionalAttributesValues
パラメータ:
configuration のサンプルはタイルからのものです。
input:
{
"version": "1.0.0",
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.ChangeMgmt.ChangeRequest",
"items": [
{
"id": {
"value": "OR:wt.change2.WTChangeRequest2:911758"
}
}
]
}
]
}
]
}
attributes:
{
"timeStamp": "2020-01-30 12:54:30.014",
"data": [
{
"itemListsData": [
{
"items": [
{
"Additional_Attr1": {
"value": ""
},
"Additional_Attr2": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
configuration:
{
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"id": "Name",
"ordinal": 0
},
{
"id": "Number",
"ordinal": 1
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
},
{
"items": [
{
"id": "Additional_Attr1",
"ordinal": 2
},
{
"id": "Additional_Attr2",
"ordinal": 3
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"maxTileCount": {
"value": "10"
}
}
OOTBAttributesValues:
{
"timeStamp": "2020-05-28 16:30:58.238",
"data": [
{
"itemListsData": [
{
"metadata": {
"Number": {
"label": "Number",
"type": "STRING"
},
"Name": {
"label": "Name",
"type": "STRING"
}
},
"items": [
{
"Number": {
"value": "00280"
},
"Name": {
"value": "GC000002_CR1"
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
戻り値:
{
"timeStamp": "2020-05-28 16:30:58.238",
"data": [
{
"itemListsData": [
{
"metadata": {
"Additional_Attr1": {
"label": "Additional attribute 1",
"type": "STRING"
},
"Additional_Attr2": {
"label": "Additional attribute 2",
"type": "STRING"
}
},
"items": [
{
"Additional_Attr1": {
"value": "Value of additional attribute 1"
},
"Additional_Attr1": {
"value": "Value of additional attribute 2"
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
GetAdditionalFilterAttributes
戻り値:
{
"timeStamp": "2020-05-31 10:12:43.279",
"statusMessage": "OK",
"status": "200"
}
GetAttributesValues
パラメータ:
configuration のサンプルはタイルからのものです。
input:
{
"version": "1.0.0",
"data": [
{
"adapter": {
"thingName": "PTC.WCAdapter",
"instanceName": "windchill"
},
"itemListsData": [
{
"objectType": "PTC.ChangeMgmt.ChangeRequest",
"items": [
{
"id": {
"value": "OR:wt.change2.WTChangeRequest2:911758"
}
}
]
}
]
}
]
}
attributes:
{
"timeStamp": "2020-01-30 12:54:30.014",
"data": [
{
"itemListsData": [
{
"items": [
{
"Name": {
"value": ""
},
"Number": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
戻り値:
{
"timeStamp": "2020-05-28 16:30:58.238",
"data": [
{
"itemListsData": [
{
"metadata": {
"Number": {
"label": "Number",
"type": "STRING"
},
"ID": {
"label": "ID",
"type": "STRING"
},
"Name": {
"label": "Name",
"type": "STRING"
}
},
"items": [
{
"Number": {
"value": "00280"
},
"ID": {
"value": "OR:wt.change2.WTChangeRequest2:911758"
},
"Name": {
"value": "GC000002_CR1"
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
GetConfigurations
戻り値:
サンプルはタスクからのものです。
{
"taskList": {
"configuration": {
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": "{\"maxItemsToShow\": {\"value\": 2},\"modelThingName\": {\"entityName\": \"PTC.ActionBarModel.Thing\"},\"actions\": {\"selectedValues\": {\"data\": [{\"itemListsData\": [{\"items\": [{\"id\": \"Reassign\",\"additionalData\": {\"actionConfiguration\": {\"iconWhenDisabled\": {\"entityName\": \"PTC.ActionBar.ReassignDisabledIcon\"},\"iconWhenHovered\": {\"entityName\": \"PTC.ActionBar.ReassignHoverIcon\"},\"overrideLabel\": {\"value\": \"[[PTC.Nav.TaskList.TaskReassignLabel]]\"},\"popupHeight\": {\"value\": 579},\"inputConstraints\": {\"selectedKey\": \"InputRequired\"},\"actionButtonVisibility\": {\"selectedKey\": \"AlwaysShown\"},\"buttonStyle\": {\"selectedKey\": \"transparent\"},\"mashupName\": {\"mashupName\": \"PTC.AccessApp.WindchillServices.ReassignActionMashup\"},\"fireEventOnFinish\": {\"value\": false},\"activityType\": {\"selectedKey\": \"popup\"},\"iconWhenEnabled\": {\"entityName\": \"PTC.ActionBar.ReassignIcon\"},\"popupWidth\": {\"value\": 600}}},\"ordinal\": 0}],\"objectType\": \"WT.WorkItem.Actions\"}],\"adapter\": {\"instanceName\": \"windchill\",\"thingName\": \"PTC.WCAdapter\"}}]}}}"
}
}
},
"implementationConfiguration": {
"value": {
"taskTypeFilter": {
"value": "[{\"activityName\": \"Conduct Online CRB Review\",\"workItemProcessTemplate\": \"Change Request Workflow\"}]"
}
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "Activity|Deadline"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"filterFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListFilterFieldDefinition": {
"filterLabelOverride": {
"value": "[[PTC.Nav.TaskList.Status]]"
},
"defaultSelectedFilterValues": {
"filters": {
"filters": [
{
"fieldName": "",
"type": "EQ",
"value": "POTENTIAL"
},
{
"fieldName": "",
"type": "EQ",
"value": "ACCEPTED"
}
],
"type": "Or"
}
}
}
},
"id": "Status#Display",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"label": {
"value": "[[PTC.Nav.TaskList.Label]]"
},
"showExportAction": {
"inTailoring": true,
"value": true
},
"selectionType": {
"selectedKey": "multi"
},
"waitForInput": {
"value": false
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
},
"implementationAttributesDefinition": {
"linkToMashup": {
"mashupName": "PTC.CRDetailedReviewAppMashup"
}
}
},
"id": "Activity|Name",
"ordinal": 0
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Subject|SubjectName",
"ordinal": 1
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Deadline",
"ordinal": 2
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Status#Display",
"ordinal": 3
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Context|Name",
"ordinal": 4
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "PTC.Nav.TaskList.TaskProgress"
}
}
},
"id": "TaskProgress",
"ordinal": 5
}
],
"objectType": "PTC.Workflow.WorkItem.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"inTailoring": true
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "[[PTC.Nav.TaskList.FindHintText]]"
}
}
},
"value": true
},
"maxNumberOfRowsInGrid": {
"inTailoring": true,
"value": 50
}
},
"label": "[[PTC.Nav.TaskList.ConfigLabel]]"
}
}
GetDefaultSelectedFilters
パラメータ:
configuration:
{
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": "{\"maxItemsToShow\": {\"value\": 2},\"modelThingName\": {\"entityName\": \"PTC.ActionBarModel.Thing\"},\"actions\": {\"selectedValues\": {\"data\": [{\"itemListsData\": [{\"items\": [{\"id\": \"Reassign\",\"additionalData\": {\"actionConfiguration\": {\"iconWhenDisabled\": {\"entityName\": \"PTC.ActionBar.ReassignDisabledIcon\"},\"iconWhenHovered\": {\"entityName\": \"PTC.ActionBar.ReassignHoverIcon\"},\"overrideLabel\": {\"value\": \"[[PTC.Nav.TaskList.TaskReassignLabel]]\"},\"popupHeight\": {\"value\": 579},\"inputConstraints\": {\"selectedKey\": \"InputRequired\"},\"actionButtonVisibility\": {\"selectedKey\": \"AlwaysShown\"},\"buttonStyle\": {\"selectedKey\": \"transparent\"},\"mashupName\": {\"mashupName\": \"PTC.AccessApp.WindchillServices.ReassignActionMashup\"},\"fireEventOnFinish\": {\"value\": false},\"activityType\": {\"selectedKey\": \"popup\"},\"iconWhenEnabled\": {\"entityName\": \"PTC.ActionBar.ReassignIcon\"},\"popupWidth\": {\"value\": 600}}},\"ordinal\": 0}],\"objectType\": \"WT.WorkItem.Actions\"}],\"adapter\": {\"instanceName\": \"windchill\",\"thingName\": \"PTC.WCAdapter\"}}]}}}"
}
}
},
"implementationConfiguration": {
"value": {
"taskTypeFilter": {
"value": "[{\"activityName\": \"Conduct Online CRB Review\",\"workItemProcessTemplate\": \"Change Request Workflow\"}]"
}
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "Activity|Deadline"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"filterFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListFilterFieldDefinition": {
"filterLabelOverride": {
"value": "[[PTC.Nav.TaskList.Status]]"
},
"defaultSelectedFilterValues": {
"filters": {
"filters": [
{
"fieldName": "",
"type": "EQ",
"value": "POTENTIAL"
},
{
"fieldName": "",
"type": "EQ",
"value": "ACCEPTED"
}
],
"type": "Or"
}
}
}
},
"id": "Status#Display",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"label": {
"value": "[[PTC.Nav.TaskList.Label]]"
},
"showExportAction": {
"value": true
},
"selectionType": {
"selectedKey": "multi"
},
"waitForInput": {
"value": false
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
},
"implementationAttributesDefinition": {
"linkToMashup": {
"mashupName": "PTC.CRDetailedReviewAppMashup"
}
}
},
"id": "Activity|Name",
"ordinal": 0
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Subject|SubjectName",
"ordinal": 1
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Deadline",
"ordinal": 2
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Status#Display",
"ordinal": 3
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Context|Name",
"ordinal": 4
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "PTC.Nav.TaskList.TaskProgress"
}
}
},
"id": "TaskProgress",
"ordinal": 5
}
],
"objectType": "PTC.Workflow.WorkItem.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "[[PTC.Nav.TaskList.FindHintText]]"
}
}
},
"value": true
},
"maxNumberOfRowsInGrid": {
"value": 500
}
}
戻り値:
{
"dataShape": {
"fieldDefinitions": {
"Display": {
"name": "Display",
"description": "enum display",
"baseType": "STRING",
"ordinal": 2,
"aspects": {
"isPrimaryKey": false
}
},
"Value": {
"name": "Value",
"description": "enum value",
"baseType": "STRING",
"ordinal": 1,
"aspects": {
"isPrimaryKey": false
}
}
}
},
"rows": [
{
"Value": "POTENTIAL"
},
{
"Value": "ACCEPTED"
}
]
}
GetItemIdentityAttributes
パラメータ:
input:
{
"data": [
{
"itemListsData": [
{
"items": [
{
"id": {
"value": "OR:wt.workflow.work.WorkItem:326525"
}
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"version": "1.0.0"
}
attributes:
{
"timeStamp": "2020-05-29 11:45:12.604",
"data": [
{
"itemListsData": [
{
"items": [
{
"Category#Display": {
"value": ""
},
"RequestPriority#Display": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
},
{
"items": [
{
"Role#Display": {
"value": ""
},
"Activity|Deadline": {
"value": ""
},
"Status#Display": {
"value": ""
},
"Activity|Name": {
"value": ""
},
"Subject|SubjectName": {
"value": ""
}
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
configuration :
{
"primaryTitle": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"numericIdentifier": 1,
"id": "Subject|SubjectName",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"pattern": "%1"
},
"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\": \"primary\" }, \"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\": \"primary\" }, \"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\": \"primary\" }, \"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\": \"primary\" }, \"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": {
"value": false
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"secondaryTitle": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"numericIdentifier": 1,
"id": "Activity|Name",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
},
"pattern": "%1"
},
"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"
}
}
]
}
},
"showImage": {
"value": false
}
}
戻り値:
{
"enableActionBar": true,
"items": {
"timeStamp": "2020-05-29 11:46:01.901",
"data": [
{
"itemListsData": [
{
"metadata": {
"Role#Display": {
"label": "Role",
"type": "STRING"
},
"Activity|Deadline": {
"label": "Due Date",
"type": "DATETIME"
},
"ID": {
"label": "ID",
"type": "STRING"
},
"Status#Display": {
"label": "Status",
"type": "STRING"
},
"Activity|Name": {
"label": "Name",
"type": "STRING"
},
"Subject|SubjectName": {
"label": "Subject Name",
"type": "STRING"
}
},
"items": [
{
"Role#Display": {
"value": "Manufacturing Manager"
},
"Activity|Deadline": {
"value": ""
},
"ID": {
"value": "OR:wt.workflow.work.WorkItem:326525"
},
"Status#Display": {
"value": "Potential"
},
"Activity|Name": {
"value": "Conduct Online CRB Review"
},
"Subject|SubjectName": {
"value": "Change Request - 00009,MYCR77"
}
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"metadata": {
"Category#Display": {
"label": "Category",
"type": "STRING"
},
"ID": {
"label": "ID",
"type": "STRING"
},
"RequestPriority#Display": {
"label": "Request Priority",
"type": "STRING"
}
},
"items": [
{
"Category#Display": {
"value": "Cost Reduction"
},
"ID": {
"value": "OR:wt.change2.WTChangeRequest2:324549"
},
"RequestPriority#Display": {
"value": "Low"
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
}
GetImplementationSettings
戻り値:
{
"implementationActions":{
"downloadZip":{
"iconWhenDisabled":"cds:icon_download",
"dataFormat":"flatInfotable",
"calculateOn":"onActionTrigger",
"iconWhenEnabled":"cds:icon_download",
"actionLabel":"[[PTC.Nav.Drawings.DownloadAll]]"
}
}
}
GetImplementationSettings 出力に含まれるプロパティ:
• calculateOn (文字列) - この操作に関連する計算をいつ行うかを指定します。onLoad または OnActionTrigger に設定できます。
• dataFormat (配列) - 操作を計算するサービスに渡されるデータのフォーマット。flatInfotable または structureCCO に設定できます。
• actionLabel (文字列) - 表示する操作の名前。
• iconWhenEnabled (文字列) - 有効になっている操作のアイコン。
• iconWhenDisabled (文字列) - 無効になっている操作のアイコン。
GetItems
パラメータ:
configuration:
{
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": "{\"maxItemsToShow\": {\"value\": 2},\"modelThingName\": {\"entityName\": \"PTC.ActionBarModel.Thing\"},\"actions\": {\"selectedValues\": {\"data\": [{\"itemListsData\": [{\"items\": [{\"id\": \"Reassign\",\"additionalData\": {\"actionConfiguration\": {\"iconWhenDisabled\": {\"entityName\": \"PTC.ActionBar.ReassignDisabledIcon\"},\"iconWhenHovered\": {\"entityName\": \"PTC.ActionBar.ReassignHoverIcon\"},\"overrideLabel\": {\"value\": \"[[PTC.Nav.TaskList.TaskReassignLabel]]\"},\"popupHeight\": {\"value\": 579},\"inputConstraints\": {\"selectedKey\": \"InputRequired\"},\"actionButtonVisibility\": {\"selectedKey\": \"AlwaysShown\"},\"buttonStyle\": {\"selectedKey\": \"transparent\"},\"mashupName\": {\"mashupName\": \"PTC.AccessApp.WindchillServices.ReassignActionMashup\"},\"fireEventOnFinish\": {\"value\": false},\"activityType\": {\"selectedKey\": \"popup\"},\"iconWhenEnabled\": {\"entityName\": \"PTC.ActionBar.ReassignIcon\"},\"popupWidth\": {\"value\": 600}}},\"ordinal\": 0}],\"objectType\": \"WT.WorkItem.Actions\"}],\"adapter\": {\"instanceName\": \"windchill\",\"thingName\": \"PTC.WCAdapter\"}}]}}}"
}
}
},
"implementationConfiguration": {
"value": {
"taskTypeFilter": {
"value": "[{\"activityName\": \"Conduct Online CRB Review\",\"workItemProcessTemplate\": \"Change Request Workflow\"}]"
}
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "Activity|Deadline"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"filterFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListFilterFieldDefinition": {
"filterLabelOverride": {
"value": "[[PTC.Nav.TaskList.Status]]"
},
"defaultSelectedFilterValues": {
"filters": {
"filters": [
{
"fieldName": "",
"type": "EQ",
"value": "POTENTIAL"
},
{
"fieldName": "",
"type": "EQ",
"value": "ACCEPTED"
}
],
"type": "Or"
}
}
}
},
"id": "Status#Display",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"label": {
"value": "[[PTC.Nav.TaskList.Label]]"
},
"showExportAction": {
"value": true
},
"selectionType": {
"selectedKey": "multi"
},
"waitForInput": {
"value": false
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
},
"implementationAttributesDefinition": {
"linkToMashup": {
"mashupName": "PTC.CRDetailedReviewAppMashup"
}
}
},
"id": "Activity|Name",
"ordinal": 0
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Subject|SubjectName",
"ordinal": 1
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Deadline",
"ordinal": 2
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Status#Display",
"ordinal": 3
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Context|Name",
"ordinal": 4
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "PTC.Nav.TaskList.TaskProgress"
}
}
},
"id": "TaskProgress",
"ordinal": 5
}
],
"objectType": "PTC.Workflow.WorkItem.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "[[PTC.Nav.TaskList.FindHintText]]"
}
}
},
"value": true
},
"maxNumberOfRowsInGrid": {
"value": 500
}
}
戻り値:
{
"timeStamp": "2020-05-31 10:28:58.559",
"data": [
{
"itemListsData": [
{
"metadata": {
"Activity|Context|Name": {
"label": "Context Name",
"type": "STRING"
},
"Activity|Deadline": {
"label": "Due Date",
"type": "DATETIME"
},
"ID": {
"label": "ID",
"type": "STRING"
},
"TaskProgress": {
"format": "unsanitized",
"label": "Task Progress",
"type": "html"
},
"Activity|Name": {
"label": "Name",
"type": "html"
},
"Status#Display": {
"label": "Status",
"type": "STRING"
},
"Subject|SubjectName": {
"label": "Subject Name",
"type": "STRING"
}
},
"items": [
{
"Activity|Context|Name": {
"value": "GOLF_CART"
},
"Activity|Deadline": {
"value": ""
},
"ID": {
"value": "OR:wt.workflow.work.WorkItem:143921"
},
"TaskProgress": {
"value": "<ptc-nav-progress-bar steps=[4,3] message=[[PTC.Nav.TaskList.NumberOfRespondedMembers]]></ptc-nav-progress-bar>"
},
"Activity|Name": {
"value": "<a gridSortValue=\"Conduct Online CRB Review\" href=\"index.html?mashup=PTC.CRDetailedReviewAppMashup&TaskID=OR:wt.workflow.work.WorkItem:143921\" >Conduct Online CRB Review</a>"
},
"Status#Display": {
"value": "Completed"
},
"Subject|SubjectName": {
"value": "Change Request - 00003,Improve mechanism of changing cart height"
}
},
{
"Activity|Context|Name": {
"value": "GOLF_CART"
},
"Activity|Deadline": {
"value": ""
},
"ID": {
"value": "OR:wt.workflow.work.WorkItem:143928"
},
"TaskProgress": {
"value": "<ptc-nav-progress-bar steps=[4,3] message=[[PTC.Nav.TaskList.NumberOfRespondedMembers]]></ptc-nav-progress-bar>"
},
"Activity|Name": {
"value": "<a gridSortValue=\"Conduct Online CRB Review\" href=\"index.html?mashup=PTC.CRDetailedReviewAppMashup&TaskID=OR:wt.workflow.work.WorkItem:143921\" >Conduct Online CRB Review</a>"
},
"Status#Display": {
"value": "Completed"
},
"Subject|SubjectName": {
"value": "Change Request - 00003,Improve mechanism of changing cart height"
}
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
InitializeFilters
パラメータ:
configuration:
{
"actionBarConfiguration": {
"value": {
"actionBarConfigurationJSON": {
"value": "{\"maxItemsToShow\": {\"value\": 2},\"modelThingName\": {\"entityName\": \"PTC.ActionBarModel.Thing\"},\"actions\": {\"selectedValues\": {\"data\": [{\"itemListsData\": [{\"items\": [{\"id\": \"Reassign\",\"additionalData\": {\"actionConfiguration\": {\"iconWhenDisabled\": {\"entityName\": \"PTC.ActionBar.ReassignDisabledIcon\"},\"iconWhenHovered\": {\"entityName\": \"PTC.ActionBar.ReassignHoverIcon\"},\"overrideLabel\": {\"value\": \"[[PTC.Nav.TaskList.TaskReassignLabel]]\"},\"popupHeight\": {\"value\": 579},\"inputConstraints\": {\"selectedKey\": \"InputRequired\"},\"actionButtonVisibility\": {\"selectedKey\": \"AlwaysShown\"},\"buttonStyle\": {\"selectedKey\": \"transparent\"},\"mashupName\": {\"mashupName\": \"PTC.AccessApp.WindchillServices.ReassignActionMashup\"},\"fireEventOnFinish\": {\"value\": false},\"activityType\": {\"selectedKey\": \"popup\"},\"iconWhenEnabled\": {\"entityName\": \"PTC.ActionBar.ReassignIcon\"},\"popupWidth\": {\"value\": 600}}},\"ordinal\": 0}],\"objectType\": \"WT.WorkItem.Actions\"}],\"adapter\": {\"instanceName\": \"windchill\",\"thingName\": \"PTC.WCAdapter\"}}]}}}"
}
}
},
"implementationConfiguration": {
"value": {
"taskTypeFilter": {
"value": "[{\"activityName\": \"Conduct Online CRB Review\",\"workItemProcessTemplate\": \"Change Request Workflow\"}]"
}
}
},
"defaultSortFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListDefaultSortFieldDefinition": {
"defaultSortDirection": {
"selectedKey": "asc"
}
}
},
"id": "Activity|Deadline"
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"filterFields": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListFilterFieldDefinition": {
"filterLabelOverride": {
"value": "[[PTC.Nav.TaskList.Status]]"
},
"defaultSelectedFilterValues": {
"filters": {
"filters": [
{
"fieldName": "",
"type": "EQ",
"value": "POTENTIAL"
},
{
"fieldName": "",
"type": "EQ",
"value": "ACCEPTED"
}
],
"type": "Or"
}
}
}
},
"id": "Status#Display",
"ordinal": 0
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"label": {
"value": "[[PTC.Nav.TaskList.Label]]"
},
"showExportAction": {
"value": true
},
"selectionType": {
"selectedKey": "multi"
},
"waitForInput": {
"value": false
},
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
},
"implementationAttributesDefinition": {
"linkToMashup": {
"mashupName": "PTC.CRDetailedReviewAppMashup"
}
}
},
"id": "Activity|Name",
"ordinal": 0
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Subject|SubjectName",
"ordinal": 1
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Deadline",
"ordinal": 2
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Status#Display",
"ordinal": 3
},
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": ""
}
}
},
"id": "Activity|Context|Name",
"ordinal": 4
}
],
"objectType": "PTC.Workflow.WorkItem"
},
{
"items": [
{
"additionalData": {
"itemListAttributesDefinition": {
"fieldTitleOverride": {
"value": "PTC.Nav.TaskList.TaskProgress"
}
}
},
"id": "TaskProgress",
"ordinal": 5
}
],
"objectType": "PTC.Workflow.WorkItem.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"enableSearch": {
"additionalData": {
"itemListSearchDefinition": {
"searchHintText": {
"value": "[[PTC.Nav.TaskList.FindHintText]]"
}
}
},
"value": true
},
"maxNumberOfRowsInGrid": {
"value": 500
}
}
戻り値:
{
"data": [
{
"itemListsData": [
{
"items": [
{
"id": "Status#Display",
"type": {
"enum": {
"options": [
{
"description": "",
"label": "Potential",
"key": "POTENTIAL"
},
{
"description": "",
"label": "Accepted",
"key": "ACCEPTED"
},
{
"description": "",
"label": "Completed",
"key": "COMPLETED"
}
]
}
}
}
],
"objectType": "PTC.Workflow.WorkItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
MapItemToInputObject
パラメータ:
item のサンプル
item:
{
"timeStamp": "2023-02-09 12:58:44.162",
"data": [
{
"itemListsData": [
{
"metadata": {
"Part|Name": {
"label": "Name",
"type": "STRING"
},
"Part|State#Display": {
"Part|State#Display": {
"label": "State",
"type": "STRING"
},
"Part|Number": {
"label": "Number",
"type": "STRING"
},
"PartId": {
"label": "PartId",
"type": "STRING"
}
},
"items": [
{
"Part|Name": {
"value": "GOLF_CART"
},
"Part|State#Display": {
"value": "In Work"
},
"Part|Number": {
"value": "GC000001"
},
"PartId": {
"value": "OR:wt.part.WTPart:123123"
}
}
],
"objectType": "PTC.ProdMgmt.PartStructureItem"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
mapItemToInputObject:
result = {
"data": [
{
"itemListsData": [
{
"items": [
{
"id": {
"value": item.data[0].itemListsData[0].items[0].PartId.value
}
}
],
"objectType": "PTC.ProdMgmt.Part"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
};
ProcessAttributesConfiguration
パラメータ:
configuration のサンプルはタイルからのものです。
attributes:
{
"timeStamp": "2020-01-30 12:54:30.014",
"data": [
{
"itemListsData": [
{
"items": [
{
"Name": {
"value": ""
},
"Number": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
},
{
"items": [
{
"Additional_Attr1": {
"value": ""
},
"Additional_Attr2": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
configuration:
{
"baseConfigurationVersion": {
"value": "nav.1"
},
"implementationConfigurationVersion": {
"value": "nav.1"
},
"attributes": {
"selectedValues": {
"data": [
{
"itemListsData": [
{
"items": [
{
"id": "Name",
"ordinal": 0
},
{
"id": "Number",
"ordinal": 1
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
},
{
"items": [
{
"id": "Additional_Attr1",
"ordinal": 3
},
{
"id": "Additional_Attr2",
"ordinal": 4
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
]
}
},
"maxTileCount": {
"value": "10"
}
}
戻り値:
{
"OOTBAttributes": {
"timeStamp": "2020-05-28 17:38:38.231",
"data": [
{
"itemListsData": [
{
"items": [
{
"Number": {
"value": ""
},
"Name": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
},
"additionalAttributes": {
"timeStamp": "2020-05-28 17:38:38.231",
"data": [
{
"itemListsData": [
{
"items": [
{
"Additional_Attr2": {
"value": ""
},
"Additional_Attr1": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest.Custom.Implementation"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
}
UpdateAvailableAttributes
パラメータ:
attributesCCO:
{
"timeStamp": "2020-05-29 11:44:12.68",
"data": [
{
"itemListsData": [
{
"metadata": {
"Category#Display": {
"label": "Category",
"type": "STRING"
},
"RequestPriority#Display": {
"label": "Request Priority",
"type": "STRING"
},
"Name": {
"label": "Name",
"type": "STRING"
},
"LastModified": {
"label": "Last Modified",
"type": "DATETIME"
}
},
"items": [
{
"Category#Display": {
"value": ""
},
"RequestPriority#Display": {
"value": ""
},
"Name": {
"value": ""
},
"LastModified": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}
戻り値:
{
"timeStamp": "2020-05-29 11:45:12.604",
"data": [
{
"itemListsData": [
{
"metadata": {
"Category#Display": {
"label": "Category",
"type": "STRING"
},
"RequestPriority#Display": {
"label": "Request Priority",
"type": "STRING"
},
"Name": {
"label": "Name",
"type": "STRING"
}
},
"items": [
{
"Category#Display": {
"value": ""
},
"RequestPriority#Display": {
"value": ""
},
"Name": {
"value": ""
}
}
],
"objectType": "PTC.ChangeMgmt.ChangeRequest"
}
],
"adapter": {
"instanceName": "windchill",
"thingName": "PTC.WCAdapter"
}
}
],
"statusMessage": "OK",
"status": "200"
}