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
Supported API: true
Extendable: false
TransitionHandler interface to
move objects through a Transition
TransitionHandlerFactory.getInstance().transitionTargets(contextObject, transition, false);
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransitionHandlerFactorySingleton method - returns an instance ofSuggestableFactory.voidtransitionTargets(Object theObject, Transition transition, boolean failIfNoTransitionExists) Performs context specific processing for following a transition of defined target objects.
-
Method Details
-
getInstance
Singleton method - returns an instance ofSuggestableFactory.
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 operationtransition- - 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
-