Options Navigation Criteria Examples
Option navigation criteria are the equivalent of a structure filter in Windchill MPMLink, where options and choices are selected on the Option Filter tab of the Edit Filter window.
Examples of JSON payloads that can be used as options navigation criteria are provided for each of the input parameters on the ConvertFromProcessPlanID service:
The following table shows the relationship between the settings on the Edit Filter window in Windchill MPMLink and the objects and attributes in a JSON payload for options navigation criteria.
Windchill MPMLink Setting
JSON Object Attribute
Saved filter from the Filter action set on the Structure tab.
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
Saved filter from the Related Assembly Filter action set on the Structure tab.
"ApplicableType": "PTC.ProdMgmt.Part",
Apply to top level object checkbox on the Configuration Specification tab.
"ApplyToTopLevelObject": "...",
Settings on the Configuration Specification tab.
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": "...",
"View": "...",
"LifeCycleState": "...",
"Variation1": "...",
"Variation2": "..."
}
],
Set when values are selected on the Option Filter tab.
"@odata.type": "#PTC.NavCriteria.OptionFilter",
ID of the option set selected from the Override Option Set Revision icon on the Option Filter tab. If no options set is selected, the default option set is applied.
For more information, see Retrieving Options Values.
"OverrideOptionSetRevision": "...",
Values selected from the Set Configuration Specification icon on the Option Filter tab. If no configuration specification is selected, the default configuration specification is applied.
"OptionFilterConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.OptionFilterConfigSpec",
"LifeCycleState": "...",
"LatestActive": "...",
"LifeCycleActive": "...",
"EffActive": "...",
"EffectiveDate": "..."
}
],
The filtering type selected in the filter drop-down list: Standard or Alternate.
"FilterMode": {
"InternalCode": "...",
"Name": "..."
},
Choices selected for each option in the option set on the Option Filter tab.
For more information, see Retrieving Options Values.
"ChoiceValues": [
{
"ID": "...",
"Name": "..."
}
]
Apply latest for unresolved dependents checkbox on the Configuration Specification tab.
"UseDefaultForUnresolved": "..."
Options Filter Example for the processPlanNavigtionCriteria Input Parameter
The following code shows an example JSON payload for the processPlanNavigationCriteria input parameter, providing navigation criteria for an options filter:
{
"ApplicableType": "PTC.MfgProcMgmt.ProcessPlan",
"ApplyToTopLevelObject": false,
"ConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.WTPartStandardConfigSpec",
"WorkingIncluded": true,
"View": "Design",
"LifeCycleState": null,
"Variation1": null,
"Variation2": null
}
],
"Filters": [
{},
{
"@odata.type": "#PTC.NavCriteria.OptionFilter",
"DisableRuleChecking": false,
"OverrideOptionSetRevision": "OR:com.ptc.windchill.option.model.OptionSet:273822",
"OptionFilterConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.OptionFilterConfigSpec",
"LifeCycleState": null,
"LatestActive": true,
"LifeCycleActive": false,
"EffActive": false,
"EffectiveDate": null
}
],
"FilterMode": {
"InternalCode": 1,
"Name": "Standard"
},
"ChoiceValues": [
{
"ID": "OR:com.ptc.windchill.option.model.Choice:246792",
"Name": "LEATHER"
}
]
}
],
"UseDefaultForUnresolved": false
}
Options Filter Example for the relatedAssemblyNavigationCriteria Input Parameter
The following code shows an example JSON payload for the relatedAssemblyNavigationCriteria input parameter, providing navigation criteria for an options filter:
{
"ApplicableType": "PTC.ProdMgmt.Part",
"ApplyToTopLevelObject": false,
"ConfigSpecs": [],
"Filters": [
{
"@odata.type": "#PTC.NavCriteria.OptionFilter",
"DisableRuleChecking": false,
"OverrideOptionSetRevision": "OR:com.ptc.windchill.option.model.OptionSet:273822",
"OptionFilterConfigSpecs": [
{
"@odata.type": "#PTC.NavCriteria.OptionFilterConfigSpec",
"LifeCycleState": null,
"LatestActive": true,
"LifeCycleActive": false,
"EffActive": false,
"EffectiveDate": null
}
],
"FilterMode": {
"InternalCode": 1,
"Name": "Standard"
},
"ChoiceValues": [
{
"ID": "OR:com.ptc.windchill.option.model.Choice:246772",
"Name": "ABS"
}
]
}
],
"UseDefaultForUnresolved": false
}
Was this helpful?