Package com.ptc.core.components.forms
Class EditWorkableFormProcessor
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessor
com.ptc.core.components.forms.DefaultEditFormProcessor
com.ptc.core.components.forms.EditWorkableFormProcessor
- All Implemented Interfaces:
ObjectFormProcessor
A form processor that generically updates one or more Workable objects in the database from the form data submitted
in an HTML wizard.
This class should only be used for updating objects that implement wt.vc.wip.Workable. Use
Supported API: true
Extendable: true
This class should only be used for updating objects that implement wt.vc.wip.Workable. Use
DefaultEditFormProcessor for Workable objects.
Supported API: true
Extendable: true
-
Field Summary
Fields 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 TypeMethodDescriptionsetResultNextAction(FormResult result, NmCommandBean clientData, List<ObjectBean> objectBeans) Sets the "nextAction" attribute on the given FormResult based on the processing status.Methods inherited from class com.ptc.core.components.forms.DefaultEditFormProcessor
checkForMasterAttributes, getObjectBeingEdited, preProcessMethods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor
continueProcessing, execute, getDelegates, getSuccessFeedbackMessage, getSuccessFeedbackMessage, getSuccessMessageBody, getSuccessMessageBodyForMulti, getSuccessMessageTitle, isUseObjectReference, mergeIntermediateResult, postProcess, postTransactionProcess, processDelegates, removeTempFiles, setDelegates, setUseObjectReference
-
Method Details
-
setResultNextAction
public FormResult setResultNextAction(FormResult result, NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException Sets the "nextAction" attribute on the given FormResult based on the processing status.
If the Check In button was clicked and processing was successful, returns extra data to allow a check in dialog window. If the Save button was clicked and processing was successful, returns a normal formResult with refreshInfo to close the wizard and update the components accordingly.
This method is dependent on information set by the autoCheckOutItem tag of the wizard.
Note: This method can only be used for wizards that edit a single object and assumes the objectBeans arg contains only one bean. Wizards that edit multiple objects will need to override this method.
Supported API: true- Specified by:
setResultNextActionin interfaceObjectFormProcessor- Overrides:
setResultNextActionin classDefaultObjectFormProcessor- Parameters:
result- - The current form result that will receive the refresh information. Input and output. Required.clientData- - Contains all the request form data and other wizard context information. Input. Required.objectBeans- - Contains an instance of the object to be updated in its "object" attribute. Input. Required.- Returns:
- The updated form result with the info for the next action
- Throws:
WTException
-