com.ptc.windchill.esi.ecn
Class ESIStandardECNFactory

java.lang.Object
  extended by com.ptc.windchill.esi.ecn.ESIStandardECNFactory
All Implemented Interfaces:
ESIECNFactory

public class ESIStandardECNFactory
extends Object
implements ESIECNFactory

This class is the default implementation of ESIECNFactory. It auto-generates a Windchill change order when change processing is not being used in the Windchill environment, but change processing is required by the target ERP system.

Supported API: true

Extendable: true


Method Summary
protected  void associateChangeableToChangeActivity(ChangeActivity2 changeActivity, Changeable2 item)
          Persist the association between given change activity and given changeable.
 WTChangeOrder2 createChangeOrder(Changeable2 item)
          Creates change request, change order, change activity, and associates the argument to the change activity. Obtains an instance of WTChangeRequest2 from an instance of ESIChangeRequestFactory. Obtains an instance of WTChangeOrder2 from an instance of ESIChangeOrderFactory. Obtains an instance of WTChangeActivity2 from an instance of ESIChangeActivityFactory. Invokes associateChangeableToChangeActivity()

Supported API: true
protected  ESIChangeActivityFactory getChangeActivityFactory()
          Return an object capable of creating change activities.
protected  ESIChangeOrderFactory getChangeOrderFactory()
          Return an object capable of creating change orders.
protected  ESIChangeRequestFactory getChangeRequestFactory()
          Return an object capable of creating change requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

associateChangeableToChangeActivity

protected void associateChangeableToChangeActivity(ChangeActivity2 changeActivity,
                                                   Changeable2 item)
                                            throws WTException,
                                                   ChangeException2
Persist the association between given change activity and given changeable.

Supported API: true

Parameters:
changeActivity -
item -
Throws:
WTException
ChangeException2

getChangeRequestFactory

protected ESIChangeRequestFactory getChangeRequestFactory()
Return an object capable of creating change requests.

Supported API: true

Returns:
ESIChangeRequestFactory

getChangeOrderFactory

protected ESIChangeOrderFactory getChangeOrderFactory()
Return an object capable of creating change orders.

Supported API: true

Returns:
ESIChangeOrderFactory

getChangeActivityFactory

protected ESIChangeActivityFactory getChangeActivityFactory()
Return an object capable of creating change activities.

Supported API: true

Returns:
ESIChangeActivityFactory

createChangeOrder

public WTChangeOrder2 createChangeOrder(Changeable2 item)
                                 throws com.ptc.windchill.esi.utl.ESIException
Creates change request, change order, change activity, and associates the argument to the change activity.

Supported API: true

Specified by:
createChangeOrder in interface ESIECNFactory
Parameters:
item - The object to be wrapped in an ECN.
Returns:
WTChangeOrder2
Throws:
com.ptc.windchill.esi.utl.ESIException