| java.lang.Object org.ofbiz.manufacturing.bom.BOMServices
BOMServices | public class BOMServices (Code) | | Bills of Materials' services implementation.
These services are useful when dealing with product's
bills of materials.
author: Jacopo Cappellato |
getItemConfigurationTree | public static Map getItemConfigurationTree(DispatchContext dctx, Map context)(Code) | | It reads the product's bill of materials,
if necessary configure it, and it returns
an object (see
ItemConfigurationTree and
ItemConfigurationNode ) that represents a
configured bill of material tree.
Useful for tree traversal (breakdown, explosion, implosion).
Parameters: dctx - Parameters: context - |
getMaxDepth | public static Map getMaxDepth(DispatchContext dctx, Map context)(Code) | | Returns the product's low level code (llc) i.e. the maximum depth
in which the productId can be found in any of the
bills of materials of bomType type.
Parameters: dctx - Parameters: context - |
searchDuplicatedAncestor | public static Map searchDuplicatedAncestor(DispatchContext dctx, Map context)(Code) | | Returns the ProductAssoc generic value for a duplicate productIdKey
ancestor if present, null otherwise.
Useful to avoid loops when adding new assocs (components)
to a bill of materials.
Parameters: dctx - Parameters: context - |
|
|