Class EditChangeTaskFormProcessor
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.core.components.forms.DefaultEditFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.EditChangeTaskFormProcessor
- All Implemented Interfaces:
ObjectFormProcessor,com.ptc.windchill.enterprise.change2.forms.processors.ChangeFormProcessor
- Direct Known Subclasses:
EditChangeTaskTemplateFormProcessor
Processor class that performs database operations on Change Task objects. This class is used for
saving the data in the edit Change Task wizards. This class is designed to handle existing
Supported API: true
Extendable: true
wt.change2.WTChangeActivity2 or any sub-types.
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
NAVIGATION_ACTION, NAVIGATION_HOMETABFields inherited from class com.ptc.core.components.forms.DefaultEditFormProcessor
isAliasAttrOnMasterFields inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
delegates, DO_OPERATION, overallResult, POST_PROCESS, POST_TRANSACTION_PROCESS, PRE_PROCESS -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalizableMessageThe purpose of this method is to handle error messaging that is unique to the change tasks.preProcess(NmCommandBean clientData, List<ObjectBean> objectBeanList) Gets and initailizes the Change Notice from the wizard form data by calling super.protected WTListsaveChangeItem(WTList changeItems) The purpose of this method is to handle persistance for change tasks.Methods inherited from class com.ptc.windchill.enterprise.change2.forms.processors.EditChangeItemFormProcessor
doOperation, getCurrentUser, getEditItemInstance, getLocale, getNmOid, handleSubmitNow, postProcess, saveRenameChangeItems, setDelegates, setRefreshInfo, setResultNextActionMethods inherited from class com.ptc.core.components.forms.DefaultEditFormProcessor
checkForMasterAttributes, getObjectBeingEdited, getObjFromDatabaseMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, execute, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, isUseObjectReference, mergeIntermediateResult, postTransactionProcess, processDelegates, removeTempFiles, setUseObjectReference
-
Method Details
-
preProcess
public FormResult preProcess(NmCommandBean clientData, List<ObjectBean> objectBeanList) throws WTException Gets and initailizes the Change Notice from the wizard form data by calling super. Then gets the change notice instace, assignee and reviewer users for each change task.
Supported API: true- Specified by:
preProcessin interfaceObjectFormProcessor- Overrides:
preProcessin classEditChangeItemFormProcessor- Parameters:
clientData- The original wizard form data. This in general should not be used to get wizard form data. The wizard form data should be retrieved from eachObjectBeanin theObjectBeanlist that is passed in.objectBeanList- The List of object beans that have been initialized with the appropriate wizard from data for each individualObjectBean.- Returns:
- A form result that indicates if the operation was succesful or not.
- Throws:
WTException- is thrown if initailizing the change object fails- See Also:
-
getProcessorErrorMessage
The purpose of this method is to handle error messaging that is unique to the change tasks.
Supported API: true- Specified by:
getProcessorErrorMessagein classEditChangeItemFormProcessor- Returns:
- Generic message for form processing error
-
saveChangeItem
The purpose of this method is to handle persistance for change tasks. The list of change tasks are saved by wrapping a call to the change servicesaveChangeActivitiesmethod. The order of the list of change tasks needs to be maintained and return in the same order.
Supported API: true- Specified by:
saveChangeItemin classEditChangeItemFormProcessor- Parameters:
changeItems- The list of change tasks to be persisted.- Returns:
- The list of change tasks that have been persisted.
- Throws:
WTException- is thrown if saving the change tasks fail.- See Also:
-