Class DefaultAutomateCreateChangeNoticeHandler

java.lang.Object
com.ptc.windchill.enterprise.change2.handler.DefaultAutomateCreateChangeNoticeHandler
All Implemented Interfaces:
AutomateCreateChangeNoticeHandler

@Deprecated public class DefaultAutomateCreateChangeNoticeHandler extends Object implements AutomateCreateChangeNoticeHandler
Deprecated.
The create change notice wizard and templates should be used in place of the auto create change notice option
Default implementation of the AutomateFastTrackHandler interface for use by the task page processing.
See Also:
  • Constructor Details

    • DefaultAutomateCreateChangeNoticeHandler

      public DefaultAutomateCreateChangeNoticeHandler()
      Deprecated.
      Default constructor

      Supported API: true
  • Method Details

    • createChangeNoticeFromChangeRequest

      public void createChangeNoticeFromChangeRequest(WTChangeRequest2 changeRequest, NmCommandBean cb) throws WTException
      Deprecated.
      Given an existing change request, create a new change order with the same name, and associate it with the given change request. Then create a new change activity, associating the affected data, from the change request, with the change activity.

      Supported API: true
      Specified by:
      createChangeNoticeFromChangeRequest in interface AutomateCreateChangeNoticeHandler
      Parameters:
      changeRequest - - An existing change request in the process of being submitted.
      cb - - The NmCommandBean that contains information of the context object

      Supported API: true
      Throws:
      WTException
    • createChangeNoticeAndChangeTask

      public ChangeActivityIfc createChangeNoticeAndChangeTask(String name, String number, WTContainer wtContainer) throws WTException
      Deprecated.
      Given its name and container, create a new change order with other attributes set as default. Then create a new change activity for the change order.

      Supported API: true
      Specified by:
      createChangeNoticeAndChangeTask in interface AutomateCreateChangeNoticeHandler
      Parameters:
      name - - The name of the new change order.
      number - - The number of the new change order.
      wtContainer - - The container that the new change order is contained.
      Returns:
      Change Task created

      Supported API: true
      Throws:
      WTException
    • saveChangeNoticeWithAttributes

      protected WTChangeOrder2 saveChangeNoticeWithAttributes(WTChangeOrder2 changeOrder, String name, String number, WTContainer wtContainer) throws WTPropertyVetoException, WTException
      Deprecated.
      Given a change order instance, set its name, container, and default attributes and persist it

      Supported API: true
      Parameters:
      changeOrder - - The change order to be set attributes and persisted
      name - - The name of the change order
      number - - The number of the change order
      wtContainer - - The container of the change order
      Returns:
      - the persisted change order
      Throws:
      WTPropertyVetoException
      WTException
    • setDefaultAttributesInChangeNotice

      protected void setDefaultAttributesInChangeNotice(WTChangeOrder2 changeOrder) throws WTPropertyVetoException
      Deprecated.
      Given a change order, set its default attributes without persisting This method can be overriden to implement different default values and/or attributes

      Supported API: true
      Parameters:
      changeOrder - - The change order to be set attributes as default values
      Throws:
      WTPropertyVetoException
    • createChangeNoticeInstance

      protected WTChangeOrder2 createChangeNoticeInstance(WTContainer wtContainer) throws WTException
      Deprecated.
      Given the container this method creates a Change Notice object. The Change Notice is created from the default creatable type if it is in the list of creatable types for the user. If the default creatable type is not in the list of creatable types the first creatable type is used to create the Change Notice.

      Supported API: true
      Parameters:
      wtContainer - The container that the object is to created in.
      Returns:
      The Change Notice object.
      Throws:
      WTException - if an error occurs.