Class ImplementationPlanFormDelegate

java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
com.ptc.windchill.enterprise.change2.forms.delegates.ImplementationPlanFormDelegate
All Implemented Interfaces:
ObjectFormProcessorDelegate

public class ImplementationPlanFormDelegate extends DefaultObjectFormProcessorDelegate
A class to process additional operations once the change notice has been created or updated. Currently processes the change plan if it is supported and the handles deletion of change tasks from the implementation plan step in a create or edit change notice wizard.

Supported API: true

Extendable: true
  • Method Details

    • doOperation

      public FormResult doOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException
      This method gets items marked for removal, iterates through the items, and for each item that is a ChangeActivity2, it adds the item to a set. After each item is inspected, the set is passed to a multi-object delete API to delete the ChangeActivity2 objects.

      Supported API: true
      Specified by:
      doOperation in interface ObjectFormProcessorDelegate
      Overrides:
      doOperation in class DefaultObjectFormProcessorDelegate
      Parameters:
      clientData -
      objectBeans -
      Returns:
      FormResult with status set to FormProcessingStatus.SUCCESS
      Throws:
      WTException
    • postProcess

      public FormResult postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException
      Processing the change plan if change planning is supported.

      Supported API: true
      Specified by:
      postProcess in interface ObjectFormProcessorDelegate
      Overrides:
      postProcess in class DefaultObjectFormProcessorDelegate
      Parameters:
      clientData -
      objectBeans -
      Returns:
      FormResult with status set to FormProcessingStatus.SUCCESS
      Throws:
      WTException
    • createChangePlan

      protected void createChangePlan(NmCommandBean clientData, ObjectBean objectBean, ChangeOrder2 changeNotice) throws WTException
      Creates the change plan for a given change notice and the associated change tasks if change planning is supported. The sequence numbers for the associated change task are retrieved from the given object bean. The names of input fields that hold sequence numbers for the change tasks are generate using the change task reference id and the column id "changeTaskSequence". For example a generated id for a WTChangeActivity2 would be VR:wt.change2.WTChangeActivity2:1234_changeTaskSequence.

      Supported API: true
      Parameters:
      clientData -
      objectBean -
      changeNotice -
      Throws:
      WTException
      See Also:
    • getTableId

      protected String getTableId(ObjectBean objectBean, String className)
      This method will return the valid table ID for the given table. The implementing subclasses are required to implement the methods getDelegateName() and getDefaultTableId() used by this method.

      Supported API: true
      Parameters:
      objectBean -
      className -
      Returns:
      The table ID.