adams.flow.source.Jep
Executes the Python script using Jep.
The 'inputs' are items to retrieve from storage and store globally in the interpreter before executing the script.
The 'outputs' are variables to put back into storeage.
The 'forwards' are variables to forward as a map in the flow.
For more information on Jep see:
https://github.com/ninia/jep/
By default, a global Jep scripting engine is used for executing scripts sequentially. Using a adams.flow.standalone.JepEngine actor in the flow allows to avoid this bottleneck, but the user needs to make sure that variables are unique across the scripts run in parallel.
Flow input/output:
- output: java.util.Map
The logging level for outputting errors and debugging output.
command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
default | WARNING |
min-user-mode | Expert |
The name of the actor.
command-line | -name <java.lang.String> |
default | Jep |
The annotations to attach to this actor.
command-line | -annotation <adams.core.base.BaseAnnotation> |
default |
|
If set to true, transformation is skipped and the input token is just forwarded as it is.
command-line | -skip <boolean> |
default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
command-line | -stop-flow-on-error <boolean> |
default | false |
min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
command-line | -silent <boolean> |
default | false |
min-user-mode | Expert |
The script file to execute.
command-line | -script <adams.core.io.PlaceholderFile> |
default | ${CWD} |
The inline script, if not using an external script file.
command-line | -inline-script <adams.core.scripting.JepScript> |
default |
|
If enabled, all ADAMS variables get expanded before executing the script.
command-line | -expand-vars <boolean> |
default | false |
The storage items to add to the interpreter with the specified variable names before executing the script.
command-line | -inputs <adams.flow.control.VariableNameStorageNamePair> [-inputs ...] |
default |
|
The Python variables to put back into storage after executing the script.
command-line | -outputs <adams.flow.control.VariableNameStorageNamePair> [-outputs ...] |
default |
|
The Python variables to forward in a map after executing the script.
command-line | -forwards <adams.core.base.BaseString> [-forwards ...] |
default |
|