Class PendingChangeEventHandler

All Implemented Interfaces:
KeyedEventListener
Direct Known Subclasses:
DefaultPendingChangeEventHandler

public abstract class PendingChangeEventHandler extends ChangeStatusEventHandler
This class is responsible for implementing the common functionality for processing the events that can change the pending status of a changeable.

See Also:
  • Constructor Details

    • PendingChangeEventHandler

      public PendingChangeEventHandler(String serviceId)


      Supported API: true
      Parameters:
      serviceId -
  • Method Details

    • appendChangeNoticeCondition

      protected abstract void appendChangeNoticeCondition(QuerySpec querySpec, int changeIdx) throws QueryException
      Appends the condition that determines whether a change notice is pending. By default, the change notice is pending if the life cycle state matches a state defined in the property wt.change2.pendingOrderStates from wt.properties. The current implementation would append the following condition phrase to the specified query spec, where A0 is the changeIdx(the table index for the change Item):
      
       A0.statestate = 'IMPLEMENTATION'
       

      A custom event handler should implement this method to define the conditions that make a change notice pending.

      Supported API: true
      Overrides:
      appendChangeNoticeCondition in class ChangeStatusEventHandler
      Parameters:
      querySpec - - query spec to which the condition need to be appended
      changeIdx - - table index for the change notice
      Throws:
      WTException
      QueryException
    • appendChangeRequestCondition

      protected abstract void appendChangeRequestCondition(QuerySpec querySpec, int changeIdx) throws QueryException
      Appends the condition that determines whether a change request is pending. By default, the change request is pending if the life cycle state matches a state defined in the property wt.change2.pendingRequestStates from wt.properties. The current implementation would append the following condition phrase to the specified query spec, where A0 is the changeIdx(the table index for the change Item):
      
       A0.statestate = 'IMPLEMENTATION'
       

      A custom event handler should implement this method to define the conditions that make a change request pending.

      Supported API: true
      Parameters:
      querySpec - - query spec to which the condition need to be appended
      changeIdx - - table index for the change request
      Throws:
      WTException
      QueryException
    • getEventRegisterProperty

      protected final String getEventRegisterProperty()
      Returns the property to register the events for pending change in wt.properties.

      Supported API: true
      Specified by:
      getEventRegisterProperty in class ChangeStatusEventHandler
      Throws:
      IOException