Class TraceabilityStatusHelper

java.lang.Object
com.ptc.windchill.enterprise.tracelink.util.TraceabilityStatusHelper

public class TraceabilityStatusHelper extends Object


Supported API: true
  • Method Details

    • checkTraceabilityStatus

      public static boolean checkTraceabilityStatus(Traceable traceableObject, String... typeInternalNames)
      Checks the traceability status for a given traceable object against one or more type internal names. This method determines if the provided traceable object has a traceability link for any of the given type of link (type internal names). It iterates over the provided variable arguments (`typeInternalNames`) to perform the traceability check.

      Supported API: true
      Parameters:
      traceableObject - The object for which traceability is being checked. If the object is not traceable, the method will return false.
      typeInternalNames - One or more internal names of link types to check for traceability. This parameter uses variable arguments, allowing the caller to specify zero, one, or multiple type internal names. If no names are provided, the method will check for all type of tracelinks.
      Returns:
      true if any matching link is found, false otherwise.