v2.47.1 - ISQ query in OI file name

This commit is contained in:
2022-12-06 08:22:00 -07:00
parent 6a63632bc7
commit c4bf1dcf21
6 changed files with 84 additions and 30 deletions

16
Adaptation/.vscode/Reactor.js vendored Normal file
View File

@ -0,0 +1,16 @@
// (self.length != 0) ?
// self :
// (getContextData('2', 'cds.PROCESS_JOBID', '') == '-') ?
// self :
// getContextData('2', 'cds.PROCESS_JOBID', '')
getValue(self, self.length, $('dcp.TENCOR1/pcl/MesEntity', ''), $('dcp.TENCOR1/pcl/asdf', ''), getContextData('2', 'cds.PROCESS_JOBID', ''));
function getValue(value, length, mesEntity, recipe, processJobId) {
if (recipe.toUpperCase() === 'adsf')
return mesEntity;
else if (length !== 0 || processJobId === '-')
return value;
else
return processJobId;
}

16
Adaptation/.vscode/psn.js vendored Normal file
View File

@ -0,0 +1,16 @@
// (self.length != 0) ?
// self :
// (getContextData('2', 'cds.PRODUCT', '') == '-') ?
// self :
// getContextData('2', 'cds.PRODUCT', '')
getValue(self, self.length, getContextData('2', 'cds.PRODUCT', ''), $('dcp.TENCOR1/pcl/asdf', ''));
function getValue(value, length, product, recipe) {
if (recipe.toUpperCase() === 'asdf')
return 'asdf';
else if (length !== 0 || product === '-')
return value;
else
return product;
}