Package com.ptc.windchill.esi.ecn
Class ESIStandardECNFactory
java.lang.Object
com.ptc.windchill.esi.ecn.ESIStandardECNFactory
- All Implemented Interfaces:
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
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidassociateChangeableToChangeActivity(ChangeActivity2 changeActivity, Changeable2 item) Persist the association between given change activity and given changeable.createChangeOrder(Changeable2 item) Creates change request, change order, change activity, and associates the argument to the change activity.protected ESIChangeActivityFactoryReturn an object capable of creating change activities.protected ESIChangeOrderFactoryReturn an object capable of creating change orders.protected ESIChangeRequestFactoryReturn an object capable of creating change requests.
-
Method Details
-
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:
WTExceptionChangeException2
-
getChangeRequestFactory
Return an object capable of creating change requests.
Supported API: true- Returns:
- ESIChangeRequestFactory
-
getChangeOrderFactory
Return an object capable of creating change orders.
Supported API: true- Returns:
- ESIChangeOrderFactory
-
getChangeActivityFactory
Return an object capable of creating change activities.
Supported API: true- Returns:
- ESIChangeActivityFactory
-
createChangeOrder
Creates change request, change order, change activity, and associates the argument to the change activity. Change request will be created only when the preference "Change Notice without Change Request" is set to "No".- 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- Specified by:
createChangeOrderin interfaceESIECNFactory- Parameters:
item- The object to be wrapped in an ECN.- Returns:
- WTChangeOrder2
- Throws:
ESIException
-