diff --git a/configuration/jsr223.md b/configuration/jsr223.md index 8d9b08da1..781f93d03 100644 --- a/configuration/jsr223.md +++ b/configuration/jsr223.md @@ -185,6 +185,15 @@ s_rule.set_triggers([ ]) $automationManager.add_rule(s_rule) + +# And the same rule using the bundled helper library: + +rule "A Cron Rule in Ruby" do + every :minute + run do + logger.info "Hello World from JRuby" + end +end ``` ::: @@ -233,7 +242,7 @@ The `default` preset is preloaded, so it does not require importing. #### Default Preset (`importPreset` not required) | Variable | Description | -|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `State` | `org.openhab.core.types.State` | | `Command` | `org.openhab.core.types.Command` | | `URLEncoder` | `java.net.URLEncoder` |