Class CreateChangeRequestFormProcessor
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.core.components.forms.CreateObjectFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.CreateChangeItemFormProcessor
com.ptc.windchill.enterprise.change2.forms.processors.CreateChangeRequestFormProcessor
- All Implemented Interfaces:
ObjectFormProcessor,com.ptc.windchill.enterprise.change2.forms.processors.ChangeFormProcessor
This is the processor class called when creating a change request, will perform database operation
on one or more change request objects. Typically used for the processing of a wizard.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
Fields 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 LocalizableMessageReturns localized message for create ECR processing error.preProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) This method will create the object that processor delegates will use
Supported API: trueprotected WTListsaveChangeItem(WTList changeItems) Saves the change requests and return the persistable list using the change service.Methods inherited from class com.ptc.windchill.enterprise.change2.forms.processors.CreateChangeItemFormProcessor
doOperation, getChangeItemomplexityDelegate, getChangeNoticeComplexityDelegate, getLocale, postProcess, saveChangeItem, setRefreshInfoMethods inherited from class com.ptc.core.components.forms.CreateObjectFormProcessor
createAndValidateTypeInstance, createItemInstance, createPersistable, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, translateTIToPersistableMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, execute, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, isUseObjectReference, mergeIntermediateResult, postTransactionProcess, processDelegates, removeTempFiles, setDelegates, setResultNextAction, setUseObjectReference
-
Method Details
-
preProcess
public FormResult preProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException This method will create the object that processor delegates will use
Supported API: true- Specified by:
preProcessin interfaceObjectFormProcessor- Overrides:
preProcessin classCreateObjectFormProcessor- Parameters:
clientData- Passes in the NmCommandBeanobjectBeans- Passes in the List of object beans.- Returns:
- FormResult Return the status of the preProcess operation.
- Throws:
WTException
-
getProcessorErrorMessage
Returns localized message for create ECR processing error.
Supported API: true- Specified by:
getProcessorErrorMessagein classCreateChangeItemFormProcessor- Returns:
- error message
-
saveChangeItem
Saves the change requests and return the persistable list using the change service. This method is called within a transaction and will roll back in case of exception occurs.
Supported API: true- Specified by:
saveChangeItemin classCreateChangeItemFormProcessor- Parameters:
changeItems- The persisted list of change request objects.- Returns:
- list of change requests that are saved.
- Throws:
WTException
-