Class ESIChangeActivityFactory

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

public class ESIChangeActivityFactory extends Object
This class is responsible for creating and persisting a change activity.

Supported API: true

Extendable: true
  • Method Details

    • create

      public WTChangeActivity2 create(WTChangeOrder2 changeOrder) throws ESIException
      Create and persist a new change activity associated with the argument.

      Supported API: true
      Parameters:
      changeOrder - The change order that the new change activity will be associated with,
      Returns:
      WTChangeActivity2
      Throws:
      ESIException
    • create

      public WTChangeActivity2 create(WTChangeOrder2 changeOrder, WTContainerRef wcRef) throws ESIException
      Create and persist a new change activity associated with the given change order. Sets the container reference of created change activity to the input container reference.

      Supported API: true
      Parameters:
      changeOrder - - The change order that the new change activity will be associated with.
      wcRef - - The container reference that the change activity would be associated with.
      Returns:
      WTChangeActivity2 - Persisted change activity object.
      Throws:
      ESIException
    • getName

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

      Supported API: true
      Returns:
      String
    • getDescription

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

      Supported API: true
      Returns:
      String