Class ScriptEngineRequest.Builder
java.lang.Object
org.flowable.common.engine.impl.scripting.ScriptEngineRequest.Builder
- Enclosing class:
- ScriptEngineRequest
Builder for
ScriptEngineRequest
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected boolean
protected ScriptTraceEnhancer
protected VariableContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalResolver
(Resolver additionalResolver) Adds additional resolver to the end of the list of resolvers.build()
The script language for the script.The script content for the given language.Automatically store variables from script evaluation context to the given variable container.traceEnhancer
(ScriptTraceEnhancer enhancer) Configure anScriptTraceEnhancer
which is called, when a ScriptTrace is created.variableContainer
(VariableContainer variableContainer) The variable container used to createResolver
s for the script context.
-
Field Details
-
language
-
script
-
variableContainer
-
additionalResolvers
-
storeScriptVariables
protected boolean storeScriptVariables -
traceEnhancer
-
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
script
The script content for the given language. -
language
The script language for the script. -
variableContainer
The variable container used to createResolver
s for the script context. The variable container will be passed toResolverFactory
to create specialized Resolvers for the specific VariableContainer implementations. -
storeScriptVariables
Automatically store variables from script evaluation context to the given variable container. Not recommended, to avoid variableContainer pollution. Better to put the script evaluation result object to the variableContainer, if required. -
additionalResolver
Adds additional resolver to the end of the list of resolvers. The order of the resolvers matter, as the first resolver returning containsKey = true will be used to resolve a variable during script execution. The resolvers take precedence over the resolvers created for thevariableContainer
. Useful to provide context objects to the scripting environment. -
traceEnhancer
Configure anScriptTraceEnhancer
which is called, when a ScriptTrace is created. Allows to provide additional context information for a script trace by allow to "tag" the script invocation with additional meta information. Script traces are produced in case of errors and/or when aScriptTraceListener
is configured. -
build
-