Class ESIChangeOrderFactory

java.lang.Object
com.ptc.windchill.esi.ecn.ESIChangeOrderFactory

public class ESIChangeOrderFactory extends Object
This class is responsible for creating and persisting a change order.

Supported API: true

Extendable: true
  • Method Details

    • create

      public WTChangeOrder2 create(WTChangeRequest2 changeRequest) throws ESIException
      Create and persist a new change order and associate it with the input change request if it is not null.

      Supported API: true
      Parameters:
      changeRequest - The change request that initiated the to-be-created change order.
      Returns:
      WTChangeOrder2
      Throws:
      ESIException
    • getName

      protected String getName()
      Return the name to be given to the new change order. The value is localized from EsiResource.ESI_CHANGE_ORDER_NAME.

      Supported API: true
      Returns:
      String
    • getDescription

      protected String getDescription()
      Return the description to be given to the new change order.The value is localized from EsiResource.ESI_CHANGE_ORDER_DESC.

      Supported API: true
      Returns:
      String
    • create

      public WTChangeOrder2 create(WTChangeRequest2 changeRequest, WTContainerRef wcRef) throws ESIException
      Create and persist a new change order and associate it with the input change request if it is not null.

      Supported API: true
      Parameters:
      changeRequest - The change request that initiated the to-be-created change order.
      wcRef - The conatiner ref , to which the order would be associated with.
      Returns:
      WTChangeOrder2
      Throws:
      ESIException