ale pax
New member
- Joined
- Jun 19, 2024
- Messages
- 2
- Programming Experience
- 10+
Hi to All
I need to Manage Schedule Expressions
I Analized the problem and decide to develop a Library
to Manage a ScheduleBody
maybe it is too complicated
### need Help to simplify ###
problem1: WorkTime
Description of problem:
My Work Time is [From Mon to Fri] NationalHoliDay:Excluded PersonalHoliDay:Excluded
from 08:13 to 13:00 From 14:00 to 18:00 PersonalHolyHour Excluded
problem2: Course
Description of problem:
My Course
is Every [Mon] NationalHoliDay:Excluded SummerPause:Excluded StartAt="2024-02-24" EndAt="2024-12-24"
from 18:00 to 20:00
problem3: Historicizing
Description of Problem:
My procedure of Historicize Data run
Every day from 22:00 to 03:00
problem4: DailyMeeting
Description of Problem:
My DailyMeeting
is Every WorkDay $PlanningDay:Excluded $ReviewDay:Excluded
From 09:45 to 10:00
Solution
Foresee a SchedulerBody
SchedulerBody for Problem1:
SchedulePhrase $WorkTime
_DaysOfWeek:Included=[Mon,Tue,Wed,Thu,Fri]
_Time:Included=[_Start=08:00 _End=13:00, _Start=14:00 _End=17:00]
$IsHoliday:Excluded
@PersonalPauseTime:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ..., @IsEasterMonday, $IsCountrySaintDay, @IsPersonalHoliday]
SchedulePhrase $IsCountrySaintDay
if(@Sede='Roma'){_Date=yyyy-06-29}if(@Sede='Milano'){_Date=yyyy-12-09}
SchedulerBody for Problem2:
SchedulePhrase $Course
_Date:Included=[_Start=2024-02-24 _End=2024-06-25, _Start=2024-09-01 _End=2024-12-24]
_DaysOfWeek:Included=[Lun]
_Time:Included=[_Start=18:00 _End=20:00]
$IsHolyday:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ...,@IsEasterMonday]
SchedulerBody for Problem3:
SchedulePhrase $Historicizing
_Time=[_Start=22:00 _Duration=05:00:00]
SchedulerBody for Problem4:
SchedulePhrase $DailyMeeting
_DaysOfWeek:Included=[Mon,Tue,Wed,Thu,Fri]
$IsHolyday:Excluded
$PlanningDay:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ..., @IsEasterMonday]
SchedulePhrase $PlanningDay
_Date=[2024-04-02, ...]
I need to Manage Schedule Expressions
I Analized the problem and decide to develop a Library
to Manage a ScheduleBody
maybe it is too complicated
### need Help to simplify ###
problem1: WorkTime
Description of problem:
My Work Time is [From Mon to Fri] NationalHoliDay:Excluded PersonalHoliDay:Excluded
from 08:13 to 13:00 From 14:00 to 18:00 PersonalHolyHour Excluded
problem2: Course
Description of problem:
My Course
is Every [Mon] NationalHoliDay:Excluded SummerPause:Excluded StartAt="2024-02-24" EndAt="2024-12-24"
from 18:00 to 20:00
problem3: Historicizing
Description of Problem:
My procedure of Historicize Data run
Every day from 22:00 to 03:00
problem4: DailyMeeting
Description of Problem:
My DailyMeeting
is Every WorkDay $PlanningDay:Excluded $ReviewDay:Excluded
From 09:45 to 10:00
Solution
Foresee a SchedulerBody
SchedulerBody for Problem1:
SchedulePhrase $WorkTime
_DaysOfWeek:Included=[Mon,Tue,Wed,Thu,Fri]
_Time:Included=[_Start=08:00 _End=13:00, _Start=14:00 _End=17:00]
$IsHoliday:Excluded
@PersonalPauseTime:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ..., @IsEasterMonday, $IsCountrySaintDay, @IsPersonalHoliday]
SchedulePhrase $IsCountrySaintDay
if(@Sede='Roma'){_Date=yyyy-06-29}if(@Sede='Milano'){_Date=yyyy-12-09}
SchedulerBody for Problem2:
SchedulePhrase $Course
_Date:Included=[_Start=2024-02-24 _End=2024-06-25, _Start=2024-09-01 _End=2024-12-24]
_DaysOfWeek:Included=[Lun]
_Time:Included=[_Start=18:00 _End=20:00]
$IsHolyday:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ...,@IsEasterMonday]
SchedulerBody for Problem3:
SchedulePhrase $Historicizing
_Time=[_Start=22:00 _Duration=05:00:00]
SchedulerBody for Problem4:
SchedulePhrase $DailyMeeting
_DaysOfWeek:Included=[Mon,Tue,Wed,Thu,Fri]
$IsHolyday:Excluded
$PlanningDay:Excluded
SchedulePhrase $IsHolyday
_Date=[yyyy-01-01, yyyy-01-06, ..., @IsEasterMonday]
SchedulePhrase $PlanningDay
_Date=[2024-04-02, ...]