Class 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
  • 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:
      setResultNextAction in interface ObjectFormProcessor
      Overrides:
      setResultNextAction in class DefaultObjectFormProcessor
      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