Perform Inline Work In Process Inspection

If you want to complete an Inline work in process inspection, you need to use the Manufacturing and Quality Management REST resources. For example, if Richard Jones wants to inspect a category of laptops using an inspection plan defined in the quality management application, Richard can first create an inspection plan using the Inspection Plans resource with required specifications and criteria. Then Richard can perform an inline work in process inspection against the inspection plan at each operation of a work order using the Inspection Events resource. Richard can create a work order operation transaction using the Operation Transactions resource and finally associate the work order operation transaction with the inspection using the Inspection Results resource.

Let's discuss a scenario, where Richard Jones is trying to perform an inline work in process inspection. Richard needs to:

  1. Create a work in process inspection plan
  2. Create a work in process inspection
  3. Update the sample result in the inspection (if required)
  4. Create a manufacturing transaction
  5. Associate the work order transaction with an inspection

Create a Work In Process Inspection Plan

In this scenario, Richard can create a work in progress inspection plan with fixed count inspection level Fixed Count 3 for a purchasing catalog and laptops category.

Example URL

Use this resource URL format.

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/inspectionPlans

Example Request

Here's an example of the request body in JSON format.

{
	"Name" : "WIP Item Catalog Plan",
	"Type" : "WORK_IN_PROCESS",
	"OrganizationCode" : "M1",
	"VersionNumber" : "1", 
	"Description" : "1st Version",
	"EffectiveStartDate" : "2019-07-29T09:08:38+00:00",
	"Status" : "APPROVED", 
	"CatalogName" : "Purchasing",
	"CategoryName" : "Laptops",
	"Owner" : "QUALITY_ENGINEER",
	"OptionalFlag" : "N",
	"InspectionLevelName" : "Fixed Count 3",
	"specifications" :
	[
	{
		"UserSequence" : 10,
		"CharacteristicName" : "Properly Labeled",
		"OptionalFlag" : "N",
		"DefaultValueFlag" : "Y"
	},

	{
		"UserSequence" : 20,
		"CharacteristicName" : "Length",
		"OptionalFlag" : "N",
		"DefaultValueFlag" : "Y"
	} 
	],
	"criteria" :
	[
	{
		"OperationSequenceNumber": 10,
		"DispatchStatus" : "READY"
	},
	{ 
		"OperationSequenceNumber": 20,
		"DispatchStatus" : "READY"
	},
	{
		"OperationSequenceNumber": 30,
		"DispatchStatus" : "READY"
	}
	]
}

Example Response

Here's an example of the response body in JSON format. The response contains inspection plan header link indicated as self and specification and criteria details.

