Skip to main content

system.mes.oee.getOeeProductionRecordTimeline

Description

Retrieves production timeline data for OEE production records, providing a chronological view of production activities for a specific location within a time range.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getOeeProductionRecordTimeline(locationIdOrPath, startDate, endDate)

Parameters

ParameterTypeNullableDescription
locationIdOrPathStringFalseThe location ID or path to get timeline data for.
startDateDateFalseStart date for the timeline.
endDateDateFalseEnd date for the timeline.

Returns

Returns a list of JSON representations of OeeProductionRecordDTO objects, adjusted to the specified time window.

Each object has the following properties:

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

from java.util import Date
from java.util.concurrent import TimeUnit

# Get production timeline
location = "Enterprise/Site/Area/Line1"
endTime = Date()
startTime = Date(endTime.getTime() - TimeUnit.HOURS.toMillis(8))

timeline = system.mes.oee.getOeeProductionRecordTimeline(
location,
startTime,
endTime
)

# Output the timeline data
print(timeline)