system.mes.spc.analysis.decodeList(input)

Sepasoft MES Module Suite

system.mes.spc.analysis.decodeList(input)

Decode a string that can represent a SPC filter, control limits, SPC rules (signals), etc. into a java List object. The input string will be parsed on either the comma or pipe (|) character and each parsed result will be added to the returned List object.

Warning

Scripting Function modifications in

MES 3.79.3 RC 5 and later
MES 3.81.4 RC 5 and later

Syntax

system.mes.spc.analysis.decodeList(input)

  • Parameters

String input - The string value to parse.

  • Returns

List<String> - A java List object containing the parsed strings.

  • Scope

All

Code Example

Python
savedAnalysis = system.mes.spc.analysis.loadStoredSPC('Case Inspection Analysis')
print 'filter object:
',savedAnalysis.getFilters()
print 'filter decoded:
',system.mes.spc.analysis.decodeList(savedAnalysis.getFilters())
>>> 
filter object:
FromDate=2023-03-10 16:11:18 -0800|ToDate=2023-03-10 17:11:18 -0800|Location=Enterprise\El Dorado Hills\Packaging Area\Packaging Line 1\Inspection Station 1
filter decoded:
[FromDate=2023-03-10 16:11:18 -0800, ToDate=2023-03-10 17:11:18 -0800, Location=Enterprise\El Dorado Hills\Packaging Area\Packaging Line 1\Inspection Station 1]
>>> 



Sepasoft MES Module Suite