Sepasoft MES Module Suite
system.mes.validateMESObjectName(mesObjectTypeName,mesObjectUUID,name)
Validates the proposed name for the specified MES object type. If the name is not valid, an exception will be thrown.
Syntax
system.mes.validateMESObjectName(mesObjectTypeName,mesObjectUUID,name)
- Parameters
String MES Object Type Name - The MES object type to validate the name for. Because names must be unique among the category of MES object type, this is required. See MES Object Type Name for more details.
String mesObjectUUID - When validating the name of an existing MES object, this is the UUID for it so that it will ignore duplicate name check with itself. Otherwise, just pass an empty string.
String name - Proposed name to validate
- Returns
Nothing
- Scope
All
Code Snippet
Python |
#This is an example for the validation. system.mes.validateMESObjectName('StorageZone','ccd29f94-953a-4343-a9da-912755f60abe','Vinegar Tank 1') |
Sepasoft MES Module Suite