Sepasoft MES Module Suite
System.mes.batch.phase.getCount(parentLink, searchPattern)
Return the number of batch phase object exist for the specified parent and search pattern.
getCount(parentLink, searchPattern) → int
Syntax
getCount(parentLink, searchPattern)
- Parameters
MESObjectLink parentLink - The link to the parent phase class object to return the child count. If None is provided for this parameter, then it will return the child count of the BatchRootPhase object.
String searchPattern - An optional search pattern to filter the return count by. It can contain * and ? wildcard characters. Example: Add Ingredient *
- Returns
The number of batch phase objects
- Scope
All
Code Examples
Code |
phaseClassName = 'Custom Phases' phaseClass = system.mes.batch.phase.getClassLink(phaseClassName) count = system.mes.batch.phase.getCount(phaseClass, 'myDocument') print count |
Output
Code |
>>> 4 >>> |
Sepasoft MES Module Suite