Package wt.maturity

Class TransitionHandlerFactory

java.lang.Object
wt.maturity.TransitionHandlerFactory
All Implemented Interfaces:
wt.services.applicationcontext.ApplicationContextChild

public class TransitionHandlerFactory extends Object implements wt.services.applicationcontext.ApplicationContextChild
Factory to look up an implementation of the TransitionHandler interface to move objects through a Transition TransitionHandlerFactory.getInstance().transitionTargets(contextObject, transition, false);

Supported API: true

Extendable: false
  • Method Details

    • getInstance

      public static TransitionHandlerFactory getInstance()
      Singleton method - returns an instance of SuggestableFactory.

      Supported API: true
    • transitionTargets

      public void transitionTargets(Object theObject, Transition transition, boolean failIfNoTransitionExists) throws WTException
      Performs context specific processing for following a transition of defined target objects. For example, if the contextObject is a PromotionNotice a set of target objects is found by navigating the PromotionTarget link and then these objects states are set by following the LOCK transition.

      Supported API: true
      Parameters:
      theObject - - The context object of the operation
      transition - - The transition to follow to find the new state of target objects.
      failIfNoTransitionExists - - Specify whether processing should continue or fail if an object doesn't have the specified transition.
      Throws:
      WTException