Interface UDIAttributePopulatorService
- All Known Implementing Classes:
AbstractUDIAttributePopulator,StandardFDAUDIAttributePopulator,StandardUdiSuperSet2AttributePopulator,StandardUdiSuperSetAttributePopulator
Implementations will be registered as service with the selector equal to the class name of the UDI Super Set object
it populates.
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreate a properly initialized instance of the correct type of UDI Super Set object.getOrderedAttributes(UDISubmission submission) Gets the list of ordered attributes based on the order of the human readable report.populateFromSouce(UDISubmission submission, Map attributes) Deprecated.populateFromSource(UDISubmission submission, Map attributes) Populate the UDI Super Set with attributes found in source systems.populateFromTemplate(UDISubmission submission, UDISubmission template) Populate the UDI Super Set with the default values provided by the template
Supported API: truevoidrefreshFromSource(UDISubmission submission) Update the UDI Super Set with values from the template and source systems.
-
Method Details
-
createUDISubmission
Create a properly initialized instance of the correct type of UDI Super Set object.
Supported API: true- Returns:
- The new instance of the UDI Super Set object
- Throws:
WTException
-
populateFromTemplate
Collection<UDISubmissionDetailsIfc> populateFromTemplate(UDISubmission submission, UDISubmission template) throws WTException, WTPropertyVetoException Populate the UDI Super Set with the default values provided by the template
Supported API: true- Parameters:
submission- The UDI Super Set to populatetemplate- The template containing the values to populate- Returns:
- The detail child objects created.
- Throws:
WTExceptionWTPropertyVetoException
-
populateFromSouce
@Deprecated Collection<UDISubmissionDetailsIfc> populateFromSouce(UDISubmission submission, Map attributes) throws WTPropertyVetoException, WTException Deprecated.API Deprecated; use populateFromSource.
Populate the submission with attributes found in source systems.The default implementation will find UDI Attribute values throughout the Windchill installation based upon the submittedForReference Part.
It is expected that customizations will extend the default implementations and override this method with calls to populate the UDI from source data.
Supported API: true- Parameters:
submission-attributes-- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-
populateFromSource
Collection<UDISubmissionDetailsIfc> populateFromSource(UDISubmission submission, Map attributes) throws WTPropertyVetoException, WTException Populate the UDI Super Set with attributes found in source systems.The default implementation will find UDI Attribute values throughout the Windchill installation based upon the Submitted For Reference Part.
It is expected that customizations will extend the default implementations and override this method with calls to external systems where UDI data is stored.
Supported API: true- Parameters:
submission- The UDI Super Set to populateattributes- A map of attributes defined in an excel spreadsheet which is read during import and populated on the UDI Super Set. The attribute parameter is only used during import. It is recommended to use REST API's to create UDI Super Sets instead of import.- Returns:
- The detail child objects created.
- Throws:
WTPropertyVetoExceptionWTException
-
refreshFromSource
Update the UDI Super Set with values from the template and source systems. This API is not supported for UDI Super Set2
Supported API: true- Parameters:
submission- The UDI Super Set to refresh- Throws:
WTExceptionWTPropertyVetoException
-
getOrderedAttributes
Gets the list of ordered attributes based on the order of the human readable report.
Supported API: true- Parameters:
submision- The submission containing the attributes to return- Returns:
- An ordered list of attributes
- Throws:
WTException
-