Sepasoft MES Module Suite
system.mes.workorder.getActualPersonnel(workOrderUUID, beginDate, endDate)
Get the Personnel associated with a particular Work Order.
Syntax
system.mes.workorder.getActualPersonnel(workOrderUUID, beginDate, endDate)
- Parameters
String workOrderUUID - The UUID of the Work Order to return the associated Material Lots for.
Date beginDate - Date (inclusive) when the Operations Request for this Work Order was executed. Pass in 'None' to use the default date [1 Jan, 1970 00:00:00].
Date endDate - Date (inclusive) when the Operations Request for this Work Order finished executing. Pass in 'None' to use the default date [1 Jan, 2200 00:00:00].
- Returns
MESList<MESObjectLink> personnelLinks - A list of MESObjectLinks that each have a reference to a person object.
- Scope
All
Code Example
Python |
#This code will print the Personnel associated with a Work Order personnelLinks = system.mes.workorder.getActualPersonnel('72b408bf-aaf4-420f-9ec5-4aa7fabbff83', None, None) for responsePersonLink in personnelLinks: print(responsePersonLink.getMESObject()) |
Output
Code |
ResponsePerson (95b4db27-6b52-44c0-8215-36b407e1c558, Ting, Tess, 2 parents, 0 children, 0 custom properties, 0 complex properties) |
Sepasoft MES Module Suite