Advanced Customization > Business Logic Customization > Customizing Change Management > Mass Change Supported Types > Solution
  
Solution
Solution Elements
Element
Type
Description
wt.properties
properties
Location for registering the supported and excluded types
service.properties
properties
Location for registering the validation supported types for operations.
com.ptc.windchill.enterprise.massChange.validators.MassChangeOperationValidator
class
Validates that the operation has valid types of objects
Including and Excluding Types
The mass change operations are controlled by properties for supported and excluded types for a specific operation. The supported and excluded types for selected target objects for the mass change operation can be registered against the mass change operation in wt.properties.
To specify the supported types for a particular mass change operation the following name convention should be followed:
Supported types: massChange.operationName.supportedTypes
Excluded types: massChange.operationName.excludedTypes
To include or exclude an object type the external form of the type is used. For example, to include the root type Part in the string use WCTYPE|wt.part.WTPart. If no supported types are specified for a mass change operation then all selected objects are supported for the operation. It is recommended to specify at least one supported type due to multiple launch locations of the mass change wizard.
Out-of-the-box, the validator MassChangeOperationValidator, is provided that can be used to leverage the supportedTypes and excludedTypes. This validator should be able to handle most cases in the field. The validator is used to present the user with the list of operations which are applicable based on the selected objects. Validating the items applicability beyond its type (for example not allowing mass change on checked-out items) should be handled within the Filter delegates (overriding theevaluate() or getServerExcludedItems() methods) see the Mass Change Operations.
Restricting the mass change operation to only certain types:
* 
The following example uses the out of the box supported types for the Insert Existing Part operation (addPartUsage).
1. Using xconfmanager, add a property to wt.properties that specifies the supportedTypes. The output should look similar to the Insert Part Usage operation property.
massChange.addPartUsage.supportedTypes=WCTYPE|wt.part.WTPart
2. Register a validator using xconfmanager for the operation key in service.properties. Note that the selector is the operation with _filter appended to the end. As stated above, the MassChangeOperationValidator is designed to use the supportedTypes and excludedTypes property entries automatically.
wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/addPartUsage_filter/null/0=com.ptc.windchill.enterprise.massChange.validators.MassChangeOperationValidator/duplicate
Identifying the Property to Update
Use the following table identify the property that you must update for a specific operation.
Property Name
Description
massChange.replacePartUsage.supportedTypes
The supported types for the Replace Existing Part operation.
massChange.replacePartUsage.excludedTypes
Used to exclude types for the Replace Existing Part operation.
massChange.addPartUsage.supportedTypes
The supported types for the Insert Existing Partoperation.
massChange.addPartUsage.excludedTypes
Used to exclude types for the Insert Existing Partoperation.
massChange.removePartUsage.supportedTypes
The supported types for the Remove Part Usage operation.
massChange.removePartUsage.excludedTypes
Used to exclude types for the Remove Part Usage operation.
massChange.changePartUsage.supportedTypes
The supported types for the Edit Part Usage operation.
massChange.changePartUsage.excludedTypes
Used to exclude types for the Edit Part Usage operation.
massChange.addDocumentUsage.supportedTypes
The supported types for the Insert Existing Document operation.
massChange.addDocumentUsage.excludedTypes
Used to exclude types for the Insert Existing Document operation.
massChange.removeDocumentUsage.supportedTypes
The supported types for the Remove Related Document operation.
massChange.removeDocumentUsage.excludedTypes
Used to exclude types for the Remove Related Document operation.