Image
abstract swish line in gradient colouring from pink to blue on a dark blue background

Event stream documentation

WorkingPatternCreated and WorkingPatternChanged events

The payload for these events contains an array of working pattern revisions, showing the changes to the working pattern over time. The array will only contain the working patterns after and including the one that was changed. The reason for this is that changing working pattern can have an effect on a subsequent working pattern revisions, but it cannot affect previous ones.

A WorkingPatternCreated event will be raised when:

  • a person is added to their first job

A WorkingPatternChanged event will be raised when:

  • the working pattern for a person is changed (working pattern can be inherited attributes and therefore changes to the source/inherited values will raise this event)

Field definitions for this event;

Field NameData TypeAdditional information
occupancyIdguidn/a
personalReferencestringmax-length: 20
jobReferencestringmax-length: 20
startDatedatethe start date of the occupancy. The dateTime is in ISO format and should be in coordinated universal time (UTC) (e.g. 2019-05-02T15:17:00Z)
endDatedatethe end date of the occupancy. The dateTime is in ISO format and should be in coordinated universal time (UTC) (e.g. 2019-05-02T15:17:00Z)
startDatedatethe start date of the hours and basis revision. The dateTime is in ISO format and should be in coordinated universal time (UTC) (e.g. 2019-05-02T15:17:00Z)
endDatedatethe end date of the hours and basis revision. The dateTime is in ISO format and should be in coordinated universal time (UTC) (e.g. 2019-05-02T15:17:00Z)
namestringmax-length: 80
startDayNumberintegern/a
numberOfDaysintegern/a
dayNumberintegern/a
totalMinutesintegern/a


Example of this event

{
  "occupancyId": "",
  "personalReference": "",
  "jobReference": "",
  "startDate": "",
  "endDate": "",
  "workingPatternRevisions": [{
          "startDate": "",
          "endDate": "",
          "name": "",
          "startDayNumber": "",
          "numberOfDays": [{
            "dayNumber": "",
            "totalMinutes": ""
        }
      ]
    }
  ]
}

Looking for something specific?