Package org.kie.internal.builder.fluent
Interface ContextFluent<T,E>
- All Known Subinterfaces:
ExecutableBuilder,KieSessionFluent
public interface ContextFluent<T,E>
-
Method Summary
Modifier and TypeMethodDescriptionaddCommand(ExecutableCommand<?> command) end()End the scope of the current Command setendConversation(String uuid) <K> KThis sets an instance, for a given cls key, on the registry for commands to execute against.getApplicationContext(String name) joinConversation(String uuid) newApplicationContext(String name) out()The output from the last command should be returned via the out results.The output from the last executed command should be returned and set to the given name in the context.The last executed command result is set to a name in this executing context.
-
Method Details
-
set
The last executed command result is set to a name in this executing context. Default Scope is Request- Parameters:
name-- Returns:
- this
-
set
-
get
-
get
-
get
This sets an instance, for a given cls key, on the registry for commands to execute against. This method will call "end" if within the context of a given registry command- Type Parameters:
K-- Parameters:
name-cls-- Returns:
-
out
T out()The output from the last command should be returned via the out results. It uses the last used name identifer for the previous get or set.- Returns:
- this
-
out
The output from the last executed command should be returned and set to the given name in the context. It uses the specified named identifierl- Parameters:
name-- Returns:
- this
-
addCommand
-
newApplicationContext
-
getApplicationContext
-
startConversation
T startConversation() -
joinConversation
-
endConversation
-
end
E end()End the scope of the current Command set- Returns:
-