Skip to content

Commit

Permalink
jsr223.md: do not state that SimpleRule is used only in Jython
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Sep 4, 2024
1 parent 4af348e commit 2cf2f7f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions configuration/jsr223.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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')
})
```
Expand Down

0 comments on commit 2cf2f7f

Please sign in to comment.