Solution
Register filter delegates for processing new or existing operations. Create new actions, properties, and JSP for new operations.
Prerequisite Knowledge
To apply this best practice, you need to have an understanding of the following:
Basic development involving Java HTML forms, JSP, and XML.
The actions framework in the Windchill client architecture
The management of RBINFO file
Xconfmanager, wt.poperties and service.properties.
Solution Elements
Element
Type
Description
com.ptc.windchill.enterprise.massChange.filters.MassChangeFilterDelegate
Class
A filter delegate is used for the mass change client to filter out objects selected by the user that are ineligible for a specific mass change operation. Using the filtered list of eligible objects the filter delegate then creates, modifies, or deletes associations for the selected mass change operation. If an object is ineligible for the selected mass change operation, the ineligible object will not be processed
config/actions/MassChange-actions.xml
XML
Location for registering operations and associated filter delegates.
service.properties
properties
Location for registering the associating delegates for processing mass change document relationships.
com.ptc.windchill.enterprise.massChange.filters.AbstractDefaultFilterDelegate
Class
This class is responsible for implementing functionality common for processing the selected mass change operations. Handles the command bean and server excluded items.
com.ptc.windchill.enterprise.massChange.filters.AbstractWorkableFilterDelegate
Class
This class is responsible for processing the selected mass change operation. Also contains common filter logic for excluding logic for objects that are not eligible for the mass change operation. Performs operations that are specific to Workable including handling checkout operations.
com.ptc.windchill.enterprise.massChange.filters.AbstractPartUsageFilterDelegate
Class
This delegate contains filter logic to exclude row objects from a mass change operation based on logic that is specific to WTPartUsageLink operations.
com.ptc.windchill.enterprise.massChange.filters.AbstractDocumentLinkFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation on the selected document. The supported document types are wt.doc.WTDocument and wt.epm.EPMDocument.
com.ptc.windchill.enterprise.massChange.filters.AddDocumentLinkFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected document. The AssociationDelegate registered for the selected association type ("Referenced By", "Described By", or "Passive") which is used to filter or create the appropriate association links for the selected objects and the selected document. The supported document types are wt.doc.WTDocument and wt.epm.EPMDocument.
com.ptc.windchill.enterprise.massChange.filters.AddPartUsageFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate filters invalid selected objects and creates new part usage links for any valid objects selected given the user specified part.
com.ptc.windchill.enterprise.massChange.filters.ChangePartUsageFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate filters out invalid objects selected prior to performing the operation. Valid objects associated to the user specified part will have their attributes updated.
com.ptc.windchill.enterprise.massChange.filters.RemoveDocumentLinkFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected document. The AssociationDelegate registered for the selected association type ("Referenced By", "Described By", or "Passive") which is used to filter or remove the appropriate association links for the selected objects and the selected document. The supported document types are wt.doc.WTDocument and wt.epm.EPMDocument.
com.ptc.windchill.enterprise.massChange.filters.RemovePartUsageFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate filters invalid selected objects and removes the part usage links for the valid selected objects based on the user specified part.
com.ptc.windchill.enterprise.massChange.filters.ReplacePartUsageFilterDelegate
Class
This filter delegate determines whether the selected objects are eligible for the mass change operation for the selected parts. The delegate filters invalid selected objects or replaces the part usage links for the valid objects selected with the user specified replacement part.
com.ptc.windchill.enterprise.associations.AssociationDelegate
Interface
This delegate is used to determine the appropriate association link to create or to retrieve the appropriated associated objects. A specific delegate is selected based on the registered selector type registered in service.properties.
com.ptc.windchill.enterprise.associations.AssociationDelegateHelper
Class
Helper methods for association delegates.
com.ptc.windchill.enterprise.massChange.associations.DescribedByLinkAssocationDelegate
Class
This delegate is used for managing WTPartDescribeLink associations.
com.ptc.windchill.enterprise.massChange.associations.ReferencedByLinkAssociationDelegate
Class
This delegate is used for managing WTPartReferenceLink associations.
com.ptc.windchill.enterprise.massChange.associations.PassiveLinkAssociationDelegate
Class
This delegate is used for managing EPMDescribeLink associations.
這是否有幫助?