Action
- Last UpdatedMay 17, 2023
- 1 minute read
When a new UOM is added from the MES Client application or by using a System Platform script to add the UOM, the middleware typically uses the sp_I_Uom stored procedure to add the new unit of measurement. As explained in Functional Overview, the middleware first verifies whether any pre-hook is configured for the sp_I_Uom stored procedure. Since there is a pre-hook TestHooks.dll configured for this case, the middleware first executes the method TestMethod in the TestHooks.dll assembly and then evaluates the result before actually processing the standard middleware call sp_I_Uom to create a new unit of measurement in the MES database.