{
	"InspectionPlanId": 300100340606369,
	"OrganizationId": 207,
	"VersionNumber": "1",
	"Name": "WIP Item Catalog Plan",
	"Description": "1st Version",
	"Type": "WORK_IN_PROCESS",
	"Status": "APPROVED",
	"EnabledFlag": true,
	"EffectiveStartDate": "2019-07-29T09:08:38+00:00",
	"EffectiveEndDate": null,
	"InspectionLevelId": 300100210906442,
	"InventoryItemId": null,
	"ItemRevision": null,
	"CategorySetId": 2,
	"CategoryId": 1,
	"WorkCenterId": null,
	"ResourceId": null,
	"Owner": "QUALITY_ENGINEER",
	"OptionalFlag": false,
	"Approver": "QUALITY_ENGINEER",
	"OrganizationCode": "M1",
	"WorkCenter": null,
	"ResourceName": null,
	"ItemNumber": null,
	"CatalogName": "Purchasing",
	"CategoryName": "Laptops",
	"InspectionLevelName": " Fixed Count 3",
	"InspectionLevelDescription": "FC#3",
	"CreatedBy": "QUALITY_ENGINEER",
	"CreationDate": "2020-11-04T08:42:13+00:00",
	"LastUpdateDate": "2020-11-04T08:42:23.660+00:00",
	"LastUpdatedBy": "QUALITY_ENGINEER",
	"criteria": [
		{
			"CriteriaId": 300100340606372,
			"InspectionPlanId": 300100340606369,
			"InspectionPlanType": "WORK_IN_PROCESS",
			"OperationSequenceNumber": 10,
			"OperationCode": null,
			"DispatchStatus": "READY",
			"DocumentType": null,
			"SupplierId": null,
			"SupplierSiteId": null,
			"SourceOrganizationId": null,
			"SubinventoryCode": null,
			"LocatorId": null,
			"EnabledFlag": true,
			"CreatedBy": "QUALITY_ENGINEER",
			"CreationDate": "2020-11-04T08:42:21.190+00:00",
			"LastUpdatedBy": "QUALITY_ENGINEER",
			"LastUpdateDate": "2020-11-04T08:42:24.432+00:00",
			"SubinventoryId": null,
			"Supplier": null,
			"ProcurementBUId": null,
			"ProcurementBUCode": null,
			"SupplierSite": null,
			"Locator": null,
			"SourceOrganization": null,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372",
					"name": "criteria",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372",
					"name": "criteria",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
					"name": "inspectionPlans",
					"kind": "item"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/SourceOrgaizationLOV",
					"name": "SourceOrgaizationLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/SupplierLOV",
					"name": "SupplierLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/SubInventoryLOV",
					"name": "SubInventoryLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/DispatchStatusLOV",
					"name": "DispatchStatusLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/LocatorLOV",
					"name": "LocatorLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/OperationCodeLOV",
					"name": "OperationCodeLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/SupplierSiteLOV",
					"name": "SupplierSiteLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606372/lov/DocumentTypeLOV",
					"name": "DocumentTypeLOV",
					"kind": "collection"
				}
			]
		},
		{
			"CriteriaId": 300100340606373,
			"InspectionPlanId": 300100340606369,
			"InspectionPlanType": "WORK_IN_PROCESS",
			"OperationSequenceNumber": 20,
			"OperationCode": null,
			"DispatchStatus": "READY",
			"DocumentType": null,
			"SupplierId": null,
			"SupplierSiteId": null,
			"SourceOrganizationId": null,
			"SubinventoryCode": null,
			"LocatorId": null,
			"EnabledFlag": true,
			"CreatedBy": "QUALITY_ENGINEER",
			"CreationDate": "2020-11-04T08:42:21.534+00:00",
			"LastUpdatedBy": "QUALITY_ENGINEER",
			"LastUpdateDate": "2020-11-04T08:42:24.463+00:00",
			"SubinventoryId": null,
			"Supplier": null,
			"ProcurementBUId": null,
			"ProcurementBUCode": null,
			"SupplierSite": null,
			"Locator": null,
			"SourceOrganization": null,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373",
					"name": "criteria",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373",
					"name": "criteria",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
					"name": "inspectionPlans",
					"kind": "item"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/SourceOrgaizationLOV",
					"name": "SourceOrgaizationLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/SupplierLOV",
					"name": "SupplierLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/SubInventoryLOV",
					"name": "SubInventoryLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/DispatchStatusLOV",
					"name": "DispatchStatusLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/LocatorLOV",
					"name": "LocatorLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/OperationCodeLOV",
					"name": "OperationCodeLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/SupplierSiteLOV",
					"name": "SupplierSiteLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606373/lov/DocumentTypeLOV",
					"name": "DocumentTypeLOV",
					"kind": "collection"
				}
			]
		},
		{
			"CriteriaId": 300100340606374,
			"InspectionPlanId": 300100340606369,
			"InspectionPlanType": "WORK_IN_PROCESS",
			"OperationSequenceNumber": 30,
			"OperationCode": null,
			"DispatchStatus": "READY",
			"DocumentType": null,
			"SupplierId": null,
			"SupplierSiteId": null,
			"SourceOrganizationId": null,
			"SubinventoryCode": null,
			"LocatorId": null,
			"EnabledFlag": true,
			"CreatedBy": "QUALITY_ENGINEER",
			"CreationDate": "2020-11-04T08:42:21.543+00:00",
			"LastUpdatedBy": "QUALITY_ENGINEER",
			"LastUpdateDate": "2020-11-04T08:42:24.467+00:00",
			"SubinventoryId": null,
			"Supplier": null,
			"ProcurementBUId": null,
			"ProcurementBUCode": null,
			"SupplierSite": null,
			"Locator": null,
			"SourceOrganization": null,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374",
					"name": "criteria",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374",
					"name": "criteria",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
					"name": "inspectionPlans",
					"kind": "item"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/SourceOrgaizationLOV",
					"name": "SourceOrgaizationLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/SupplierLOV",
					"name": "SupplierLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/SubInventoryLOV",
					"name": "SubInventoryLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/DispatchStatusLOV",
					"name": "DispatchStatusLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/LocatorLOV",
					"name": "LocatorLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/OperationCodeLOV",
					"name": "OperationCodeLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/SupplierSiteLOV",
					"name": "SupplierSiteLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria/300100340606374/lov/DocumentTypeLOV",
					"name": "DocumentTypeLOV",
					"kind": "collection"
				}
			]
		}
	],
	"specifications": [
		{
			"SpecificationId": 300100340606370,
			"InspectionPlanId": 300100340606369,
			"UserSequence": 10,
			"CharacteristicId": 300100151162609,
			"UOMCode": null,
			"TargetValue": "Yes",
			"CreatedBy": "QUALITY_ENGINEER",
			"CreationDate": "2020-11-04T08:42:20.105+00:00",
			"LastUpdatedBy": "QUALITY_ENGINEER",
			"LastUpdateDate": "2020-11-04T08:42:24.470+00:00",
			"MaximumValueDate": null,
			"MinimumValueDate": null,
			"TargetValueDate": null,
			"CharacteristicName": "Properly Labelled",
			"MaximumValueNumber": null,
			"MinimumValueNumber": null,
			"TargetValueNumber": null,
			"ItemTargetValue": null,
			"OptionalFlag": false,
			"DefaultValueFlag": true,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370",
					"name": "specifications",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370",
					"name": "specifications",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
					"name": "inspectionPlans",
					"kind": "item"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370/lov/CharacteristicValueLOV",
					"name": "CharacteristicValueLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370/lov/CharacteristicNameLOV",
					"name": "CharacteristicNameLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370/lov/UnitOfMeasureLOV",
					"name": "UnitOfMeasureLOV",
					"kind": "collection"
				},
				{
					"rel": "child",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606370/child/attachments",
					"name": "attachments",
					"kind": "collection"
				}
			]
		},
		{
			"SpecificationId": 300100340606371,
			"InspectionPlanId": 300100340606369,
			"UserSequence": 20,
			"CharacteristicId": 300100151162606,
			"UOMCode": "Inch",
			"TargetValue": "8.996",
			"CreatedBy": "QUALITY_ENGINEER",
			"CreationDate": "2020-11-04T08:42:21.015+00:00",
			"LastUpdatedBy": "QUALITY_ENGINEER",
			"LastUpdateDate": "2020-11-04T08:42:24.489+00:00",
			"MaximumValueDate": null,
			"MinimumValueDate": null,
			"TargetValueDate": null,
			"CharacteristicName": "Length",
			"MaximumValueNumber": 11.99,
			"MinimumValueNumber": 3.77,
			"TargetValueNumber": 8.996,
			"ItemTargetValue": null,
			"OptionalFlag": false,
			"DefaultValueFlag": true,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371",
					"name": "specifications",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371",
					"name": "specifications",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
					"name": "inspectionPlans",
					"kind": "item"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371/lov/CharacteristicValueLOV",
					"name": "CharacteristicValueLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371/lov/CharacteristicNameLOV",
					"name": "CharacteristicNameLOV",
					"kind": "collection"
				},
				{
					"rel": "lov",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371/lov/UnitOfMeasureLOV",
					"name": "UnitOfMeasureLOV",
					"kind": "collection"
				},
				{
					"rel": "child",
					"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications/300100340606371/child/attachments",
					"name": "attachments",
					"kind": "collection"
				}
			]
		}
	],
	"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
			"name": "inspectionPlans",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369",
			"name": "inspectionPlans",
			"kind": "item"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/ItemNumberLOV",
			"name": "ItemNumberLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/InspectionPlanStatusLOV",
			"name": "InspectionPlanStatusLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/InspectionPlanTypeLOV",
			"name": "InspectionPlanTypeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/CatalogLOV",
			"name": "CatalogLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/OrganizationCodeLOV",
			"name": "OrganizationCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/InspectionLevelLOV",
			"name": "InspectionLevelLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/OwnerLOV",
			"name": "OwnerLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/ItemRevisionLOV",
			"name": "ItemRevisionLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/CategoryLOV",
			"name": "CategoryLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/WorkCenterLOV",
			"name": "WorkCenterLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/ApproverLOV",
			"name": "ApproverLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/lov/ResourceCodeLOV",
			"name": "ResourceCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/attachments",
			"name": "attachments",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/criteria",
			"name": "criteria",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionPlans/300100340606369/child/specifications",
			"name": "specifications",
			"kind": "collection"
		}
	]
}

