Working time schedule day (workday)

Description

Defines the work schedule for a specific day.
Used when building a schedule and correlating the activity of a number of entities and resulting processes with it.

Limitations

  • The collection is available in any domain.

Fields

Entity structure
{
  "id": uuid,
  "date": date,
  "isannual": intbool,
  "isworkday": int,
  "asdow": int,
  "periods": array<object>,
  "opts": {
    "title": str,
    "comment": str,
  },
  "ext": {
    "ct": date,
    "lwt": date
  }
}
Table 1. Fields
Specification Description

Field: id
Mode: inout
Type: uuid
Default: generated

Identifier. Can be specified at creation, otherwise generated by the system.

Field: date
Mode: in
Type: date
Default: required

Date. Format "YYYY-MM-DD".

Field: isannual
Mode: in
Type: intbool
Default: 0

Annual application flag.
1 – regardless of the year specified in the date, the day is applied every year.
0 – applied on the specific date.

Field: isworkday
Mode: in
Type: intbool
Default: 0

Flag:
0 – day off,
1 – working day,
2 – working day according to an individual schedule.

Field: asdow
Mode: in
Type: int
Default: 0

Day of the week for which the schedule of the configured date is substituted.
0 – no day-of-week substitution,
1 – for Monday, 7 – for Sunday

Field: periods
Mode: in
Type: array<object>
Default: empty

Activity interval during the week.
Each list element covers a specific segment within the day.
The overall schedule is formed from the set of these segments.
Intraday schedule list element.

Applied when isworkday=2.

Example
[
  {
    "timestart": 540,
    "timestop": 820
  },
  {
    "timestart": 860,
    "timestop": 1080
  }
]

Field: opts
Mode: in
Type: object
Compound field

Field: opts.title
Mode: in
Type: str
Default: empty

Arbitrary title

Field: opts.comment
Mode: in
Type: str
Default: empty

Arbitrary comment

Field: ext
Mode: inout
Type: object
Compound field

Allows extending the compound with arbitrary keys and values

Field: ext.ct
Mode: out
Type: date
Default: generated

Object creation time

Field: ext.lwt
Mode: out
Type: date
Default: generated

Time of last modification of the object

Intraday schedule list element

Table 2. Intraday schedule list element
Field Value Description

timestart

0 – 1440

Start time of the segment within the day, in minutes

timestop

0 – 1440

End time of the segment within the day, in minutes

See also

Logical roles

  • mdc and sdc build the schedule and apply it.