The article is relevant for clients who are going to upgrade the FIXEdge to version 6.0 and higher.
Since FIXEdge 6.0 and FIXICC 2.10.1 new functionality of session schedule management has become available. This instruction provides the answers on how to upgrade your current sessions schedule in order to support the cron-like format of the schedule.
1.How to use cron-like session's schedule functionality with CRON expressions
In order to use the cron-like schedule management functionality follow the steps below:
If you have old-style schedule properties specified (including DefaultStartTime and DefaultTerminateTime) as well as Cron-Like schedule assigned to the same session, then the Cron-Like schedule will be applied, while all old-style properties will be ignored;
1.1. How to assign one schedule to several sessions
In case you have several sessions that use the same schedule, you may assign one schedule to several sessions.
FixLayer.FixEngine.Session.TestFIXAcceptor1.Schedule = Schedule1 FixLayer.FixEngine.Session.TestFIXAcceptor2.Schedule = Schedule1
1.2. How to specify days off and time zone for my schedule
Cron-Like session schedule management functionality provides a possibility to specify Time Zone and Days Off to have a more flexible schedule.
# catholic Christmas: Schedules.Schedule1.DaysOff = * * * 25 12 * # TimeZone: Schedules.Schedule1.TimeZone = EST # Schedule itself: Schedules.Schedule1.StartTime = 0 0 8 * * 2-6 Schedules.Schedule1.ConnectTime = 0 0 9 * * 2-6 Schedules.Schedule1.DisconnectTime = 0 0 21 * * 2-6 Schedules.Schedule1.TerminateTime = 0 0 21 * * 6
2. How to use assign CRON expression to my current session's schedule
CRON expressions can be also assigned to your current sessions schedules defined in Old-Style Session Schedule Properties:
Both formats - CRON expression and HH:MM - can be supported by FIXEdge simultaneously in one schedule. In other words, user's session's schedule can be setup in the following way:
The thing is that HH:MM is just converted to the CRON expression like 0 MM HH * * *.
3. How to keep using my current session's schedule
In order to keep using your current session's schedule, no additional actions are required.