Sepasoft MES Module Suite
Operations Schedule
When an operation is scheduled, this object is created which holds information regarding the requested operation(s) and required production count or duration. If the operation(s) were scheduled against a work order, a reference to the work order is added to the Operations Request object. A category property allows you to prioritize or hold schedule events by setting the category to, as an example, 'Hold' or 'PRIORITY 10' or any custom category you choose. This object is derived from the MESAbstractObject and inherits all the exposed properties, methods and events for that object.
This object is created when an operation is scheduled using the MES Schedule View component. It may also be created using the following script functions:
Use
The following script functions use or return this type of object.
Object Functions
- getScheduleCategory()
- getScheduleDurationSec()
- getScheduleProductionCount()
- getSchedulePublishDate()
- getScheduleType()
- setScheduleCategory(scheduleCategory)
- setScheduleDurationSec(scheduleDuration)
- setScheduleProductionCount(productionCount)
- setSchedulePublishDate(schedulePublishDate)
- setScheduleType(scheduleType)
Python |
# when updating an Operations Schedule you must load the schedule and save it with saveSchedule # this way all associated objects are properly notified that a schedule change has been made schedItemList = system.mes.loadSchedule(schedUUID) for item in schedItemList: if item.getMESObjectTypeName() == 'OperationsSchedule': item.setScheduleProductionCount(schedQTY) system.mes.saveSchedule(schedItemList) # save the updated schedule items ## Do not load the operations schedule by itself to update the schedule object # schedObj = system.mes.loadMESObject(schedUUID) # schedObj.setScheduleProductionCount(schedQTY) # system.mes.saveMESObject(schedObj) |
This object inherits the AbstractMESObject functions.
Object Events
Objects have events associated with them that allow for custom scripts to be added whenever the event occurs.
|
Event Name
|
Description
|
|---|---|
| BeginSchedule |
The event is fired when an Operations Schedule has begun. If no script is entered, then the default handler will be executed. To execute the default handler from within the script entered here, add a script line: event.runDefaultHandler() |
| EndSchedule |
The event is fired when an Operations Schedule has ended. If no script is entered, then the default handler will be executed. To execute the default handler from within the script entered here, add a script line: event.runDefaultHandler() |
| New |
The event is fired when a new instance of an Operations Schedule object is created. If no script is entered, then the default handler will be executed. To execute the default handler from within the script entered here, add a script line: event.runDefaultHandler() |
| UpdateProgress |
The event is fired during the update progress of an Operations Schedule. If no script is entered, then the default handler will be executed. To execute the default handler from within the script entered here, add a script line: event.runDefaultHandler() |
Sepasoft MES Module Suite