Create a Work In Process Inspection

In this scenario, Richard can use a work order operation in the Ready state matching the criteria defined in the inspection plan and perform an inspection using the Inspection Events resource to create an inspection record and capture result values against each sample.

Example URL

Use this resource URL format.

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/inspectionEvents

Example Request

Here's an example of the request body in JSON format.

{
	"EventType":"WIP",
	"Inline":"Y",
	"InspectedBy":"QUALITY_ENGINEER",
	"InspectionDate":"2020-11-04",
	"OrganizationId":"207",
	"ItemNumber": "Laptop_Model_1",
	"QuantityRequested":10,
	"WorkOrderNumber":"M1-1223",
	"OperationSequenceNumber":"10",
	"DispatchStatus":"READY",
	"WIPInspectionPlanName":"WIP Item Catalog Plan"
}

Example Response

Here's an example of the response body in JSON format. The inspection status is COMPLETE and the specifications in a plan have TargetValue set to Yes. Richard can override the result values if required by performing a PATCH on the sample result.

{
	"CategoryId": null,
	"CategorySetId": null,
	"CustomerId": null,
	"DispatchStatus": "READY",
	"DispositionDate": "2020-11-04T08:48:53.150+00:00",
	"DocumentLineNumber": null,
	"DocumentNumber": null,
	"DocumentScheduleNumber": null,
	"DocumentType": null,
	"Draft": "Y",
	"EventType": "WIP",
	"Inline": "Y",
	"InspectedBy": "QUALITY_ENGINEER",
	"InspectionDate": "2020-11-04T00:00:00+00:00",
	"InspectionLevelId": 300100210906442,
	"InspectionPlanId": 300100340606369,
	"InspectionStatus": "COMPLETE",
	"InterfaceTransactionId": null,
	"InventoryItemId": 100100035462323,
	"IpCriteriaId": null,
	"IpEventId": 300100340608679,
	"LocatorId": null,
	"LotNumber": null,
	"ObjectVersionNumber": 4,
	"OperationSequenceNumber": 10,
	"OrganizationId": 207,
	"OriginalDisposition": "ACCEPT",
	"QuantityAccepted": 3,
	"QuantityInspected": 3,
	"QuantityRejected": 0,
	"QuantityRequested": 10,
	"ReceiptNumber": null,
	"ResourceId": null,
	"RevisionId": null,
	"SamplingQuantity": 3,
	"ShipmentHeaderId": null,
	"ShipmentLineId": null,
	"SourceLineQuantity": null,
	"SourceOrgId": null,
	"SubinventoryCode": null,
	"SupplierId": null,
	"SupplierLotNumber": null,
	"SupplierSiteId": null,
	"TransactionType": null,
	"UOMCode": "Ea",
	"WoOperationId": 51379,
	"WorkAreaId": null,
	"WorkCenterId": null,
	"WorkOrderId": 58448,
	"OrganizationCode": "M1",
	"WorkOrderNumber": "M1-1223",
	"ItemNumber": "Laptop_Model_1",
	"WIPInspectionPlanName": "WIP Item Catalog Plan",
	"ItemRevision": null,
	"WoOperationCode": null,
	"SubinventoryId": null,
	"Locator": null,
	"INVInspectionPlanName": null,
	"ResourceInspectionPlanName": null,
	"WorkCenterCode": null,
	"ResourceCode": null,
	"InspectionLevelName": "Fixed Count 3",
	"isSkiplotEnabled": "N",
	"SamplingRate": null,
	"NumofLotsInspect": null,
	"NumofLots": null,
	"InspectionPlanType": "WORK_IN_PROCESS",
	"InspectionPlanVersion": "1",
	"InspectionPlanVersionDescription": "1st Version",
	"isSamplingEnabled": "Y",
	"FromOrganizationId": null,
	"ItemDescription": null,
	"VendorId": null,
	"VendorSiteId": null,
	"SourceDocumentCode": null,
	"EventTypeLOV": null,
	"InspectAllSamplesFlag": null,
	"SerialResultsEntryFlag": null,
	"SourceOrganizationCode": null,
	"Supplier": null,
	"SupplierSite": null,
	"InspectionName": "M1-1223Laptop_Model_1 ",
	"RCVInspectionPlanName": null,
	"WoOperationName": null,
	"AcceptanceNumber": null,
	"NonConformanceCount": null,
	"RejectionNumber": null,
	"SampleSizeCode": null,
	"TotalSampleQuantity": null,
	"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679",
			"name": "inspectionEvents",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000478"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679",
			"name": "inspectionEvents",
			"kind": "item"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/WorkCenterCodeLOV",
			"name": "WorkCenterCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/SubInventoryLOV",
			"name": "SubInventoryLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/InventoryItemLOV",
			"name": "InventoryItemLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/WorkOrderNumberLOV",
			"name": "WorkOrderNumberLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/ItemRevisionLOV",
			"name": "ItemRevisionLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/ResourceCodeLOV",
			"name": "ResourceCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/ResourceInspPlanNameLOV",
			"name": "ResourceInspPlanNameLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/WoOperationCodeLOV",
			"name": "WoOperationCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/InspectedByLOV",
			"name": "InspectedByLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/WIPInspPlanNameLOV",
			"name": "WIPInspPlanNameLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/LotNumberLOV",
			"name": "LotNumberLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/LocatorLOV",
			"name": "LocatorLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/OrganizationCodeLOV",
			"name": "OrganizationCodeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/InspectionTypeLOV",
			"name": "InspectionTypeLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/lov/INVInspPlanNameLOV",
			"name": "INVInspPlanNameLOV",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Attachments",
			"name": "Attachments",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/EventDisposition",
			"name": "EventDisposition",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample",
			"name": "Sample",
			"kind": "collection"
		}
	]
}

