Sepasoft MES Module Suite
system.mes.batch.queue.getMessages(unitFilter)
If batchQueueEntry is provided, return a list of messages for all units of a batch. If a unit filter is provided, return a list of messages for all batches executing in the units that match the unit filter.
getMessages(unitFilter) → List
Syntax
getMessages(unitFilter)
Parameters
String unitFilter - The unit path filter to determine the units to return the messages for. This is the equipment path and must follow the format of EnterpriseSiteAreaProcess CellUnit and can contain wildcard characters. Example: ABC CoNorth SiteBld AProcessingMixer *
Returns
A list of BatchMessage objects.
Scope
All
Acknowledge Message
Sets acknowledgement on Value Prompt Phase and User Message Phase.
Python |
batchID = 'batch123' bqe = system.mes.batch.queue.getEntry(batchID) msgs = system.mes.batch.queue.getMessages(bqe) for m in msgs: # P2 is a Value Prompt step if m.stepName=='P2' and m.isAcknowledged() == False: x = m.assignValue(9,'admin') system.mes.batch.queue.assignMessageValue(m) # P8 is a User Message step if m.stepName=='P8' and m.isAcknowledged() == False: m.setAckBy('admin') system.mes.batch.queue.acknowledgeMessage(m) |
Sepasoft MES Module Suite