com.amazonaws.services.simpleworkflow.flow.worker
Class CurrentDecisionContext
java.lang.Object
com.amazonaws.services.simpleworkflow.flow.worker.CurrentDecisionContext
public abstract class CurrentDecisionContext
- extends Object
Holds DecisionContext for currently executing decision task. Do not use this
class directly. Instead use DecisionContextProviderImpl
.
CurrentDecisionContext
public CurrentDecisionContext()
get
public static DecisionContext get()
- retrieves the current DecisionContext for a particular thread
- Returns:
- current decider context being used for the decision
- Throws:
IllegalStateException
- if this method is called outside the scope of workflow
definition.
isSet
public static boolean isSet()
- Returns:
- if context is set which means that code is executed as part of
the decision.
set
public static void set(DecisionContext context)
unset
public static void unset()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.