Skip to content

Protocol Selection by Material Context#

Overview#

When a user opens a Protocol Instance for a Material, MES lists all available Protocols by default, regardless of where the Material is in the production flow.

The Protocol Selection by Material Context feature restricts the list of Protocols offered in the Open Protocol Instance wizard to those that are valid for the context of the Material (or Materials) involved. The valid Protocols are defined in a new Protocol Context Smart Table, MedDevProtocolMaterialFilteringContext.

Concept#

A global Configuration entry controls whether the feature is active:

  • False - MES behaves as it does without this feature: all Protocols are always shown, with no restriction.
  • True - the restriction described below is applied.

When the feature is active, the restriction is triggered whenever Open Instance is executed with at least one Material in context, either:

  • from the Material page, or
  • from the Resource or Step views, while one or more Materials are selected.

In these cases, MES resolves the Protocol Context table for each Material and only the resulting Protocols are available for selection in the Protocol field of the wizard.

If several Materials are selected, only the Protocols that are valid for all the selected Materials are available.

Warning

When the feature is active, a Protocol that is not configured in the Protocol Context table is not offered for Materials. To keep a Protocol always available, add it to the table without any context (see Protocol Context Table).


Setting up Protocol Selection by Material Context#

Global Configuration#

Enable the feature through the following Configuration entry:

Property Value
Entry /MedDev/ProtocolMaterialContext/EnableFiltering
Type Boolean
Default value False
  • False - no restriction is applied.
  • True - the Protocol Context table is used to restrict the Protocols offered when a Material is in context.

Protocol Context Table#

Configure the Protocol Context Smart Table (MedDevProtocolMaterialFilteringContext) to define, per Protocol, the context(s) in which it is valid.

The table includes the following columns:

Column Description
Step Step where the Material is.
Logical Flow Path Logical Flow Path of the Material.
Product Product of the Material.
Product Group Product Group of the Material's Product.
Flow Flow of the Material.
Material The Material itself.
Material State System State of the Material (for example, In Process).
Production Order Production Order of the Material.
Resource Resource where the Material was last processed.
Recipe Current Recipe Instance of the Material.
Protocol The Protocol that is valid in the configured context. Mandatory.

The following rules apply when adding rows:

  1. Only the Protocol column is mandatory.
  2. Each row defines one context in which the Protocol is valid. Fill in more than one column to narrow the context - all the filled-in columns must match the Material.
  3. Columns left empty do not restrict the context.
  4. A Protocol configured with no other column filled in is valid for every context, so it is always available for selection.
  5. A Protocol can have several rows. It is available when at least one of its rows matches the Material context.
  6. The same Protocol and context can be repeated, as the table allows repeated values.
  7. The columns of a row cannot be combined freely. Each row must follow one of the column combinations defined in the table (for example, Step and Resource, or Step and Material State). See Allowed column combinations.

Execution Behavior#

When the restriction applies#

Where Open Instance is executed Restriction applied?
Material page Yes
Resource or Step view, with one or more Materials selected Yes
Resource or Step view, without Material selected No - all Protocols are shown

Note

The restriction only applies when the global Configuration entry is set to True.

How the list of Protocols is resolved#

  1. MES identifies the Material, or Materials, in context.
  2. For each Material, MES resolves the Protocol Context table using the Material's Step, Logical Flow Path, Product, Product Group, Flow, Material State, Production Order, last processed Resource, current Recipe Instance and the Material itself.
  3. The Protocols available for selection are the ones valid for all the Materials in context.

No valid Protocol#

If no Protocol is valid for the Material context, the list of Protocols is shown empty and the following warning is displayed:

No Protocols configured correctly in the MedDevProtocolMaterialFilteringContext Smart Table.

Example#

Consider the following Protocol Context table:

Protocol Step Resource
Protocol X S R1
Protocol Y S R2
Protocol W S

Protocol Z is not configured in the table.

Scenario Protocols available
Feature disabled X, Y, W, Z (all Protocols)
Open Instance from the page of Material A, which is at Step S and was last processed on Resource R1 X, W
Open Instance from the page of Material B, which is at Step S and was last processed on Resource R2 Y, W
Open Instance from the Step view, with Materials A and B selected W (X is only valid for A, and Y is only valid for B)
Open Instance for a Material at Step S, last processed on Resource R3, if Protocol W was not configured None (empty list and warning)
Open Instance from the Step view, without Materials selected X, Y, W, Z (all Protocols)

Out of scope#

This feature does not change the following behaviors:

  • Opening a Protocol Instance with Open Instance without a Material selected, either from the Protocol page or from the Resource or Step views with no selection. In these cases, all Protocols continue to be shown.
  • Adding a Material to a Protocol Instance that is already open.
  • Protocol Instances opened automatically by MES based on a Material's context, such as Limit Set violations or Inspection Order failures.

Administration#

Configuration Entry: /MedDev/ProtocolMaterialContext/EnableFiltering#

Boolean entry, created with the value False if it does not exist. Enables or disables the restriction of the Protocols offered for a Material. See Global Configuration.

Smart Table: MedDevProtocolMaterialFilteringContext#

Used to resolve which Protocols are presented as options when a new Protocol Instance is opened for a Material. History is enabled and repeated values are allowed. See Protocol Context Table.

Allowed column combinations#

A row can only use one of the following combinations of columns. Columns not listed in the combination must be left empty. The Protocol column is always filled in.

Show the allowed combinations
Combination
Step + Logical Flow Path + Material + Resource + Recipe
Step + Material + Material State + Resource + Recipe
Step + Logical Flow Path + Production Order + Material State + Resource + Recipe
Step + Flow + Production Order + Material State + Resource + Recipe
Step + Production Order + Material State + Resource + Recipe
Step + Product + Material State + Resource + Recipe
Step + Product Group + Material State + Resource + Recipe
Step + Logical Flow Path + Material State + Resource + Recipe
Step + Flow + Material State + Resource + Recipe
Step + Material State + Resource + Recipe
Step + Logical Flow Path + Material
Step + Material + Material State
Step + Logical Flow Path + Production Order + Material State
Step + Flow + Production Order + Material State
Step + Production Order + Material State
Step + Product + Material State
Step + Product Group + Material State
Step + Logical Flow Path + Material State
Step + Flow + Material State
Step + Material State
Step + Logical Flow Path
Step + Flow
Step + Product Group
Step + Product
Step + Material
Step + Resource
Step + Production Order
Step
Material
Logical Flow Path
Flow
Product Group
Product
Resource
Material State
Production Order
Recipe