Class CEMRelationshipDelegate

java.lang.Object
com.ptc.qualitymanagement.cem.businessrules.CEMRelationshipDelegate
All Implemented Interfaces:
BusinessRuleSetRelationshipDelegate

public class CEMRelationshipDelegate extends Object implements BusinessRuleSetRelationshipDelegate
Gathers the collected objects listed below for a Customer Experience. Any primary object listed below can be provided as the primary business objects. This relationship delegate is registered with the key CustomerExperience in CEM.service.properties.xconf.

Objects Collected Out-of-the-Box:

  • Customer Experience (CustomerExperience)
  • Reported Product Details (Product Effect Code, Reported Failure Mode, Reported Against)
  • Activities (General Activities, Product Activities, and QMS Activities)
  • Investigation (Product Investigation Activity, History Review, Disposition, Testing Results, Decontamination History)
  • Regulatory Report (Regulatory Report Decision, Regulatory Reports)
  • Related Objects (Experienced Effects, Trending Code, Evaluation, Summary and Review)
  • Associated Process Objects (ChangeProcessLink)
  • Related Personal and Locations (QMSContact)

Primary Customer Experience Objects:

  • CustomerExperience
  • CEEvaluation
  • CEProductDetail
  • CEGeneralActivity
  • CEProductActivity
  • CEProductInvestigationActivity
  • CEDecontamination
  • CEProductInvestigation
  • CERegulatoryReport
  • CEReview
  • CERegulatoryReportSubmissionExternal
  • WorkItem with CustomerExperience, CEEvaluation, CEProductInvestigationActivity, or CERegulatoryReportDecision
Supported API: true
Extendable: true
  • Method Details

    • getTargetObjects

      public WTCollection getTargetObjects(Object primaryBusinessObject) throws WTException
      Get all the objects associated with a Customer Experience. See class level JavaDoc for details.

      Supported API: true
      Specified by:
      getTargetObjects in interface BusinessRuleSetRelationshipDelegate
      Parameters:
      primaryBusinessObject - Any Customer Experience Object Listed In Class-Level Javadoc
      Returns:
      all associated objects
      Throws:
      WTException
    • getReportedProductDetails

      protected Collection getReportedProductDetails(CustomerExperience cem) throws WTException
      Get Reported Product Details and related objects associated with a Customer Experience:
      • Product Effect Code
      • Reported Failure Mode
      • Reported Against Link


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated Product Detail objects
      Throws:
      WTException
    • getProductEffectCodes

      protected Collection getProductEffectCodes(CustomerExperience cem) throws WTException
      Get all the Effect Code objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated effect code objects
      Throws:
      WTException
    • getFailureModes

      protected Collection getFailureModes(CustomerExperience cem) throws WTException
      Get all the Failure Mode objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated failure mode objects
      Throws:
      WTException
    • getReportedAgainst

      protected Collection getReportedAgainst(CustomerExperience cem) throws WTException
      Get all Reported Against objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated reported against objects
      Throws:
      WTException
    • getActivities

      protected Collection getActivities(CustomerExperience cem) throws WTException
      Get all activity objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated activity objects
      Throws:
      WTException
    • getInvestigationObjects

      protected Collection getInvestigationObjects(CustomerExperience cem) throws WTException
      Get all investigation objects associated with a Customer Experience:
      • Product Investigation Activity
      • History Review
      • Disposition
      • Testing Results
      • Decontamination History


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated investigation objects
      Throws:
      WTException
    • getRegulatoryObjects

      protected Collection getRegulatoryObjects(CustomerExperience cem) throws WTException
      Get all Regulatory objects associated with a Customer Experience:
      • Regulatory Report Decision
      • Regulatory Reports


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated regulatory report objects
      Throws:
      WTException
    • getRelatedObjects

      protected Collection getRelatedObjects(CustomerExperience cem) throws WTException
      Get related objects associated with a Customer Experience:
      • Experienced Effects
      • Trending Code
      • Evaluation
      • Summary and Review
      • Summary and Review Codes


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated regulatory report objects
      Throws:
      WTException
    • getTrendingCodes

      protected Collection getTrendingCodes(CustomerExperience cem) throws WTException
      Get all the CETrendingCode objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      all associated trending code objects
      Throws:
      WTException
    • getEvaluation

      protected CEEvaluation getEvaluation(CustomerExperience cem) throws WTException
      Get the CEEvaluation object associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      CEEvaluation
      Throws:
      WTException
    • getSummaryAndReviewObjects

      protected Collection getSummaryAndReviewObjects(CustomerExperience cem) throws WTException
      Get all the objects associated with a Customer Experience's summary and review.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      Summary and Review Objects
      Throws:
      WTException
    • getExperiencedEffects

      protected Collection getExperiencedEffects(CustomerExperience cem) throws WTException
      Get all Experienced Effects objects associated with a Customer Experience.

      Supported API: true
      Parameters:
      cem - The Customer Experience Object
      Returns:
      Collection
      Throws:
      WTException
    • getAssociatedProcessObjects

      protected Collection getAssociatedProcessObjects(CustomerExperience cem) throws WTException
      Get Associated Process Objects:
      • ChangeProcessLink


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      Associated Process Objects (ChangeProcessLink)
      Throws:
      WTException
    • getQMSContacts

      protected Collection getQMSContacts(CustomerExperience cem) throws WTException
      Get Related Personal and Locations:
      • QMSContact


      Supported API: true

      Parameters:
      cem - The Customer Experience Object
      Returns:
      Related Personal and Locations (QMSContact)
      Throws:
      WTException
    • findCEMFromPrimaryBusinessObject

      protected CustomerExperience findCEMFromPrimaryBusinessObject(Object primaryBusinessObject) throws WTException
      Find the applicable Customer Experience object based on provided primary business object. See class level Java-Doc for applicable types of objects.

      Supported API: true

      Parameters:
      primaryBusinessObject - The Primary Business Object
      Returns:
      CustomerExperience
      Throws:
      WTException