Using Golden Batch

Using Golden Batch

Note Introduced in Sepasoft Batch module version: 4.83.4. RC1

Golden Batch compares a completed production Batch (the target) with a completed reference Batch (the golden Batch). Use it to see which parameters drifted, whether they stayed inside tolerance, and how recorded process values moved over the run.

Two Perspective components do this work. Add both from the Batch palette.

ComponentPalette nameComponent typeWho uses itWhat it is for
Golden Batch Configuration ManagerGolden Batch Configuration Managermes.batch.goldenBatchConfigManagerEngineers and administratorsName a completed Batch as the standard, organize those standards, and choose which parameters and tolerances later comparisons use.
Golden Batch Comparison ViewerGolden Batch Comparison Viewermes.batch.goldenBatchComparisonViewerOperators, supervisors, and quality reviewersCompare one target Batch (does not have to be in a Complete state) to a Golden Batch ID, to a saved Configuration, or to both.

Concepts

TermMeaning
Golden BatchA completed Batch used as the comparison baseline.
Target BatchA later completed Batch you compare against that baseline.
Golden Batch ConfigurationA named policy. It stores one completed Golden Batch ID, plus optional include/exclude and tolerance overrides.
Golden Batch Configuration ClassA folder that groups Configurations, for example by line or recipe family. Classes can nest.
Include in Golden Batch comparisonWhether a parameter is compared. Parameters are included by default.
ToleranceHow far the target may move from the Golden value and still match. A number is a fixed amount. A number with % is a percent of the Golden value. The lower and upper sides are independent.
Item pathThe parameter's place in the recipe, such as /{}/P2/UP2:Material_PhaseB.Jacket_Temperature. {} stands for the Procedure.
Track ValueOpens the Value History dialog for one parameter: value-change history, and the recorded process-value chart when a profile exists.

Both Batches must be complete and must use the same Master Recipe. The comparison checks that Master Recipe identity. It does not require the same formula, and the two Batches may be different versions of that Master Recipe. Formula Name and Formula Version on the edit screen are read-only information taken from the Golden Batch.

Idle steps are left out of the comparison, on the procedure and on each step. System parameters are included.

A saved Configuration's Golden Batch ID cannot be changed. Paste in Configuration Manager keeps that same Batch ID. To point the same policy at a newer completed Batch, use copyConfig with a new goldenBatchID and then saveConfig. That script is in the reference.

How-to

This walkthrough goes from an empty Configuration Manager to a finished comparison, including process-value history.

Put the components on a view

  • Open the Perspective view in Designer.

  • From the Batch palette, drop Golden Batch Configuration Manager on an engineering or administration view.

  • Drop Golden Batch Comparison Viewer on the view operators use to review a finished Batch.

  • On the Comparison Viewer, bind targetBatchID to the Batch the operator selected.

  • Bind goldenBatchConfig to the Configuration name operators should compare against. Use goldenBatchID instead when the screen compares two explicit Batch IDs and does not use a saved policy. Supply both when a named policy should apply to a baseline other than the Configuration's own Batch.

Until those properties are set, the viewer shows: Specify a Golden Batch ID or Golden Batch Configuration plus a target Batch ID to compare.

Create folders

Use a class when you want groups such as Mixers or Line 4.

  • In Golden Batch Configuration Manager, click Add.

  • Click Create Golden Batch Configuration Class.

  • Enter a Name.

  • Optionally enter a Description.

  • Click Save.

The new class is created under the selected class. If nothing is selected, it is created at the root. To nest a class, select the parent class first, then add.

Classes do not have a Golden Batch ID or a Parameters table.

Create Golden Batch Configuration Class. Name is required. Description is optional. Back and Save are in the title bar.

Create Golden Batch Configuration Class. Name is required. Description is optional. Back and Save are in the title bar.

A blank name is rejected on the form with Name is required. On save, a class name must be unique among all Golden Batch Configuration Classes, and a Configuration name must be unique among all Golden Batch Configurations. A class and a Configuration may use the same name. Uniqueness is across that object type, not only among items under the same parent. Delete removes the item from the list and leaves the name reserved, because a disabled object still holds it.

