Skip to main content

system.mes.oee.splitOeeProductionRecord

Description

Splits an OEE Production Record at a specified time. This action modifies the original record, shortening its duration, and creates a new record for the remaining time.

Syntax

system.mes.oee.splitOeeProductionRecord(oeeProductionRecordId, splitDate)

Parameters

ParameterTypeNullableDescription
oeeProductionRecordIdString (ULID)FalseThe ID of the OEE production record to split.
splitDateDateFalseThe date at which to split the record.

Returns

Returns a JSON representation of the new OeeProductionRecordDTO object that was split off from the original Oee production record.

NameTypeNullableDescriptionDefault Value
idStringTrueThe id of the OEE Production Recordnull
locationIdStringFalseIdentifier of the associated location where this OEE production record was capturednull
locationPathStringTruePath of the location where this OEE production record was capturednull
locationNameStringTrueName of the associated locationnull
statusStatusFalseStatus of the OEE production record (e.g., running, faulted, canceled, complete)UNKNOWN
startDateInstantFalseStart date and time of the OEE production recordInstant.now()
endDateInstantTrueEnd date and time of the OEE production recordnull
totalDurationSecDoubleFalseTotal duration of the OEE production record in seconds0.0
'performanceReasonId'StringTrueThe id of the associated performance reason, if applicablenull
'performanceReasonName'StringTrueThe name of the associated performance reason, if applicablenull
'performanceReasonPath'StringTrueThe path of the associated performance reason, if applicablenull
infeedCountDoubleFalseTotal number of infeed units during this record period0.0
expectedInfeedCountDoubleFalseExpected number of infeed units during this record period0.0
qualityStrategyOeeQualityStrategyFalseQuality Strategy for this OEE Production RecordWASTE_COUNT
outfeedCountDoubleFalseTotal number of outfeed units recorded during this period0.0
infeedCountUnitOfMeasureIdStringTrueIdentifier of the unit of measure for the infeed countnull
infeedCountUnitOfMeasureNameStringTrueName of the unit of measure for the infeed countnull
infeedCountUnitOfMeasureSymbolStringTrueSymbol of the unit of measure for the infeed countnull
infeedRateTimeUnitsTimeUnitFalseUnit of measure for the machine infeed rate & standard rateMINUTES
stateRecordIdStringTrueIdentifier of the associated state recordnull
standardRateDoubleTrueThe standard rate for this record0.0
productionOrderIdStringTrueThe id of the production order associated with this OEE production recordnull
productionOrderNameStringTrueThe name of the production order associated with this OEE production recordnull
notesStringTrueNotes associated with the OEE Production Recordnull
enabledbooleanTrueIndicates whether the OEE Production Record is enabledtrue
spare1StringTrueExtra field 1null
spare2StringTrueExtra field 2null
spare3StringTrueExtra field 3null

Code Examples

# Split an OEE production record at a specific date
splitDate = "2025-09-05 14:58:30"
splitDate = system.date.parse(splitDate, "yyyy-MM-dd HH:mm:ss")

system.mes.oee.splitOeeProductionRecord(
'01JAP8RJBN-8ZTPXSGY-J9GSDPE1',
splitDate
)