Update the Sample Result in the Inspection

In this scenario, the inspection created previously will be in COMPLETE status as inspection plan specifications have TargetValue set to Yes, so the result value will be set to the default target value defined in the inspection plan. This is an optional step and is required if Richard wants to override the default result value. If the result values are updated, Disposition will be updated accordingly by the application.

  • Get inspection event header

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/
  • Using event header, get a sample child URL

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/
  • Get context URL of the sample for which result value has to be updated

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/
  • Using sample context URL, get a SampleDisposition child URL

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/child/SampleDisposition/
  • Get context URL of the sample disposition for which result value has to be updated

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/child/SampleDisposition/{SampleDispositionId}/
  • Using sample disposition context URL, get the SampleResult child URL

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/child/SampleDisposition/{SampleDispositionId}/child/SampleResult/
  • Get context URL of the sample result for which the result value has to be updated

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/child/SampleDisposition/{SampleDispositionId}/child/SampleResult/{SampleResultId}/
  • Perform PATCH operation on the sample result context URL to update the result value

    https://servername/fscmRestApi/resources/version/inspectionEvents/{ipEventId}/child/Sample/{SampleId}/child/SampleDisposition/{SampleDispositionId}/child/SampleResult/{SampleResultId}/

Example URL

Use this resource URL format.

