Skip to content

Commit 9cbdf7d

Browse files
jsr223.md: do not state that SimpleRule is used only in Jython (#2354)
Co-authored-by: stefan-hoehn <[email protected]>
1 parent 7ac8659 commit 9cbdf7d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

configuration/jsr223.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -340,16 +340,16 @@ The primary usage of this preset is for defining rule (`SimpleRule`) subclasses.
340340
See language-specific documentation for examples.
341341

342342
| Variable | Description |
343-
| -------------------------- | ------------------------------------------------------------------------------------------------------------ |
344-
| ActionType | `org.openhab.core.automation.type.ActionType` |
345-
| ConfigDescriptionParameter | `org.openhab.core.config.core.ConfigDescriptionParameter` |
346-
| ModuleType | `org.openhab.core.automation.type.ModuleType` |
347-
| SimpleActionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleActionHandler` |
348-
| SimpleConditionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleConditionHandler` |
349-
| SimpleRule | Base class for Jython Rules `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleRule` |
350-
| SimpleTriggerHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleTriggerHandler` |
351-
| TriggerType | `org.openhab.core.automation.type.TriggerType` |
352-
| Visibility | `org.openhab.core.automation.Visibility` enum |
343+
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
344+
| ActionType | [`org.openhab.core.automation.type.ActionType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/actiontype) |
345+
| ConfigDescriptionParameter | [`org.openhab.core.config.core.ConfigDescriptionParameter`](https://www.openhab.org/javadoc/latest/org/openhab/core/config/core/configdescriptionparameter) |
346+
| ModuleType | [`org.openhab.core.automation.type.ModuleType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/moduletype) |
347+
| SimpleActionHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleActionHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpleactionhandler) |
348+
| SimpleConditionHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleConditionHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpleconditionhandler) |
349+
| SimpleRule | Base class for Rules [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleRule`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simplerule) |
350+
| SimpleTriggerHandler | [`org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleTriggerHandler`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/module/script/rulesupport/shared/simple/simpletriggerhandler) |
351+
| TriggerType | [`org.openhab.core.automation.type.TriggerType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/triggertype) |
352+
| Visibility | [`org.openhab.core.automation.Visibility`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/visibility) enum |
353353

354354
#### `RuleSupport` Preset
355355

@@ -404,7 +404,7 @@ scriptExtension.importPreset("ScriptAction")
404404
scriptExtension.importPreset("RuleSupport")
405405
scriptExtension.importPreset("RuleSimple")
406406
407-
scriptExecution.createTimer(ZonedDateTime.now(), () -> {
407+
scriptExecution.createTimer(ZonedDateTime.now(), {
408408
org.slf4j.LoggerFactory.getLogger('Test logger').warn('Timer ran')
409409
})
410410
```

0 commit comments

Comments
 (0)