Skip to content

Handle Result

The result returned from scheduling is called a Scheduling Plan and is handled automatically by the IFS Optimization Framework. In order to use the result the returned scheduling entities have corresponding methods for handling the data returned. These methods will have to be overridden in the PL/SQL package file in the Scheduling Model. Custom application logic can be added in these methods based on each scheduling entity returned. It's also possible to add custom application logic that should happen before handling all the returned entities, e.g. clearing out old data. The method Import_Pre_Processing can be overridden for this purpose. Similarly it's also possible to add custom application logic that should happen after handling all the returned entities, e.g. start processing the returned data. The method Import_Post_Processing can be overridden for this purpose. The entity Plan is the head entity for the Scheduling Plan and is handled first.

Handled entities and corresponding methods

EntityMethod
Aggregated_ActivityAccept_Aggregated_Activity
Aggregate_MemberAccept_Aggregate_Member
AllocationAccept_Allocation
Allocation_DataAccept_Allocation_Data
Allocation_OperationAccept_Allocation_Operation
Allocation_PartAccept_Allocation_Part
Appointment_OfferAccept_Appointment_Offer
Appointment_SummaryAccept_Appointment_Summary
Isochrone_PointAccept_Isochrone_Point
PlanAccept_Plan
Plan_AreaAccept_Plan_Area
Plan_BreakAccept_Plan_Break
Plan_DeletionAccept_Plan_Deletion
Plan_Depot_TransferAccept_Plan_Depot_Transfer
Plan_PointAccept_Plan_Point
Plan_PolygonAccept_Plan_Polygon
Plan_ResourceAccept_Plan_Resource
Plan_RouteAccept_Plan_Route
Plan_TravelAccept_Plan_Travel
Resource_MovementAccept_Resource_Movement
Schedule_ExceptionAccept_Schedule_Exception
Schedule_Exception_DataAccept_Schedule_Exception_Data
Suggested_DispatchAccept_Suggested_Dispatch
Travel_DetailAccept_Travel_Detail

Example

Updates from PSO Workbench

Updates made in the PSO Workbench will be handled in a similar way to the Scheduling Plan but in a separate broadcast. The updated scheduling entities have corresponding methods for handling the updated data. These methods will have to be overridden in the PL/SQL package file in the Scheduling Model. Custom application logic can be added in these methods based on each updated scheduling entity. It's also possible to add custom application logic that should happen before handling all the updated entities. The method Update_Pre_Processing can be overridden for this purpose. Similarly it's also possible to add custom application logic that should happen after handling all the updated entities, e.g. start processing the updated data. The method Update_Post_Processing can be overridden for this purpose. The entity Input_Reference is the head entity for Workbench updates and is handled first.

Handled entities and corresponding methods

EntityMethod
Activity_StatusUpdate_Activity_Status
Input_ReferenceUpdate_Input_Reference
Object_DeletionUpdate_Object_Deletion
Schedule_EventUpdate_Schedule_Event
Schedule_Except_ResponseUpdate_Schedule_Except_Resp
Visit_PartUpdate_Visit_Part

Example