Class FlexibleChangeRequestAttributePopulator

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

public class FlexibleChangeRequestAttributePopulator extends com.ptc.windchill.enterprise.change2.forms.populators.FlexibleChangeObjectAttributePopulator
Pre-populate the TypeInstance of the Change Request based on the launching variance, problem report or flexible supported change object. Propagation from flexible supported change objects is only supported when the flexible association is enabled. If the launching point object is not a variance, problem report or flexible supported change object, 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() methods should be overloaded to provide the attributes to propagate.

Supported API: true

Extendable: true
See Also:
  • Method Details

    • getAlternateAttributeName

      protected String getAlternateAttributeName(String attributeName, ChangeItem changeItem)
      Will return Issue Priority for Request Priority when the change item is a Problem Report or Variance. When no alternate attribute name is found the passed in attribute name will be returned.

      Supported API: true
      Overrides:
      getAlternateAttributeName in class com.ptc.windchill.enterprise.change2.forms.populators.FlexibleChangeObjectAttributePopulator
      Parameters:
      attributeName - The attribute for the current create wizard object
      changeItem - The context object
      Returns:
      the context object attribute