Class RelatedChangesQueryCommands

java.lang.Object
com.ptc.windchill.enterprise.change2.commands.RelatedChangesQueryCommands
All Implemented Interfaces:
RemoteAccess

public class RelatedChangesQueryCommands extends Object implements RemoteAccess
Gets table row data for the related changes table given various types of context objects.

Supported API: true

Extendable: false
See Also:
  • Method Details

    • getRelatedProblemReports

      public static QueryResult getRelatedProblemReports(Changeable2 changeable) throws WTException
      Returns problem reports related to the given changeable.

      Supported API: true
      Parameters:
      changeable -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedChangeRequests

      public static QueryResult getRelatedChangeRequests(Changeable2 changeable) throws WTException
      Returns changes requests related to the given changeable.

      Supported API: true
      Parameters:
      changeable -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedAffectingChangeNotices

      public static QueryResult getRelatedAffectingChangeNotices(Changeable2 changeable) throws WTException
      Returns affected by change notices related to the given changeable.

      Supported API: true
      Parameters:
      changeable -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedResultingChangeNotices

      public static WTCollection getRelatedResultingChangeNotices(Changeable2 changeable) throws WTException
      Returns resulting from change notices related to the given changeable.

      Supported API: true
      Parameters:
      changeable -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedChangeRequests

      public static QueryResult getRelatedChangeRequests(ChangeIssueIfc changeIssue) throws WTException
      Returns changes requests related to the given problem report.

      Supported API: true
      Parameters:
      changeIssue -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedProblemReports

      public static QueryResult getRelatedProblemReports(ChangeRequestIfc changeRequest) throws WTException
      Returns problem reports related to the given change request.

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedChangeNotices

      public static QueryResult getRelatedChangeNotices(ChangeRequestIfc changeRequest) throws WTException
      Returns change notices related to the given change request.

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getRelatedProposalsAndInvestigations

      public static List<ChangeAnalysisIfc> getRelatedProposalsAndInvestigations(ChangeRequestIfc changeRequest)
      Get the list of items to show in the associated change analysis table for the given change request and mode should not be create

      Supported API: true
      Parameters:
      changeRequest -
      Returns:
      The list of ChangeAnalysis to display in the table.
      See Also:
    • getRelatedChangeRequests

      public static QueryResult getRelatedChangeRequests(ChangeOrderIfc changeNotice) throws WTException
      Returns change requests related to the given change notice.

      Supported API: true
      Parameters:
      changeNotice -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also:
    • getAssociatedChanges

      public static List<ChangeItemIfc> getAssociatedChanges(NmCommandBean cb, Class c) throws WTException
      Using the client data from change wizards returns the appropriate related changes. The following cases are accounted for: A. Create Change Request Wizard that is launch from a Problem Report or Variance. B. Create Change Notice Wizard that is launch from a Change Request. C. Edit Change Request Wizard, getting the existing related Problem Reports or Variances. D. Edit Change Notice Wizard, getting the existing related Change Requests. E. Edit Change Task Wizard or View Change Task info page, getting the existing related Change issues.

      Supported API: true
      Parameters:
      cb - The client data.
      c - The class for the change object that is getting created or modified in a wizard.
      Returns:
      A list of related change objects.
      Throws:
      WTException
      See Also:
    • getRelatedAnalysisActivities

      public static List<ChangeItemIfc> getRelatedAnalysisActivities(NmCommandBean cb)
      Using the client data returns the appropriate related Analysis Activities provided that the context object is a Change Proposal or a Change Investigation.

      Supported API: true
      Parameters:
      cb - The client data.
      Returns:
      A list of related Analysis Activities.
      See Also:
    • getPrimaryBusinessObject

      public static ChangeItem getPrimaryBusinessObject(FormDataHolder formData) throws WTException
      Gets the ChangeItem associated with the oid

      Supported API: true
      Parameters:
      formData - The formData of the object to query from
      Returns:
      The ChangeItem associated.
      Throws:
      WTException
    • getRelatedAffectingChangeReviews

      public static QueryResult getRelatedAffectingChangeReviews(Changeable2 changeable) throws WTException
      Returns affected by change reviews related to the given changeable.

      Supported API: true
      Parameters:
      changeable -
      Returns:
      QueryResult
      Throws:
      WTException
      See Also: