Class ChangeTaskTemplatedFormProcessor

All Implemented Interfaces:
ObjectFormProcessor, com.ptc.windchill.enterprise.change2.forms.processors.ChangeFormProcessor

public class ChangeTaskTemplatedFormProcessor extends CreateChangeTaskFormProcessor
A class for top-level processor that performs database operations for the creation of change task template objects.

Supported API: true

Extendable: false
  • Method Details

    • preProcess

      public FormResult preProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException
      When the object associated to the given object bean is a change task template, this method will create a new change task. values of the template create layout attributes that are not excluded will be copied to the new change task. The new change task will be created on the container and organization of the parent change notice template.

      Supported API: true
      Specified by:
      preProcess in interface ObjectFormProcessor
      Overrides:
      preProcess in class CreateChangeTaskFormProcessor
      Parameters:
      clientData - The bean that represents client state
      objectBeans - List of changeable object beans to perform processing on
      Returns:
      Form result that represents whether the processing of the form was successful
      Throws:
      WTException - if there is a form processing error to display generic form processing error to client
    • postProcess

      public FormResult postProcess(NmCommandBean cb, List<ObjectBean> objectBeanList) throws WTException
      The purpose of this method is to handle the association of the affected data and setting the attributes of security labels for the templated change task.

      Supported API: true
      Specified by:
      postProcess in interface ObjectFormProcessor
      Overrides:
      postProcess in class CreateChangeItemFormProcessor
      Parameters:
      cb - - Contains all the request form data and other wizard context information. Input.
      objectBeanList - - Contain the form data for each target object of the wizard. One bean per object. Input.
      Returns:
      FormResult - the result of this method
      Throws:
      WTException