Inbound Detection
Introduction
InboundDetectionActivity is a MES-specific inbound detection base class node that provides common infrastructure for various inbound detection functions. This node provides common methods for collecting material parameters, getting product state detection configuration, getting missing process detection configuration, getting duplicate code detection configuration, etc., for use by subclass nodes.
Configuration Items
This node acts as a base class and does not have direct property configurations.
Output Variables
| Variable Name | Constant | Type | Description |
|---|---|---|---|
| TraceMaterialModels | FlowItemCollection.TraceMaterialModels | List<TraceMaterialModel> | Collected Material Detection Parameters |
Business Logic
Provided Common Methods
1. GetMaterialVariableValue - Get Material Parameters
Collects material variables based on configuration. Checks cache first, then checks material detection configuration. If detection is enabled on product inbound, it extracts barcode variables from MaterialParameters, reads values via IFlowVariableService, and builds a list of TraceMaterialModel.
2. GetProductStateDetectionAsync - Get Product State Detection Config
Returns corresponding configuration value based on whether it is in inspection mode:
| Mode | Return Value |
|---|---|
| Inspection Mode | ProductStateDetectionOfInspection |
| Normal Mode | ProductStateDetection + ProductStateDetectionOfCrossLine |
3. GetMissingProcessDetectionAsync - Get Missing Process Detection Config
Returns corresponding configuration value based on whether it is in inspection mode:
| Mode | Return Value |
|---|---|
| Inspection Mode | MissingProcessDetectionOfInspection |
| Normal Mode | MissingProcessDetection + MissingProcessDetectionOfCrossLine |
4. GetDuplicateCodeDetectionAsync - Get Duplicate Code Detection Config
Returns corresponding configuration value based on whether it is in inspection mode:
| Mode | Return Value |
|---|---|
| Inspection Mode | DuplicateCodeDetectionOfInspection |
| Normal Mode | DuplicateCodeDetection |
Material Detection Trigger Conditions
Material parameter collection is executed only when the following conditions are met:
| Config Item | Value | Description |
|---|---|---|
| MaterielStateDetection | OnProductInbound | Material State Detection executes on product inbound |
| MaterielMissingProcessDetection | OnProductInbound | Material Missing Process Detection executes on product inbound |
Subclass Nodes
The following nodes inherit from InboundDetectionActivity:
| Node | Description |
|---|---|
| DuplicateCodeDetectionActivity | Duplicate Code Check |
| ProductStateDetectionActivity | Product State Detection |
| MissingProcessDetectionActivity | Missing Process Detection |
| MaterialDetectionActivity | Material Detection |
Usage Example
Typical Inbound Detection Flow
┌──────────────────┐
│InboundInitialize │
│ Inbound Init │
└────────┬─────────┘
│
▼
┌──────────────────┐
│DuplicateCodeDetection│ ← Inherits from InboundDetectionActivity
│ Duplicate Check │
└────────┬─────────┘
│
▼
┌──────────────────┐
│ProductStateDetection│ ← Inherits from InboundDetectionActivity
│ State Detection │
└────────┬─────────┘
│
▼
┌──────────────────┐
│MissingProcessDetection│ ← Inherits from InboundDetectionActivity
│ Missing Process │
└────── ──┬─────────┘
│
▼
┌──────────────────┐
│ MaterialDetection │ ← Inherits from InboundDetectionActivity
│ Mat. Detection │
└──────────────────┘
Notes
- Base Class Node: This node is a base class and should not be used directly in the flow.
- Inspection Mode: Inspection mode uses independent configuration items, separate from normal production.
- Cross-Line Production: Some detections support extra configuration for cross-line production.
- Material Collection: Material parameter collection uses TraceId for tracking.
- Caching Mechanism: Material data is cached to flow context to avoid repeated collection.