Class ESIPartRelationshipDelegate
java.lang.Object
com.ptc.windchill.esi.businessRules.relationship.ESIPartRelationshipDelegate
- All Implemented Interfaces:
BusinessRuleSetRelationshipDelegate
public class ESIPartRelationshipDelegate
extends Object
implements BusinessRuleSetRelationshipDelegate
This is a class intended to handle wt.part.WTPart as a primary business object. The delegate will attempt to return a
set of enterprise data objects based on the object type above. If the primary business object is not a valid type,
then an error will be logged, and an empty set will be returned.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected WTCollectionadjustTargetObjects(WTCollection targetObjects) Allow subclasses to update collection that is populated by OOTB logic before BusinessRule is applied on collection of objects.protected WTCollectionCollects enterprise data objects associated with part.getTargetObjects(Object primaryBusinessObject) Returns the collection of object for the input part object to apply business rule to decide production BOM publication while publishing Bill of Material using ESI.
-
Method Details
-
getTargetObjects
Returns the collection of object for the input part object to apply business rule to decide production BOM publication while publishing Bill of Material using ESI.
Supported API: true
Extendable: false- Specified by:
getTargetObjectsin interfaceBusinessRuleSetRelationshipDelegate- Parameters:
primaryBusinessObject-- Returns:
- - The collection objects on which BusinessRule will be applied by ESI renderers.
- Throws:
WTException- See Also:
-
getAssociatedEnterpriseData
Collects enterprise data objects associated with part.
Supported API: true- Parameters:
part- - The part for which enterprise data objects need to be collected.- Returns:
- - The collection of enterprise data objects associated with input part.
- Throws:
ESIRendererException
-
adjustTargetObjects
Allow subclasses to update collection that is populated by OOTB logic before BusinessRule is applied on collection of objects. Default implementaion of API is to return input collection as is.
Supported API: true- Parameters:
targetObjects- - The collection objects on which BusinessRule will be applied by ESI renderers.- Returns:
- - The adjusted collection of objects.
- Throws:
ESIRendererException
-