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
public class EditWorkableFormProcessor
- extends DefaultEditFormProcessor
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 DefaultEditFormProcessor for Workable objects.
Supported API: true
Extendable: true
| Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessor |
continueProcessing, getDelegates, mergeIntermediateResult, postProcess, postTransactionProcess |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 javascript to open a check in dialog window.
If the Save button was clicked and processing was successful, returns javascript to close the wizard and either redirect
the parent window to the working copy or just refresh the folder browser.
If processing failed, sets next action to NONE.
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:
setResultNextAction in interface ObjectFormProcessor- Overrides:
setResultNextAction in class DefaultEditFormProcessor
- 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