APIs for Custom Configuration
BOM Transformer Visualization APIs
protected void
handleVizDataCarryForwardOnEquivalenceLinkCreation(Collection<EquivalenceLink> allLinks)
throws WTException;
If the property com.ptc.windchill.associativity.viz.carryForwardRepresentationForAssembly is configured to true, the representations and QuickView thumbnails for assemblies are carried forward from the upstream to the downstream structure. However, they are carried forward only if they were not already available in the downstream structure after the following actions were performed:
Creating or updating equivalence links using the Create Equivalent Link or Update To Current Upstream Equivalent Object action.
BOM transformation of assemblies
The API provides customization hooks to determine and filter the equivalent downstream assembly parts for which the visualization information should be carried forward.
protected void filterNewDownstreamsForVizDataDeletion(
Map<Representable, Collection<Representable>> upstreamToDownstreamMap)throws WTException
If the property com.ptc.windchill.associativity.viz.carryForwardRepresentationForAssembly is configured to false, the API filters the downstream structure for which the visualization data should not be deleted when the upstream node is a leaf. This method can be overridden to filter based on additional custom logic.
protected void deleteVizDataForNewDownstreamAssemblies(
Map<Representable, Collection<Representable>> upstreamToDownstreamMap)throws WTException
If the property com.ptc.windchill.associativity.viz.carryForwardRepresentationForAssembly is configured to false, this method is called only for assemblies that were newly created and have representations and QuickView thumbnails carried forward by infrastructure. OOTB, it will delete all representations and QuickView thumbnails. This method can be overwritten for further filtering the parts for which the visualization data should be deleted or additional cleanup should be performed, such as deleting only default representations.
public void manageQuickViewForParents(
Collection<AssociativePath> parentsPaths) throws WTException;
Deletes QuickView thumbnails for the following parts:
Parent parts till common equivalent context during structure changes in BOM transformer.
Parent parts till root part when using the Remove action in BOM Transformer.
The API provides customization hooks to determine the deletion of QuickView thumbnails for parent parts.
Representation Job APIs
public abstract WTCollection findPartRepresentablesForRepresentationJob(
final WTContainerRef parentContainerReference,final WVSContentHelper.IterationType iterationType)
Returns assembly parts from the input container to be processed by the schedulers MPMPublishObjectsNoRepresentation and PMRePublishAllDefaultRepresentation. This can be overridden to further filter out parts or query specific types of parts for generating representations using schedulers.
public abstract WTCollection getEquivalentPartsForRepresentationJob(final WTSet sourceRepresentables);
Collects assembly parts from the input sourceRepresentables. It collects parts that have valid upstream equivalent links and skips self-equivalent parts. The valid parts are returned for generating new representations using schedulers. The API provides hooks to support custom logic.
public abstract WTCollection getAllocatedPartsForRepresentationJob(final WTSet sourceRepresentables);
Collects assembly parts from the input sourceRepresentables allocated to the latest iteration of MPMOperation. Collected parts are returned for generating new representations using schedulers. The API provides hooks to support custom logic.
public abstract WTCollection getResourcesForRepresentationJob(final WTSet sourceRepresentables);
Collects assembly resources (work center and tooling) from the input sourceRepresentables. Valid work centers and tooling are returned for generating new representations using schedulers. The API provides hooks to support custom logic.
public abstract boolean isValidForRepRepublishJob(final Representable representable,
final Representation defaultRepresentation);
Provides customization hooks to validate and return if representable is valid for republishing representations.
QuickView Job APIs
public abstract WTCollection findPartRepresentablesForQuickViewJob(
final WTContainerRef parentContainerReference,WVSContentHelper.IterationType iterationType)
Returns the assembly parts from the input container to be processed by the schedulers MPMGenerateQuickViewLatestIterationAllRep and MPMRegenerateQuickViewLatestIterationAllRep. This method can be overridden to further filter out parts or query specific types of parts for the QuickView scheduler jobs.
public abstract WTCollection getEquivalentPartsForQuickViewJob(final WTSet sourceRepresentables);
Collects assembly parts from the input sourceRepresentables. It collects parts that have valid upstream equivalent links and skips self-equivalent parts. Collection of valid parts are returned for generating or re-generating QuickView thumbnails using schedulers. The API provides hooks to support custom logic.
public abstract WTCollection getAllocatedPartsForQuickViewJob(final WTSet sourceRepresentables);
Collects assembly parts allocated to the latest iteration of MPMOperation from the input sourceRepresentables. Valid parts are returned for generating or re-generating QuickView thumbnails using schedulers. The API provides hooks to support custom logic.
public abstract WTCollection getResourcesForQuickViewJob(final WTSet sourceRepresentables);
Collects assembly resources (work center and tooling) from the input sourceRepresentables. Valid work centers and tooling are returned for generating or re-generating QuickView thumbnails using schedulers. The API provides hook to support custom logic.
這是否有幫助?