Panel | |
---|---|
On This Page:
Related Pages: |
Panel |
---|
The |
Description
The sp:JobBookRequest
API method creates a new job in ServiceOptimizer without having to go through the appointment offering process. It is normally used for business to business relationships where an exact appointment is not given to the customer; rather, an SLA or response time agreement is in place.
As with the Book Appointment SOAP API, this interface may be used to book long duration jobs (ones requiring more than one shift) with the system automatically choosing the best solution from the possible positions available.
Job Dates/Times
The dates and times that define valid periods in which the job may be booked fall into three categories, which usually are related to the contract that is in place with the customer:
- Contract Hours: This is the promised response window (ie ‘the engineer should respond within 48 hours of a call being raised’).
- It is a pair of dates and times that represents the preferred time period when the job should be scheduled. This is equivalent to saying that the pair forms a soft constraint on when the job should be done, but it can be scheduled outside that period.
- If a job is scheduled so that its
ETA
(ETF
if it’s a call-to-fix job) is after itsContractLatest
, it incurs an overdue cost proportional to the amount by which it’s late - but only during its service hours.
ETA
(or its ETF
if it’s a call-to-fix job) exceeds its ContractLatest
time.DotW
) has a StartTime
and an EndTime
defined. EndTime
is apparently before the StartTime
, the EndTime
is assumed to be on the next day. Therefore no service hours time period can be longer than 24 hours. There can be more than one service hours time period on each day.0
and 240.
- Named service hours patterns are pre-defined in ServiceOptimizer so that a job can be booked with just the name of that service hours pattern supplied as a parameter.
- Instead of having a pre-defined service hours pattern, a job can be booked with its own (unnamed) service hours pattern, i.e. one that is not pre-defined in ServiceOptimizer but is supplied with the job when it is booked. For this, a pattern of
DayAndTimePeriod
s must be supplied for each day of the week that the service hours should apply.
SP_DateRange
, below). Each of these date ranges also acts as a hard constraint, i.e. the job should not be automatically scheduled outside them, and the overdue cost need only be applied during them.ServHoursPatts
and ServHoursPreDefPatts
in the JobBookRequest
structure supplied in a call to the sp:JobBookRequest
API method are NULL
) will use a default service hours pattern called fru_default_shp
defined in the database.ClosedDates
in the JobBookRequest
structure) during which the service hours won’t be applied, i.e. the job does not become any more overdue during these dates. ClosedDates
is defined as a set of DateRanges
.- Access Hours: These are the hours where the customer site is physically open to undertake the work (ie. ‘nobody is in the building before 9am so it is not worth turning up before then because the engineer will not be able to gain access to do the job’).
- Access hours are an optional set of time periods during which a job can be started (for example when the customer premises are open).
- They act as a hard constraint, so a job’s
ETA
must be within its access hours (and so must itsETF
if it’s a call-to-fix job). - There are no pre-defined access hours patterns, so each job’s access hours may only be supplied when it is booked.
- There are several ways in which access hours can be specified for a job, all of which, except for the first and fourth options below, can apply at the same time:
- as a weekly repeating open access hours pattern over one or more date ranges. An access hours pattern is a repeating set of access hours time periods that each apply to a day of the week. The actual access hours (
DayAndTimePeriodSeq
) must be the same in eachSP_AccHoursPatt
, though theDateRange
s can be different. - as a set of open access hours overrides,
- as a set of closed access hours overrides that are time periods during which the job must not be started (or finished for a
ETF
job). Closed access hours overrides can only be added to existing access hours; there is no replace option. Closed access hours overrides are also converted into open overrides before being stored and subsequently never appear as closed overrides. - as being the same as the service hours (see
ServAsAccHours
). If the service hours are to also act as access hours the access hours end after the end of the grace period, if there is one, and it is an error to also supply an access hours pattern, though access hours overrides are allowed.
- as a weekly repeating open access hours pattern over one or more date ranges. An access hours pattern is a repeating set of access hours time periods that each apply to a day of the week. The actual access hours (
Note |
---|
A non-appointment job must have at least one access hours time period from one of the above mechanisms |
Allocation Mechanism
The search for available capacity will be limited to the SLA Search Window (SSW) which is based on a combination of the job’s contract hours and its access Hours:
- the later of the contract earliest time (if supplied) and
{now}
the end of the day containing (the later of (contract latest time and
{now}
) + abs_sla_days_after
).
Definition
The definition of this API is:
Include Page | ||||
---|---|---|---|---|
|
Return Structure
The API returns a non-standard return structure.
Include Page | ||||
---|---|---|---|---|
|
Return Codes
In addition to the Standard Return Codes, the possible Return Codes from this API are:
Include Page | ||||
---|---|---|---|---|
|