# Execute Java Code

Executing Java code with parameters passed from the script and back.

<table data-header-hidden><thead><tr><th width="250" valign="top"></th><th width="315" valign="top"></th></tr></thead><tbody><tr><td valign="top">Configuration</td><td valign="top">[Text] Configuration string. To edit the value, use the button on the "Edit" block.</td></tr><tr><td valign="top">Log to file</td><td valign="top"><p>When enabled, the log generated during code execution will be recorded in the Robot's log. The <code>java.util.logging.Logger</code> class is used for logging.</p><p>You can use expressions to log: <code>logger.info("Text")</code>; <code>logger.severe("Text")</code>; <code>logger.warning("Text")</code>.</p></td></tr><tr><td valign="top">Orchestrator. Log</td><td valign="top">If selected, the log will also be logged in the Orchestrator if the connection to it is active.</td></tr><tr><td valign="top">Handle error</td><td valign="top">In case of an error in the Java code execution, exit via the "If error" connector.</td></tr><tr><td valign="top">Execution log</td><td valign="top"><p>[Text] Returns the execution log of the script. The <code>java.util.logging.Logger</code> class is used for logging.</p><p>You can use expressions to log: <code>logger.info("Text")</code>; <code>logger.severe("Text")</code>; <code>logger.warning("Text")</code>.</p></td></tr><tr><td valign="top">Error log</td><td valign="top">[Text] Returns the error log of the script.</td></tr><tr><td valign="top">Error handling level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message level</td><td valign="top"><p>Select the message level that the blocks will output during execution. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block.</td></tr></tbody></table>