PATCH

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/ inspectionEvents/ipEventId/child/Sample/SampleId/child/SampleDisposition/SampleDispositionId/child/SampleResult/SampleResultId}/

Example Request

Here's an example of the request body in JSON format. Richard can update the result value based on Data Type of the associated characteristic; for example, ResultValueNumber for NUMBER, ResultValueChar for validated CHARACTER, ResultValueCharNonValidated for a non-validated CHARACTER, and ResultValueDate for date.

{
	"ResultValueNumber":10
}

Example Response

Here's an example of the response body in JSON format. The evaluation will be modified based on result value and specification minimum, maximum, and target defined in the inspection plan.

{
	"CharacteristicId": 300100151162606,
	"Comments": null,
	"Disposition": "ACCEPT",
	"Evaluation": "Y",
	"InSpecification": "Y",
	"InspectionDate": "2020-11-04T08:48:49.648+00:00",
	"IpEventId": 300100340608679,
	"ObjectVersionNumber": 2,
	"Quantity": 1,
	"ResultValueChar": null,
	"ResultValueDate": null,
	"ResultValueNumber": 10,
	"SampleId": 300100340608688,
	"SampleResultId": 300100340608690,
	"UOMCode": "Inch",
	"UserSequence": 20,
	"CharacteristicName": "Length",
	"DataType": "NUMBER",
	"ResultValueCharNonValidated": null,
	"OptionalFlag": false,
	"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690",
			"name": "SampleResult",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690",
			"name": "SampleResult",
			"kind": "item"
		},
		{
			"rel": "parent",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689",
			"name": "SampleDisposition",
			"kind": "item"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690/lov/CharacteristicValueLOV",
			"name": "CharacteristicValueLOV",
			"kind": "collection"
		},
		{
			"rel": "lov",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690/lov/CharacteristicNameLOV",
			"name": "CharacteristicNameLOV",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690/child/Attachments",
			"name": "Attachments",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inspectionEvents/300100340608679/child/Sample/300100340608688/child/SampleDisposition/300100340608689/child/SampleResult/300100340608690/child/ResultEvaluation",
			"name": "ResultEvaluation",
			"kind": "collection"
		}
	]
}

