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
Supported API: true
Extendable: true
If additional fields are desired, the
getAttributeList() methods should be overloaded to provide the
attributes to propagate.
Supported API: true
Extendable: true
- See Also:
-
Field Summary
Fields inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
EXTERNALIZATION_VERSION_UID -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetAlternateAttributeName(String attributeName, ChangeItem changeItem) Will return Issue Priority for Request Priority when the change item is a Problem Report or Variance.Methods inherited from class com.ptc.windchill.enterprise.change2.forms.populators.FlexibleChangeObjectAttributePopulator
propagateAttributesMethods inherited from class com.ptc.windchill.enterprise.change2.forms.populators.ChangeObjectAttributePopulator
doPropagation, getAttributeList, getChangeObjectTemplate, getContainerRef, getFolderFromLaunchContext, getSystemCabinet, getTemplateAttributeValue, isTemplateSelected, isValidContainer, prePopulateAttributeDisplayValues, processAttribute, propagateAttributesFromObject, propagateTemplateAttributes, renderHTMLContent, setAttribute, setAttributeMethods inherited from class com.ptc.core.components.forms.DefaultAttributePopulator
attemptToSetAttrValueFromFormData, getAllValueChangedAttributes, getAttrValueFromFormData, getContainerRef, isContainerOverridable, readExternal, setAttributeState, setAttributeValues, writeExternal
-
Method Details
-
getAlternateAttributeName
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:
getAlternateAttributeNamein classcom.ptc.windchill.enterprise.change2.forms.populators.FlexibleChangeObjectAttributePopulator- Parameters:
attributeName- The attribute for the current create wizard objectchangeItem- The context object- Returns:
- the context object attribute
-