Class ESIChangeRequestFactory

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

public class ESIChangeRequestFactory extends Object
This class is responsible for creating and persisting a change request.

Supported API: true

Extendable: true
  • Method Details

    • create

      public WTChangeRequest2 create() throws ESIException
      Create and persist a new change request.

      Supported API: true
      Returns:
      WTChangeRequest2
      Throws:
      ESIException
    • getName

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

      Supported API: true
      Returns:
      String
    • getDescription

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

      Supported API: true
      Returns:
      String
    • getPriority

      protected RequestPriority getPriority()
      Return the priority to be assigned to the new change request. Value is always RequestPriority.LOW.

      Supported API: true
      Returns:
      RequestPriority
    • getCategory

      protected Category getCategory()
      Return the category to be assigned to the new change request. Value is always Category.OTHER.

      Supported API: true
      Returns:
      Category
    • getComplexity

      protected Complexity getComplexity()
      Return the complexity to be assigned to the new change request. Value is always Complexity.SIMPLE.

      Supported API: true
      Returns:
      Complexity
    • create

      public WTChangeRequest2 create(Changeable2 item) throws ESIException
      Create and persist a new change request for the changeable.

      Supported API: true
      Returns:
      WTChangeRequest2
      Throws:
      ESIException
    • create

      public WTChangeRequest2 create(Changeable2 item, WTContainerRef wcRef) throws ESIException
      Create and persist a new change request for the changeable. Sets the container reference of created change activity to the input container reference.

      Supported API: true
      Parameters:
      item - - Input changeable.
      wcRef - - The container reference that the change request would be associated with.
      Returns:
      WTChangeRequest2 - Persisted change request object.
      Throws:
      ESIException