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
  • Method Details

    • getTargetObjects

      public WTCollection getTargetObjects(Object primaryBusinessObject) throws WTException
      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:
      getTargetObjects in interface BusinessRuleSetRelationshipDelegate
      Parameters:
      primaryBusinessObject -
      Returns:
      - The collection objects on which BusinessRule will be applied by ESI renderers.
      Throws:
      WTException
      See Also:
    • getAssociatedEnterpriseData

      protected WTCollection getAssociatedEnterpriseData(WTPart part) throws ESIRendererException
      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

      protected WTCollection adjustTargetObjects(WTCollection targetObjects) throws ESIRendererException
      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