Integration ServiceOptimizer Get Changed Work Items SOAP API
The sp:GetChangedWorkItemsRequest
Ā API method can be used to obtain the details of changed work items (jobs and standard activities).
Description
The sp:GetChangedWorkItemsRequest
Ā API method will return a particular set of work itemsā attributes (job or standard activity) ifĀ anyĀ of the work itemās attributes have changed since a previous call. The operation works for a single FRU for the whole memory horizon.
If the option JeopOnly
is set, work items will be returned only if one of a configurable set of jeopardy conditions has changed. The jeopardy conditions that are to be monitored are configured by the FRU parameter GetChangedJobs:Ā JeopardyĀ Conditions
in the API section of the Scheduling Unit Settings page in ServiceManager (the database name is: gcj_jeop_check_states
).
In this context, the change could be:
- one or more of the configured jeopardy conditions for that work item has changed;
- the configured conditions include āoverdueā (P) and/or āMissed appointment - Lateā (M) and the job is in jeopardy because itĀ isĀ overdue or late and the amount by which itās overdue or late has changed; or
- the configured conditions include āearlyā (Before Contract Earliest (B) or Missed Appointment (Me)) and the jobĀ isĀ early and the amount by which itās early has changed.
Changes are determined by time-stamp comparison. On the first call, the time-stamp should not be supplied so thatĀ allĀ of the work items are returned along with a new server-generated time. This new time-stamp is then supplied to the next call so that the changes made since the previous call can be determined by the server, and only work items thatĀ haveĀ changed since that previous time-stamp are then returned.
Definition
The definition of this API is:
Return Structure
The API returns a non-standardĀ return structure.
Note: There is no guarantee that a changed work item is returned only once for each change.
Note: Because a work item is returned if any of its attributes have changed (unless JeopOnly
is set), not just a change to those attributes returned, there will be circumstances when a work item is returned for which there has been no change apparent in the attributes returned.
Note: If a job is cancelled (via the Integration ServiceOptimizer Cancel Job SOAP API), or a standard activity removed, nothing will be reported about it thereafter, since it will have been removed from ServiceOptimizer. It’s assumed that the same system that called the Integration ServiceOptimizer Cancel Job SOAP API will be calling the Integration ServiceOptimizer Get Changed Work Items SOAP API and will therefore know not to expect anything to be reported about the job after cancellation.
All of the fields to do with dates and times are local to what is specified in the tz_GCJAPI
database parameter. These can be set such that dates and times are local to the timezone of the region where the work item is located, local to the timezone of the responsibility unit which contains the work item, local to the employee that the work item is allocated to, local to a specified or default timezone, or in GMT with or without daylight saving (BST).
Return Codes
In addition to the Standard Return Codes, the possible Return CodesĀ from this API are:
SP_OK (0)
SP_OPTIONS_INVALID (80)
SP_FRUID_INVALID (278)
SP_MAX_INVALID (281)
SP_TIMESTAMP_INVALID (504)
SP_MAX_INVALID (281)
is returned if the supplied value of max
is 0.