Retrieving Information of a Specific Process Plan
This example shows you how to retrieve information of a specific Process Plan. It shows you how to retrieve effectivities, security labels, and associated option set of a Process Plan.
Example: Retrieving All Effectivities of a Specific Process Plan
This example shows you how to retrieve information about all effectivities assigned to a specific Process Plan. For example, if you have set Lot and Serial effectivities for a Process Plan object, the request returns information about both the effectivities. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('VR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202598')/Effectivities
Similarly, you can retrieve information about all effectivities of a specific subtype of a Process Plan object.
Example: Retrieving a Specific Effectivity of a Specific Process Plan
This example shows you how to retrieve information about a specific effectivity of a specific Process Plan. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('VR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202598')/Effectivities('OR:wt.effectivity.WTDatedEffectivity:204508')
Example: Retrieving All Security Labels of a Specific Process Plan
This example shows you how to retrieve information about all security labels assigned to a specific Process Plan. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('VR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202598')
Similarly, you can retrieve information about all security labels of a specific subtype of a Process Plan object.
Example: Retrieving the Assigned Option Set of a Specific Process Plan
This example shows you how to retrieve information about the option set assigned to a specific Process Plan. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('VR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202598')/AssignedOptionSet
URI with Expand
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('VR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:202598')?$expand=AssignedOptionSet
Similarly, you can retrieve information about the option set assigned to a specific subtype of a Process Plan object.
Retrieving Changes Associated with a Specific Process Plan
This example shows you how to retrieve changes associated with a specific Process Plan. Use the following GET URI.
URI
GET /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan: 384832)
In this example, the response also includes a canonical link, for example,
"href":"http://pwdcsv-wrs01d.ptcnet.ptc.com/Windchill/servlet/odata/v6/ChangeMgmt/Changeables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:384833')"
When you click the canonical link, you can retrieve information of the Change object.
Similarly, you can retrieve changes associated with a subtype of a Process Plan object by specifying the Process Plan subtype OID in the request URI.