Sepasoft MES Module Suite
system.mes.spc.sample.getCreateByDefName(sampleUUID, defName, locationPath)
Return a sample that matches the sampleUUID parameter. If not found, create and return a new sample based on the sample definition that matches the definitionName parameter.
The newly created sample is initialized for the location specified by the locationPath parameter.
Syntax
system.mes.spc.sample.getCreateByDefName(sampleUUID, defName, locationPath)
- Parameters
String sampleUUID - Sample UUID to lookup.
String defName - Existing sample definition name to base the new sample on.
String locationPath - A valid equipment path to a location.
- Returns
Sample Object - A reference to the existing sample or the newly created sample.
- Scope
All
Sepasoft MES Module Suite