Service - Manufacture Operation: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "= Overview = A Manufacture Operation is one manufacturing job that can have multiple work in progress details attached to it. = Repository = ... = Object Schemas = ; Additional Information: Per Service Schemas == manufactureOperation == <syntaxhighlight lang="JavaScript"> { objectType: "manufactureOperation", canDelete: false, belongTo: { serviceTag: "Business", objectType: "business" }, addOnDataStructure: [ { type:"versionedData", versionedDa...")
 
 
Line 27: Line 27:
fieldNames: {
fieldNames: {
manufactureOperationUserTag: {
manufactureOperationUserTag: {
type: "string",
type: "string"
storageResourceTags: ['myGraph']
},
},
}
}
Line 56: Line 55:
identifiers: [
identifiers: [
{
{
type: "identifier",
type: "partitionKey",
fieldName: "manufactureOperationId"
fieldName: "manufactureOperationId"
}
}

Latest revision as of 06:57, 23 March 2026

Overview

A Manufacture Operation is one manufacturing job that can have multiple work in progress details attached to it.

Repository

...

Object Schemas

Additional Information
Per Service Schemas

manufactureOperation

{
	objectType: "manufactureOperation",
	canDelete: false,
	belongTo: {
		serviceTag: "Business",
		objectType: "business"
	},
	addOnDataStructure: [
		{
			type:"versionedData",
			versionedDataLabel: "manufactureOperationDetail",
			storageResourceTag : "myGraph",
			fieldNames: {
				manufactureOperationUserTag: {
					type: "string"
				},
			}
        },	
	],
	storageResources: {
		myGraph: {
			storageType: "graph",
			graphServerTag: "GraphHandler"
		},
		"dynamo": {
			"storageType": "dynamoDB",
			"tableName": "manufactureOperation",
		}  
	},
	fieldNames: {
		manufactureOperationId: {
			type: "string",
			randomOnCreate: true,
			storageResourceTags: ['myGraph']
		},
		status: { // "inProgress"|"processing"|"complete"
			type: "string",
			storageResourceTags: ['dynamo']
		},
	},
	identifiers: [
		{
			type: "partitionKey",
			fieldName: "manufactureOperationId"
		}
	]
}

Relationships

hasWorkInProgress

{
	hasWorkInProgress: {
		canChangeToRelTypes: [
			{
				serviceTag:"ManufactureOperation",
				relationshipTag: "removedWorkInProgress"
			},
		],
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "ManufactureOperation",
						objectType: "manufactureOperation"
					},
					linkType: "one",
				},
				to: {
					objType: {
						serviceTag: "WorkInProgressManager",
						objectType: "workInProgress"
					},
					requiredOnCreate: true,
					linkType: "many"
				}
			},
		]
	}
}

removedWorkInProgress

{
	removedWorkInProgress: {
		canChangeToRelTypes: [
			{
				serviceTag:"ManufactureOperation",
				relationshipTag: "hasWorkInProgress"
			},
		],
		storageResources: {
			myGraph: {
				storageType: "graph",
				graphServerTag: "GraphHandler"			
			}
		},
		links: [
			{
				storageResourceTags: ["myGraph"],
				from: {
					objType: {
						serviceTag: "ManufactureOperation",
						objectType: "manufactureOperation"
					},
					linkType: "one",
				},
				to: {
					objType: {
						serviceTag: "WorkInProgressManager",
						objectType: "workInProgress"
					},
					linkType: "many"
				}
			},
		]
	}
}

flowSchemas

completeManufactureOperation

  • sets status to processing which locks adding or removing workInProgress links until completed

reopenManufactureOperation

  • changes a ManufactureOperation from complete to inProgress
  • if comAcc plugin connected needs to check Accounting entries not locked before proceeding

Working documents

Manufacture Operation