Calling convention: processPIMSData(ObjectName, Debug: Integer, DeletePims: Integer)
Description: Processes staged continuous-process PIMS events for a target object. Configured mappings can copy, sum or calculate weighted averages, and can update values always, before a new record or after a new record.
Parameters:
ObjectName: target object name.
Debug: 1 writes progress messages; 0 disables them. NULL defaults to 0.
DeletePims: 1 deletes the processed rows from tempEventData; 0 keeps them. NULL defaults to 1. The implementation also accepts an optional fourth PreviousDataID argument.
Returns: NULL. The function inserts, updates and recalculates target records but does not return a success value.
Availability: Default; PEKA/continuous-process specific and dependent on setupCockpit, tempEventData, the setupDataTransferOptions/setupExecuteOption lists and their fixed entries.
Example:
processPIMSData("ProductionEvents", 0, 1);