Package io.dialob.program
Interface EvalContext
-
- All Known Implementing Classes:
DialobSessionEvalContext
public interface EvalContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEvalContext.AbstractDelegateUpdatedItemsVisitorstatic interfaceEvalContext.UpdatedItemsVisitor
-
Method Summary
-
-
-
Method Detail
-
findErrorPrototypes
@Nonnull Stream<ErrorState> findErrorPrototypes(@Nonnull ItemId itemId)
-
getValueSetState
@Nonnull Optional<ValueSetState> getValueSetState(@Nonnull ValueSetId valueSetId)
-
withScope
EvalContext withScope(Scope scope)
-
getParent
EvalContext getParent()
-
registerUpdate
void registerUpdate(ErrorState newState, ErrorState oldState)
-
registerUpdate
void registerUpdate(@Nonnull ValueSetState newState, ValueSetState oldState)
-
accept
void accept(@Nonnull EvalContext.UpdatedItemsVisitor visitor)
-
getLanguage
String getLanguage()
-
setLanguage
void setLanguage(String language)
-
getErrorStates
Collection<ErrorState> getErrorStates()
-
getFunctionRegistry
@Nonnull FunctionRegistry getFunctionRegistry()
-
today
@Nonnull default LocalDate today()
-
now
@Nonnull default LocalTime now()
-
getClock
@Nonnull Clock getClock()
-
getOutputFormatter
@Nonnull OutputFormatter getOutputFormatter()
-
isActivating
boolean isActivating()
-
complete
boolean complete()
-
queueAsyncFunctionCall
String queueAsyncFunctionCall(AsyncFunctionCall asyncFunctionCall)
- Parameters:
targetId-asyncFunctionCall-- Returns:
- id of update
-
-