Building Blocks > Solution-Specific Building Blocks > Bottleneck Building Block > Key Services (Bottleneck Building Block)
Key Services (Bottleneck Building Block)
The bottleneck building block contains CRUD services for the bottleneck database tables, and service to validate the data before it is inserted into the database tables. You can view all services in this building block on the Services page of the PTC.BottleneckImpl.Manager Thing.
The following key services are executed from the PTC.BottleneckImpl.Manager Thing:
AddMaterialDemandWindowData—Adds a new demand window. If a source demand window exists, its related data, such as independent demand and demand BOMs, is copied to the new demand window.
AddOrUpdateModelDemands—Adds or updates a model demand (the Total Demand value for a work center) with some validation. For example, if the demand for the demand window that is linked to the model demand is set on materials, then the service throws an error. This is because the demand on a work center can only be added or updated if the demand for the linked demand window is set on work centers.
AddMaterialToBOM—Adds a parent and child material to the demand BOM for the specified material and demand window, if it does not already exist.
GetActualCycleTrendInfos—Retrieves the actual cycle times for the specified work centers for each day in the specified date range.
GetBottleneckInfos—Retrieves the top 5 and bottom 5 bottlenecks for the specified demand window and optional material master.
GetBottleneckTrendInfos—Retrieves the bottleneck impact for the specified work centers for each day in the specified date range.
GetChildMaterialsFromBOM—Retrieve the child materials from the demand BOMs for the specified demand window and material master.
GetMaterialDemandBOMInfo—Retrieves the demand BOM for the given demand window and material master.
GetMaterialDemandInfos—Retrieves the material demand for the given demand window and optional material filter.
GetMaterialDemandWindowShiftDuration—Retrieves the predicted non-overtime shift duration for any future time in the demand window, from after the last shift instance until the end of the demand window. If the demand window is in the past, then the shift duration is zero. This is calculated using the calendars, calendar exceptions, repeating calendar days, shift schedules, and shifts for the work center.
GetMaterialDemandWindowYears—Retrieves the years for which a demand window exists for the site.
GetMaterialDetails—Retrieves the demand BOM details for materials in the specified demand window.
GetModelActualAllocations—Retrieves the actual and target allocations for the model (work center) along with the actual time used for the given demand window and optional material filter.
GetOEETrendInfos—Retrieves the OEE for the specified work centers for each day in the specified date range.
GetProcessedMaterialDemandWindows—Retrieves the demand windows for the specified site that have started and are within the input date range.
GetWorkCenterDemands—Retrieves the work center demand data for the specified work centers and demand window.
GetWorkCenterMaterialDemandWindows—Retrieves all the demand windows to which the work center belongs.
GetWorkCenterOEE—Retrieve the work center’s OEE for the specified date range.
GetWorkCentersTAKTAndDemands—Retrieve the TAKT and demand values for all the specified demand windows and work centers.
Was this helpful?