com.ptc.windchill.esi.ecn
Class ESIStandardECNFactory

java.lang.Object
  extended bycom.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


Field Summary
protected static ESIPropertyRequest CHANGE_ACTIVITY_FACTORY
           
protected static ESIPropertyRequest CHANGE_ORDER_FACTORY
           
protected static ESIPropertyRequest CHANGE_REQUEST_FACTORY
           
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
ESIStandardECNFactory()
           
 
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
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CHANGE_REQUEST_FACTORY

protected static final ESIPropertyRequest CHANGE_REQUEST_FACTORY

CHANGE_ORDER_FACTORY

protected static final ESIPropertyRequest CHANGE_ORDER_FACTORY

CHANGE_ACTIVITY_FACTORY

protected static final ESIPropertyRequest CHANGE_ACTIVITY_FACTORY
Constructor Detail

ESIStandardECNFactory

public ESIStandardECNFactory()
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 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:
ESIException