jsr223.md: do not state that SimpleRule is used only in Jython (#2354)
Co-authored-by: stefan-hoehn <mail@stefanhoehn.com>pull/2404/head^2
parent
7ac8659731
commit
9cbdf7d545
|
@ -340,16 +340,16 @@ The primary usage of this preset is for defining rule (`SimpleRule`) subclasses.
|
|||
See language-specific documentation for examples.
|
||||
|
||||
| Variable | Description |
|
||||
| -------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
||||
| ActionType | `org.openhab.core.automation.type.ActionType` |
|
||||
| ConfigDescriptionParameter | `org.openhab.core.config.core.ConfigDescriptionParameter` |
|
||||
| ModuleType | `org.openhab.core.automation.type.ModuleType` |
|
||||
| SimpleActionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleActionHandler` |
|
||||
| SimpleConditionHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleConditionHandler` |
|
||||
| SimpleRule | Base class for Jython Rules `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleRule` |
|
||||
| SimpleTriggerHandler | `org.openhab.core.automation.module.script.rulesupport.shared.simple.SimpleTriggerHandler` |
|
||||
| TriggerType | `org.openhab.core.automation.type.TriggerType` |
|
||||
| Visibility | `org.openhab.core.automation.Visibility` enum |
|
||||
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| ActionType | [`org.openhab.core.automation.type.ActionType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/actiontype) |
|
||||
| ConfigDescriptionParameter | [`org.openhab.core.config.core.ConfigDescriptionParameter`](https://www.openhab.org/javadoc/latest/org/openhab/core/config/core/configdescriptionparameter) |
|
||||
| ModuleType | [`org.openhab.core.automation.type.ModuleType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/moduletype) |
|
||||
| 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) |
|
||||
| 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) |
|
||||
| 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) |
|
||||
| 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) |
|
||||
| TriggerType | [`org.openhab.core.automation.type.TriggerType`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/type/triggertype) |
|
||||
| Visibility | [`org.openhab.core.automation.Visibility`](https://www.openhab.org/javadoc/latest/org/openhab/core/automation/visibility) enum |
|
||||
|
||||
#### `RuleSupport` Preset
|
||||
|
||||
|
@ -404,7 +404,7 @@ scriptExtension.importPreset("ScriptAction")
|
|||
scriptExtension.importPreset("RuleSupport")
|
||||
scriptExtension.importPreset("RuleSimple")
|
||||
|
||||
scriptExecution.createTimer(ZonedDateTime.now(), () -> {
|
||||
scriptExecution.createTimer(ZonedDateTime.now(), {
|
||||
org.slf4j.LoggerFactory.getLogger('Test logger').warn('Timer ran')
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue