com.ptc.windchill.enterprise.change2.handler
Class DefaultAutomateCreateChangeNoticeHandler

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

public class DefaultAutomateCreateChangeNoticeHandler
extends Object
implements AutomateCreateChangeNoticeHandler

Default implementation of the AutomateFastTrackHandler interface for use by the task page processing.

See Also:


Supported API: true

Extendable: true

Method Summary
 void createChangeNoticeFromChangeRequest(WTChangeRequest2 changeRequest, NmCommandBean cb)
          Given an existing change request, create a new change order with the same name, and associate it with the given change request.
protected  WTChangeOrder2 createChangeNoticeInstance(WTContainer wtContainer)
          Given the container this method creates a Change Notice object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createChangeNoticeFromChangeRequest

public void createChangeNoticeFromChangeRequest(WTChangeRequest2 changeRequest,
                                                NmCommandBean cb)
                                         throws WTException
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
Throws:
WTException

createChangeNoticeInstance

protected WTChangeOrder2 createChangeNoticeInstance(WTContainer wtContainer)
                                             throws WTException
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.