EAUnicreteGenItemsAllAllowMustApply
This document was generated using Claude.ai
Overview
Enhanced version of the item generation process with stricter allow rule enforcement. Generates inventory items based on item class hierarchies but applies more restrictive validation where all allow rules must be satisfied at each hierarchical level, ensuring that every item class in the combination must be explicitly allowed.
When This Action Runs
Manual execution on item sections or item classes when strict item generation is needed with comprehensive allow rule validation, typically used when business rules require that every item class level must be explicitly permitted rather than just having any applicable allow rule.
How It Works
- Inherits base functionality - Uses all features from EAUniCreteGenItems for tree building and item creation
- Enhances allow rule validation - Overrides the allowRangeApplicable method with stricter logic:
- Groups allow rules by item class level (section, class1, class2, etc.)
- For each item class in the combination, checks if it appears in the allowed set for its level
- Requires that ALL item classes must be explicitly allowed at their respective levels
- Rejects combinations where any class level is not explicitly permitted
- Applies level-by-level validation - Ensures comprehensive rule coverage across all hierarchy levels
- Maintains parent processing - All other item generation logic remains identical to parent class
Parameters
Parameter 1: Test Only (Optional) - true to skip item creation, empty to create items
Parameter 2: Log Into Field (Optional) - Field name to log generation details and tree structure
Parameter 3: Mark Items for Deletion (Optional) - true to mark unused items in description5 field
Parameter 4: Delete Unneeded Items (Optional) - true to actually delete items not in generated set
Database Tables Affected
- InvItem - Creates new items or updates existing item classifications
- Item Classes (1-10) - Reads class hierarchies and relationships (read-only)
- ItemSection - Reads section configurations and settings (read-only)
- ItemClassRange - Reads allow/disallow relationship rules with stricter validation (read-only)
- UOMGroup - Reads unit of measure group configurations (read-only)
Module: supplychain
Full Class Name: com.namasoft.modules.supplychain.domain.utils.plugnplay.EAUnicreteGenItemsAllAllowMustApply
Parent Class: EAUniCreteGenItems
Input Type: Item Classes or Item Sections
Related Actions:
- EAUniCreteGenItems - Base item generation functionality
- EAUniCreteGenAssemblyBOM - Related BOM generation
- Item classification management actions