These characters are rejected:

\ / % ^ * ~ [ ] { } ` ? " = + ! # $ | , .

Angle brackets are allowed, as are spaces, hyphens, underscores, and parentheses. A rejected character produces a save error that the name contains invalid characters. A duplicate produces a save error that the name is already used for another similar MES object. The same rules apply when a script calls saveConfig or saveConfigClass.

Name a known-good Batch as the standard

Optionally select the class that should own the Configuration.

  • Click Add → Create Golden Batch Configuration.

  • Enter a Name, for example Standard Mix.

  • Optionally enter a Description.

  • In Golden Batch ID, start typing a completed Batch ID and pick a suggestion, or type the full ID and click the search button (Load Golden Batch).

  • Wait until Recipe Name, Recipe Version, Formula Name, and Formula Version fill in. Those fields are read-only. They identify the Batch you loaded. The comparison matches on the Master Recipe, not on the formula or the formula version. The Parameters table appears with recipe defaults. Until a Batch is loaded, the table says: Choose a Batch ID to view its recipe parameters.

  • Click Save.

The Golden Batch ID is required. Saving before a completed Batch is loaded shows: A Golden Batch ID is required. Enter a Batch ID and click the search button to load it.

Clearing Golden Batch ID before the first save clears the recipe fields and the Parameters table so you can pick a different Batch.

After save, Golden Batch ID is locked. Change the name or description later with Edit. To use a different Batch, copy the Configuration (section 6) or use copyConfig in the reference.

Choose parameters and tolerances

  • Select the Configuration and click Edit. The drawer title is Edit Golden Batch Configuration: followed by the name. An asterisk (*) at the start of the title means there are unsaved changes.

  • In Parameters:
    • Use Search parameters... to find a name, path, or value type.
    • Leave Show all parameters, including non-numeric off to work with parameters that can take a tolerance override. A tolerance override is allowed only when the parameter is numeric and Record Process Values is enabled. Turn the toggle on to include or exclude comments, strings, states, and other parameters. Those parameters do not get Lower Tolerance or Upper Tolerance. The toggle tooltip is Toggle to show all parameters or only numeric-type parameters.
    • Turn on Show flattened view to list every parameter in one table. Leave it off to keep the indented recipe tree. indentedParameterList on the component chooses the starting layout. The edit screen can still toggle Show flattened view.
    • Expand {} or a unit or phase heading to reach nested parameters.

  • Clear Include in Golden Batch comparison for parameters that should not fail a comparison.

  • Use the header checkbox to include or exclude every visible row. It follows the current search and the show-all filter. A dash means some visible rows are included and some are not.

  • For a numeric parameter, enter Lower Tolerance and Upper Tolerance, then choose # (fixed) or % (percentage). The two sides are independent. A Revert icon on a changed tolerance restores that side to the recipe default.

  • Click Save.

Back closes the drawer. If there are unsaved changes, confirm Discard Changes? or cancel to keep editing.

Only explicit include/exclude and tolerance overrides are stored. A parameter left at the recipe default is still compared.

Edit Golden Batch Configuration. The parameters table shows value type, lower and upper tolerance with fixed (#) or percent (%), and Include in Golden Batch.

Edit Golden Batch Configuration. The parameters table shows value type, lower and upper tolerance with fixed (#) or percent (%), and Include in Golden Batch.

includeParameterFilter and excludeParameterFilter on the component hide rows from this screen before the user searches. Wildcards are * (any characters) and ? (one character). Excludes apply after includes. A filter of ['*Temp*'] shows only names that contain Temp.

When the recipe has no parameters that are both numeric and recorded, the list says:

No tolerance overridable parameters available. Parameters must be numeric and have Record Process Values enabled to be eligible for tolerance overrides. Toggle Show all parameters to include or exclude parameters from Golden Batch comparisons.

Edit screen when no parameter can take a tolerance override. The message names the numeric and Record Process Values rule. Show all parameters is still available.

Edit screen when no parameter can take a tolerance override. The message names the numeric and Record Process Values rule. Show all parameters is still available.

Turn on Show all parameters, including non-numeric to include or exclude those other parameters. Tolerance fields stay hidden for them.

Find, edit, or remove a Configuration

The manager title is Golden Batch Configuration Manager.

ColumnMeaning
NameConfiguration or class name
DescriptionOptional notes. Hidden when showDescription is false.
Golden Batch IDCompleted Batch used as the baseline. Empty for classes.
Recipe NameRecipe taken from that Golden Batch
Recipe VersionRecipe version taken from that Golden Batch

 Toolbar, left to right:

ButtonWhat it does
AddMenu: Create Golden Batch Configuration or Create Golden Batch Configuration Class
EditOpens the selected class or Configuration
DeleteDisables the selected item after confirmation. Disabled items leave the list. The name stays reserved.
CopyRemembers the selected item
PastePastes a copy under the selected class, or at the root if nothing is selected

 Search ... filters the list by name. * and ? are wildcards. When paging is on, page size choices are 10, 25, 50, 100, and 200. The choice is remembered for this browser. The column-visibility control hides columns you do not need.

Edit, Delete, and Copy stay disabled until a row is selected. Paste stays disabled until something has been copied.

Set enableCreateGoldenBatchConfig, enableEditGoldenBatchConfig, enableDeleteGoldenBatchConfig, or enableCopyPaste to false to hide the matching buttons on a read-only view.

Copy a Configuration

  • Select the Configuration and click Copy.

  • Select the destination class, or clear the selection to paste at the root.

  • Click Paste.

Paste saves the copy immediately. The copy keeps the same Golden Batch ID and the same parameter overrides. Its name is the next available name under that parent. Edit can change the name, description, and parameter policy. Golden Batch ID stays locked.

To keep those overrides and point them at a different completed Batch, use copyConfig with a new goldenBatchID, then saveConfig. Overrides are rematched by item path. Paths that do not exist on the new Batch are dropped. The UI paste action does not change the Golden Batch ID.

Copying a class copies the class itself. Child classes and Configurations are not copied with it.

Compare a finished production Batch

  • Open the view that contains Golden Batch Comparison Viewer.

  • Set the target Batch and a baseline:

    • goldenBatchConfig alone uses that Configuration's Batch as the baseline and applies its include and tolerance policy.

    • goldenBatchID alone compares the two Batch IDs with recipe-default inclusion and tolerances.

    • Both together use goldenBatchID as the baseline and the Configuration as the policy. The Configuration's anchored Batch must use the same Master Recipe as that baseline.

  • The table loads. While it loads, the viewer shows: Please wait while comparison data is loading…

  • Golden values are highlighted with the Golden color (default green). Target values that differ are highlighted with the target color (default red). Highlight differences is on by default. Clear it to read the table without those colors.

  • The badge on Target Batch is the number of mismatched parameters. Hover the badge for the mismatch count.
ColumnMeaning
NameStep or parameter. In the tree this is the step or parameter name. In Show flattened view the path is shown with the name, for example {}P2/UP2:Material_PhaseB and Jacket_Temperature.
ExecutionOccurrence number when the same step ran more than once, or when the two Batches did not run it the same number of times.
Golden BatchBaseline value, with engineering units under the number when the recipe defines them.
Target BatchValue from the Batch you are reviewing, with that Batch's engineering units.
Percent DeviationTarget change as a percent of the Golden value, when both are numeric. 84.5 against 78 shows as 8.33%.
Actual DeviationTarget minus Golden, when both are numeric.
Lower Tolerance / Upper ToleranceAllowed band. A trailing % is relative. A number without % is absolute. A leading + or - is kept when the recipe stored one.
ActionTrack Value when history or a process-value profile is available.
Golden Batch Comparison Viewer. Golden values are green, differing target values are red, and the badge on Target Batch is the mismatch count. Blue Track Value buttons open history.

Golden Batch Comparison Viewer. Golden values are green, differing target values are red, and the badge on Target Batch is the mismatch count. Blue Track Value buttons open history.

Toolbar:

ControlWhat it does
Show only mismatched parameter valuesHides rows that matched. The viewer reloads the comparison when you change this box.
Show flattened viewDrops the step tree and lists parameters in one table.
Highlight differencesColors Golden and differing target values.
ExportDownloads the current comparison as comparisonData_<timestamp>.json. Disabled while the table is loading, empty, or in error.
PrintPrints the current table. Hidden on a workstation session. Disabled in the same cases as Export.

 A row is a mismatch in these cases:

  • A numeric parameter with a tolerance is a mismatch when the target value falls outside that band. A different number that stays inside the band is a match.
  • When both Batches recorded a process value, the row is also a mismatch if any target sample leaves the tolerance around the Golden curve at the same elapsed time. The row stays a mismatch when the final value has come back inside the band.
  • A parameter with no tolerance, and any non-numeric parameter, is a mismatch when the values are not equal.
  • A process value recorded on only one Batch is a mismatch.

Clear Show only mismatched parameter values to see rows that stayed inside the band. Track Value is on those rows once they are visible. A curve that stayed inside the band looks like this. A curve that leaves the band is a mismatch even when the final values match. That chart is in section 8.

Overlay chart of a run that stays inside the tolerance band. The target differs from the Golden curve and remains a match.

Overlay chart of a run that stays inside the tolerance band. The target differs from the Golden curve and remains a match.

Other states:

  • If every compared row matches, the table shows No differences to display.
  • If the Batches are not complete, do not share a Master Recipe, or the Configuration name cannot be resolved, the viewer shows An error occurred while getting comparison data. and Please try selecting another batch pair to compare.
  • A grey Track Value button means there is nothing further to open. A blue button opens Value History.
  • A parameter recorded on only one Batch still compares. Track Value loads the profile that exists and leaves the other side blank.

Review process-value history

Track Value opens Value History: followed by the parameter path, for example Value History: /{}/P2/UP2:Material_PhaseB.Jacket_Temperature.

The dialog has three parts. They keep their size while data arrives, so the chart does not jump when the first page lands.

  • Value-change history pairs the Golden Batch's Nth value change with the target Batch's Nth value change. Columns are #, Golden Batch Value, Golden Batch Time, Target Batch Value, and Target Batch Time. If there is no history, the dialog says No value history is available for this parameter.
Value History for a state parameter. Each row pairs one Golden value change with the target value change at the same step.

Value History for a state parameter. Each row pairs one Golden value change with the target value change at the same step.

  • Process-value chart, when either side has a recorded profile.
  • Recorded Process Values table and a status footer. The exact table appears after every requested side has finished paging. Until then the area shows Loading data…

Chart layouts:

LayoutWhat you see
OverlayBoth Batches on one chart. The Golden curve is the reference. A band around it is the tolerance. The target curve changes color where it leaves that band. The legend counts out-of-tolerance samples, for example Out of tolerance (1).
Side by sideGolden on the left, target on the right, sharing the time axis. Lock Y-axis keeps the same value scale on both so a large deviation stays obvious. Turn Lock Y-axis off when each chart should scale itself.
StackedThe two charts, one above the other.

 

Time alignment:

AlignmentWhat it does
Since step startLines both profiles up from the moment each step execution began.
Since batch startPlaces each profile where its step execution fell inside its own Batch. A caption reports how long after Batch start each step began.
By occurrencePairs Golden and target by occurrence number, the same pairing as the Recorded Process Values table.


Overlay chart. Both profiles share one time axis from the step start. The target turns red where it leaves the tolerance band. The footer shows Golden 144 and Target 144 points loaded.

Overlay chart. Both profiles share one time axis from the step start. The target turns red where it leaves the tolerance band. The footer shows Golden 144 and Target 144 points loaded.

Side by side, with Lock Y-axis on and alignment By occurrence. Golden is on the left and the target, including the out-of-tolerance stretch, is on the right.

Side by side, with Lock Y-axis on and alignment By occurrence. Golden is on the left and the target, including the out-of-tolerance stretch, is on the right.

Stacked, aligned Since batch start. The target step begins later in its own Batch, so its curve starts farther to the right.

Stacked, aligned Since batch start. The target step begins later in its own Batch, so its curve starts farther to the right.

Combined tooltip puts both Batches' numbers in one popup. Leave it off to read one chart at a time. In side-by-side and stacked layouts, the target tooltip adds Golden expected, Deviation, Deviation %, and Tolerance status.

Chart tools:

  • Hover a point to inspect Actual value, Elapsed time, Recorded at, and Change from previous.
  • Click a point to focus it. Later tooltips include Change from focused. Clear focus drops the pinned point. If the focused point is outside the current zoom, the status says outside current view.
  • Zoom mode: drag across the chart to zoom a time range. The mouse wheel and − / + also zoom. The helper reads Zoom mode: Drag across the desired range to zoom.
  • Pan mode: drag horizontally through a zoomed range. Shift plus the mouse wheel also pans. Hold Ctrl to temporarily use the other tool.
  • Reset view returns to the full profile. Full range means the chart shows the entire profile. After a zoom, that control shows the visible interval. Click it to return to the full profile.
  • Leave Mini timeline on and drag its window to move through a long run.
  • The Recorded Process Values table lists Elapsed Time and Recorded At for each side. Check Hide In-Tolerance values to keep only out-of-tolerance samples. The heading updates to Showing {shown} of {total} rows. If the filter hides every row, the table says No out of tolerance values.
Focused point on an overlay chart. The tooltip shows the change from the focused sample, and out-of-tolerance rows in the Recorded Process Values table are highlighted.

Focused point on an overlay chart. The tooltip shows the change from the focused sample, and out-of-tolerance rows in the Recorded Process Values table are highlighted.

  • The footer reports progress while pages load: Loading with Golden {loaded}/{total} · Target {loaded}/{total}. When both sides finish it says Loaded and Golden {n} · Target {n} points. A side that was never recorded shows an em dash instead of a count.
  • If a page fails, the footer turns to Errored and Data could not be loaded. Press Retry to load again. That sentence is the same for every failure. Retry reloads only the failed side and leaves a side that already succeeded alone.
    • A page that could not be read, did not continue the requested page, or repeated samples already loaded keeps the samples that were accepted. Retry asks for that same page again.
    • A cursor that has expired, is not valid, or does not match the requested page cannot be used again. That side's samples are cleared, and Retry starts that side from the first page.
    • If the stored profile changes while pages are loading, that side is cleared the same way. Retry starts it from the first page. The other side is left as it was.
  • Click Close when you are finished.

A time-weighted profile is labeled (time-weighted) on the legend. A raw profile has no extra label. When no tolerance is configured, the chart says No tolerance is configured for this parameter, so no band is shown. When a profile exists and contains no samples, it says No process values were recorded for this parameter.

Layout, alignment, Lock Y-axis, Combined tooltip, Mini timeline, and Hide In-Tolerance values are remembered in this browser.

Samples are loaded in pages as you open the dialog. They are not part of the first comparison table. The browser keeps up to 250,000 samples from profiles you have opened. Opening another large profile drops the oldest closed profile from that memory. The dialog you have open is kept. Opening a dropped profile loads it from the gateway again. This does not show the error footer.

Date and number formatting:

PlaceHow it is formatted
Comparison table date-timesThe viewer's dateTimeFormat, applied in the gateway's default locale and time zone. The default pattern is yyyy-MM-dd HH:mm:ss.SSS, for example 2026-07-02 10:30:00.000. An invalid pattern throws when the comparison is requested. Other patterns: EEE, MMM d, yyyy h:mm a z, yyyy.MM.dd G 'at' HH:mm:ss z, YYYY-'W'ww-u.
Comparison table numbersUp to two fraction digits, with grouping turned off. 84.5 stays 84.5. A percent such as 8.33% is the deviation ratio times 100.
Value History Recorded AtThe session locale and time zone, through the browser's local date-time format.
Chart tooltip Recorded atUTC, in ISO 8601, for example 2026-07-02T17:30:00.000Z.
Elapsed Time and the chart time axisA duration, m:ss. When the span is one hour or longer, the labels become h:mm:ss. This is not a clock time.
Occurrence axis# followed by the occurrence number, for example #2.
Chart valuesAn integer is shown as-is. A fraction whose absolute value is below 10 uses two decimals. Any other fraction uses one decimal.

comparisonColors changes the Golden, target, and out-of-tolerance colors in the table and on the chart. Defaults, and a view with those colors replaced, are in Component properties.

 

Use cases

Capture this week's good Batch as the line standard

A Batch finished in spec and should replace "remember Batch ID GB-014" for the rest of the week.

  • Create or select the class for that line.
  • Create a Configuration named Week 38 Standard.
  • Load the completed Batch ID.
  • Leave recipe tolerances in place unless quality has a tighter limit.
  • Save.
  • On the operator view, bind Comparison Viewer goldenBatchConfig to Week 38 Standard.

Ignore operator comments, tighten one temperature

The recipe compares every parameter, but comment fields create noise and jacket temperature is allowed only ±2%.

  • Edit the Configuration.
  • Turn on Show all parameters, including non-numeric.
  • Clear Include in Golden Batch comparison on comment and note parameters.
  • On Jacket_Temperature, set lower and upper tolerance to 2 and choose %.
  • Save.
  • Compare the next completed Batch. Comments are absent. A jacket temperature outside ±2% of the Golden value is a mismatch, and Track Value draws the target in the out-of-tolerance color where it leaves the band.

Compare two Batch IDs without a saved policy

A supervisor wants a one-off look at RUN-088 against GB-014 and does not need a named Configuration.

  • Set Comparison Viewer goldenBatchID to GB-014.
  • Set targetBatchID to RUN-088.
  • Leave goldenBatchConfig blank.
  • Review mismatches, then open Track Value on the process parameter that drifted.

Inclusion and tolerances come from the recipe. Nothing is saved.

Apply a line policy to a different completed Batch

Week 38 Standard holds the include/exclude choices, and a supervisor wants those choices applied to GB-020 rather than to the Configuration's own Batch.

  • Bind goldenBatchConfig to Week 38 Standard.
  • Bind goldenBatchID to GB-020.
  • Bind targetBatchID to the Batch under review.

GB-020 is the baseline. The Configuration supplies the policy. GB-020 and the Configuration's anchored Batch must share a Master Recipe, and the target must share that Master Recipe too.

Review one unit on a unit screen, keep the Configuration broad

Keep the Configuration broad so other screens still see every parameter. On a unit-specific view, operators still use Comparison Viewer for the full comparison. To limit a scripted report to one unit or parameter family, use createGoldenBatchComparisonFilter as described in the reference. The viewer itself shows the full comparison for the bound Batches.

Replace the standard Batch and keep the same exclusions

A newer completed Batch should become the baseline, and the include/exclude choices should move with it.

Paste in Configuration Manager keeps the original Golden Batch ID. Use copyConfig with the new Batch ID, as shown in the reference, then point the operator view at the new Configuration name. Overrides whose item paths still exist are kept. Paths that do not exist on the new Batch are dropped.

See when a slow step drifted, not only the final value

Jacket temperature's final value is back inside the band, and quality still wants the curve.

  • Compare the finished Batch.
  • If any sample left the band, the row stays in the mismatch list. Open Track Value on that row.
  • If the whole curve stayed inside the band, the row is hidden while Show only mismatched parameter values is on. Clear that box, then open Track Value.
  • Use Since step start to overlay the two runs from the start of the step.
  • Check Hide In-Tolerance values to list only the samples that left the band.