Document toolboxDocument toolbox

14.1 sp207_dispatch_messages

This table provides a persistent store for dispatch messages generated as result of changes to jobs and standard activities, so that they can be recovered in the event of system failure. It is not a complete copy of all messages that are waiting to dispatch. Once a message from this table has delivered successfully it is deleted from the table.

HouseKeeping

This table is tidied by sp_dbtidy’s Global group (messages that have lost their ‘posting’ as the engineer has move to another FRU), and by the Job group (specific jobs)



Table Definition

Field
Type
Default
Nullable
message_nonumber(9)
(error)
job_refvarchar2(50)
(error)
creation_timedate
(error)
earmark_typenumber(2)
(error)
dispatch_statusnumber(2)
(error)
employee_nonumber(9)
(error)
reearmarknumber(1)
(error)
etsdate
(error)
etadate
(error)
etf date
(error)
postcode   varchar2(30)
(error)
region_nonumber(9)
(error)
team_no number(9)
(error)
iru_nonumber(4)
(error)
lunch_timenumber(6)
(tick)
tentative_job_count number(6)
(tick)
book_loc_nonumber(2)
(tick)
send_before   number(9)
(tick)

ISVWDL

number(1)
(tick)

Keys 

Key TypeColumnReference TableReference Column
primary keymessage_no

foreign keydispatch_statussp287_dispatch_statusesdispatch_status
foreign keyemployee_no14.1 sp210_employeesemployee_no
foreign keyregion_no/wiki/spaces/SCH141/pages/27068047region_no
foreign keyiru_no/wiki/spaces/SCH141/pages/27099986resp_unit_no
foreign keyteam_no/wiki/spaces/SCH141/pages/27001323team_no
foreign keybook_loc_no14.1 sp218_booking_locationsbkg_location_no

Column Descriptions

FieldDescription

message_no

Primary key: unique identifier for this message
job_refThe job this message relates to. In the case of the standard activity it is the activity_no from 14.1 sp100_activities.
creation_timeDate/time at which the message was generated -- uses FRU Time Zone
earmark_type 

Type of message this relates to:

  • 0 - UserEarmark
  • 1 - AutoEarmark
  • 2 - Unearmark
  • 3 - ReEarmark
  • 4 - BatchEarmark
  • 5 - RealTimeEarmark
  • 6 - SA_UserEarmark
  • 7 - SA_AutoEarmark
  • 8 - SA_Unearmark
  • 9 - SA_ReEarmark
  • 10 - SA_BatchEarmark
  • 11 - SA_RealTimeEarmark
  • 12 - CheckClient (Internal Use Only)
  • 13  -TerminateSession (Internal Use Only)
dispatch_status Delivery status of message, references sp287_dispatch_statuses.
employee_noEmployee the job/SA was assigned to when the message was generated, references sp210_employees.
reearmarkBoolean, whether this message is a re-earmark notification or not.
ets         Expected start time of the job/SA when message was generated - uses FRU Time Zone.
etaExpected arrival time of the job/SA when message was generated - uses FRU Time Zone.
etf Expected end time of the job/SA when message was generated - uses FRU Time Zone.
postcode   Postcode of the job/SA.
region_no      Region number of the job or standard activities postcode.
team_noTeam that the employee was posted to when the message was generated.
iru_no IRU that the employee was posted to when the message was generated.
lunch_time Amount of break time when the message was generated (in seconds) - only applies if a job.
tentative_job_countCount of jobs that have been allocated to this employee (EmpID), but which he doesn’t yet know about.
book_loc_noBooking location for the job.
send_before
ISVWDLIndicates if the job is a Virtual Work Dynamic Location job or not.