Skip to main content

system.kanoa.schedule.checkForScheduleOverlap(scheduleBlockInfo, scheduleConfig, rangeStart, rangeEnd)

Checks a new event to schedule or modify, against the asset's current schedule and shift schedule if required and returns a list of start and endDates available


Parameters

scheduleBlockInfo Dictionary

- assetPathString
- endDateDateTime
- startDateDateTime

scheduleConfig Dictionary

- intelligentSchedulingBooleanWhen enabled, we will check if the event overlaps with existing events
- shiftTimeOnlyBoolean

rangeStart DateTime: Start date of range to check for overlap
rangeEnd DateTime: End date of range to check for overlap


Returns

scheduleTimes list[dict] i.e. [{'startDate' 2024-01-01 000000, 'endDate' 2024-01-01 001400}]
scheduleOverlap Boolean True if overlap detected
overlappingScheduleBlockList List of Dictionaries


Example