Create a Manufacturing Transaction

In this scenario, Richard can create a manufacturing work order operation transaction for the operation that is being inspected.

Example URL

Use this resource URL format.

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/operationTransactions

Example Request

Here's an example of the request body in JSON format.

{
	"SourceSystemCode" : "SAP",
	"SourceSystemType" : "EXTERNAL",
	"OperationTransactionDetail" : [ {
		"SourceSystemCode" : "SAP",
		"OrganizationCode" : "M1",
		"TransactionDate" : "2020-11-03T11:12:30-07:00",
		"TransactionQuantity" : 10,
		"TransactionUnitOfMeasure" : "Inches",
		"WoOperationSequenceNumber" : 10,
		"WorkOrderNumber" : "M1-1223",
		"FromDispatchState" : "READY",
		"ToDispatchState" : "COMPLETE"
	} ]
}

Example Response

Here's an example of the response body in JSON format.

{
	"SourceSystemType": "EXTERNAL",
	"SourceSystemCode": "SAP",
	"ErrorsExistFlag": "false",
	"OperationTransactionDetail": [
		{
			"WoOperationTransactionId": 109652,
			"SourceSystemCode": "SAP",
			"OrganizationCode": "M1",
			"WorkOrderNumber": "M1-1223",
			"WoOperationSequenceNumber": 10,
			"TransactionDate": "2020-11-03T18:12:30+00:00",
			"FromDispatchState": "READY",
			"ToDispatchState": "COMPLETE",
			"TransactionQuantity": 10,
			"TransactionUOMCode": null,
			"TransactionUnitOfMeasure": "Inches",
			"SecondaryTransactionQuantity": null,
			"ComplSubinventoryCode": null,
			"ReasonCode": null,
			"TransactionNote": null,
			"PONumber": null,
			"POLineNumber": null,
			"SoldToLegalEntityName": null,
			"CompletionLocator": null,
			"ErrorMessages": "",
			"ErrorMessageNames": "",
			"InspectionEventId": null,
			"CountryOfOriginCode": null,
			"links": [
				{
					"rel": "self",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail/300100340608970",
					"name": "OperationTransactionDetail",
					"kind": "item",
					"properties": {
						"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
					}
				},
				{
					"rel": "canonical",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail/300100340608970",
					"name": "OperationTransactionDetail",
					"kind": "item"
				},
				{
					"rel": "parent",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969",
					"name": "operationTransactions",
					"kind": "item"
				},
				{
					"rel": "child",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail/300100340608970/child/OperationTransactionDFF",
					"name": "OperationTransactionDFF",
					"kind": "collection"
				},
				{
					"rel": "child",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail/300100340608970/child/TransactionLot",
					"name": "TransactionLot",
					"kind": "collection"
				},
				{
					"rel": "child",
					"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail/300100340608970/child/TransactionSerial",
					"name": "TransactionSerial",
					"kind": "collection"
				}
			]
		}
	],
	"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969",
			"name": "operationTransactions",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969",
			"name": "operationTransactions",
			"kind": "item",
			"properties": {
				"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
			}
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/operationTransactions/300100340608969/child/OperationTransactionDetail",
			"name": "OperationTransactionDetail",
			"kind": "collection"
		}
	]
}

Associate a Work Order Transaction to Inspection

In this scenario, Richard can associate the work order TransactionId generated in the previous step to the inspection that was created for inline inspection. The DRAFT flag in the inspection is changed from Y to N to indicate the inspection completion.

Example URL

Use this resource URL format.

POST

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' 
"https://servername/fscmRestApi/resources/version/ inspectionResults

Example Request

Here's an example of the request body in JSON format.

{
	"InspectionEventId" : "300100340608679",
	"WOTransactionId" : 109652,
	"TransactionQuantity" : "10",
	"DispositionStatus" : "ACCEPT"
}

Example Response

Here's an example of the response body in JSON format.

{
	"InspectionEventId": "300100340608679",
	"RcvTransactionId": null,
	"RcvTransactionInterfaceId": null,
	"WOTransactionId": "109652",
	"TransactionQuantity": "10",
	"DispositionStatus": "ACCEPT",
	"SerialNumber": null,
	"Status": "S",
	"ErrorDetails": "Record inserted into the database and yet to commit the transaction",
	"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/inspectionResults/300100340608679",
			"name": "inspectionResults",
			"kind": "item"
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/inspectionResults/300100340608679",
			"name": "inspectionResults",
			"kind": "item"
		}
	]
}