The initial xml data sent to IFS Planning and Scheduling Optimization (PSO) will of course be a full data load containing all the data required by the scheduling system. However it is often necessary to send incremental updates to the system when data changes within IFS Applications. For scheduling data it is usual to send a full load once per day (usually overnight) and then further incremental changes throughout the day. For modeling data the full load will only be sent once and from that point onwards only changes are sent.
The integration model will handle the sending of full load data and changes automatically, based on the 'changedetection' component within the model. For each data fetch rule where changes are expected a changedetection model should be added which can detect changes from any combination of tables within IFS Applications. For each table a 'trigger' is added to the changedetection model, which can use one of three distinct methods for detecting changes:
changedetection {
trigger on FND_ROLE_TAB {
guardcondition = "FUNCTION Trigger_Guard RETURN BOOLEAN IS BEGIN RETURN (INSTR(:NEW.ROLE, parameters.Company)=1); END;";
objkey OBJKEY;
}
}
Please note that for scheduling data fetches, any change to a row will result in the entire row being updated, as is standard for scheduling data updates. For modeling and system data fetches, row updates will only update the columns that are specified in the data fetch. This is to allow data that is not specified by the data fetch to be maintained within the scheduling system. Note however that any change to the row will result in all columns specified in the data fetch being updated. Thus there should be a clear split between those tables and columns that are synchronized with IFS Applications and those which is maintained independently within the scheduling system.
Due to the change detection process using rowkey then on installation of the scheduling model rowkey will be enabled on all tables included in the change detection automatically.
Any trigger can be marked as a "prompt update" which when fired will send the data to PSO immediately rather than waiting for the database task "Send PSO Integration dataset updates" to run to send the changes from IFS Apps to PSO.
For an example of change detection implemented see Users.scheduling model.