Class ChangeRequestAttributePopulator

java.lang.Object
com.ptc.core.components.forms.DefaultAttributePopulator
com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
com.ptc.windchill.enterprise.change2.forms.populators.ChangeRequestAttributePopulator
All Implemented Interfaces:
com.ptc.core.components.forms.AttributePopulator, Externalizable, Serializable

public class ChangeRequestAttributePopulator extends com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
Deprecated.
use FlexibleChangeRequestAttributePopulator
Pre-populate the TypeInstance of the Change Request based on the launching variance or problem report. If the launching point object is not a variance or problem report, this method will return the unmodified TypeInstance. If the launch point object is of a correct type, this code will only modify the TypeInstance if the Propagation Component is enabled (through preferences)
If additional fields are desired, the getAttributeList() and processAttribute() methods should be overloaded and provided with the additional implementation.

Supported API: true

Extendable: true
See Also:
  • Constructor Details

    • ChangeRequestAttributePopulator

      public ChangeRequestAttributePopulator()
      Deprecated.
      Populates the problem report or variance list of attributes to be propagated to the change request.

      Supported API: true
  • Method Details

    • setAttributeList

      public void setAttributeList(List<String> atts)
      Deprecated.
      Set the attribute list to process.

      Supported API: true
      Parameters:
      atts - The attribute list to process
    • processAttribute

      public void processAttribute(ChangeItem changeItem, String key, TypeInstance ti, AttributeTypeIdentifier ati, NmCommandBean cb) throws WTException
      Deprecated.
      Method responsible for processing the specified attribute against the current variance and problem report and storing this attribute value in the TypeInstance. Overriding this method in a subclass can override the attributes which are propagated. Currently the following attributes are handled:
      • name
      • description
      • needDate
      • category
      • priority


      Supported API: true
      Overrides:
      processAttribute in class com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
      Throws:
      WTException