Class ESIStandardECNFactory

java.lang.Object
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 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:
      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. 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:
      createChangeOrder in interface ESIECNFactory
      Parameters:
      item - The object to be wrapped in an ECN.
      Returns:
      WTChangeOrder2
      Throws:
      ESIException