Interface BusinessRuleSetRelationshipDelegate

All Known Implementing Classes:
AffectedObjectsRelationshipDelegate, ESIPartRelationshipDelegate, IncludedInRelationshipDelegate, MaturityBaselineObjectsRelationshipDelegate, PromotionSeedObjectsRelationshipDelegate, PromotionTargetObjectsRelationshipDelegate, ResultingObjectsRelationshipDelegate

public interface BusinessRuleSetRelationshipDelegate
The relationship delegate is used to get the target objects for a primary business object that is to be evaluated for a particular business rule set.

Relationship delegates are registered in service.properties. The following is an example of a delegate for getting the resulting objects for a primary object:
 &ltService context="default" name="com.ptc.core.businessRules.relationship.BusinessRuleSetRelationshipDelegate"&gt
     &ltOption serviceClass="com.ptc.core.businessRules.relationship.ResultingObjectsRelationshipDelegate"
             selector="wt.change2.ChangeRecord2"
             cardinality="singleton"
             requestor="null"/&gt
 
The selector is the relationship key which is used lookup the relationship delegate instance. The relationship key naming convention is to use the link class name but is not a requirement. See BusinessRuleSetBean for details on how to specify the relationship for a business rule set and current supported relationship delegates.

Supported API: true

Extendable: true
  • Method Summary

    Modifier and Type
    Method
    Description
    getTargetObjects(Object primaryBusinessObject)
    Returns the target objects the given primary business object.
  • Method Details

    • getTargetObjects

      WTCollection getTargetObjects(Object primaryBusinessObject) throws WTException
      Returns the target objects the given primary business object.

      Supported API: true
      Parameters:
      primaryBusinessObject -
      Returns:
      target objects
      Throws:
      WTException