openhab-bot
fd93f0a766
[unleash-maven-plugin] Preparation for next development cycle.
2023-07-23 17:14:35 +00:00
J-N-K
7843b6872a
Add group name to GroupStateTriggerHandler ( #3536 )
...
* Add group name to GroupStateTriggerHandler
When triggering on state change/update of group member, the group is not available in the rule context (because the event is the `ItemStateChanged/UpdatedEvent` that caused the group to change/update. This adds a new element `triggeringGroup` to the rule context.
This is useful for generalized rules that trigger on different groups.
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-05-27 21:30:34 +02:00
Holger Friedrich
769aa562a1
Code cleanup: Use Java 17 features ( #3522 )
...
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2023-04-16 21:43:59 +02:00
J-N-K
9289fd5a78
Bump spotless and fix formatting ( #3469 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-03-20 23:14:59 +01:00
J-N-K
8d64ecfd8d
Update license header to 2023 ( #3294 )
...
* Update license header to 2023
Signed-off-by: Jan N. Klug <github@klug.nrw>
2023-01-03 09:45:42 +01:00
Wouter Born
687688db7e
Update Eclipse .classpath files ( #3250 )
...
Also adds some missing files for recently added projects.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-12-22 14:14:35 +01:00
J-N-K
3fc4d23734
Fix spotless and resolve itests ( #3239 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-19 11:09:31 +01:00
openhab-bot
35254b3a0a
[unleash-maven-plugin] Preparation for next development cycle.
2022-12-18 23:08:22 +00:00
J-N-K
e90811cfd7
DSL support for sharedCache/privateCache ( #3187 )
...
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-12-05 22:08:42 +01:00
Kai Kreuzer
61fd47c853
Apply spotless and resolver ( #3018 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2022-06-27 13:41:28 +02:00
openhab-bot
8944bdbbe4
[unleash-maven-plugin] Preparation for next development cycle.
2022-06-26 16:37:00 +00:00
J-N-K
293de9d6db
Allow DSL scripts for script transformation ( #2990 )
...
* Allow DSL scripts for script transformation
Signed-off-by: Jan N. Klug <github@klug.nrw>
2022-06-14 21:15:28 +02:00
Wouter Born
7ae37f810b
Fix typo in ScriptImpl exception message ( #2847 )
...
Fixes #2846
Signed-off-by: Wouter Born <github@maindrain.net>
2022-03-17 11:50:20 +01:00
Wouter Born
92917946d4
Add even more null annotations ( #2752 )
...
This PR adds even more missing null annotations which did not fit in #2742 as it grew too big.
Signed-off-by: Wouter Born <github@maindrain.net>
2022-02-17 21:30:51 +01:00
James Melville
805f223fa9
Add triggeringThing name to DSL rules ( #2756 )
...
* Add triggeringThing name to DSL rules
* Include previous and new statuses
Signed-off-by: James Melville <jamesmelville@gmail.com>
2022-02-13 10:34:08 +01:00
Christoph Weitkamp
cabb3f7315
Update license headers to 2022 ( #2671 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2022-01-07 13:16:42 +01:00
Kai Kreuzer
e3b07782b4
pom reference update from http to https ( #2644 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-23 22:55:20 +01:00
Kai Kreuzer
1ebf7395d9
Apply spotless
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-12-20 06:59:22 +01:00
openhab-bot
5ac05c4968
[unleash-maven-plugin] Preparation for next development cycle.
2021-12-19 21:49:34 +00:00
Christoph Weitkamp
674db6c744
Added variable 'triggeringChannel' to DSL rules ( #2567 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2021-12-02 22:08:17 +01:00
Kai Kreuzer
5a667cc868
applied spotless
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-06-27 23:22:02 +02:00
jenkins
b8d2077805
[unleash-maven-plugin] Preparation for next development cycle.
2021-06-27 15:50:02 +00:00
Mark Hilbush
7de57f9ffe
[automation] Fixed memory leak caused by invalid UI DSL rule ( #2212 )
...
Signed-off-by: Mark Hilbush <mark@hilbush.com>
2021-02-20 19:53:44 +01:00
Kai Kreuzer
531a478a45
Cache parsed script in order to improve performance ( #2057 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2021-01-03 13:18:53 +01:00
Wouter Born
774b9d607b
Update license headers to 2021 ( #2041 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2021-01-01 16:43:46 +01:00
Wouter Born
bf14e1077f
Apply Spotless, resolve itest runbundles for 3.1.0 ( #1982 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2020-12-22 10:01:42 +01:00
jenkins
965531696b
[unleash-maven-plugin] Preparation for next development cycle.
2020-12-20 22:24:39 +00:00
Kai Kreuzer
4059ea2422
[automation] Correctly return the evaluation result of DSL scripts
...
Fixes #1946
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-12-16 23:20:37 +01:00
Kai Kreuzer
0a719cca83
Always set the value of implicit vars ( #1922 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-12-13 09:32:25 +01:00
Kai Kreuzer
c5f133b3e9
[automation] Provide triggering item name in the rule context ( #1770 )
...
* introduced implicit variable "triggeringItemName"
Fixes #1768
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-12-01 20:29:50 +01:00
Kai Kreuzer
94d6a80493
Create separate DSLScriptEngine instances for every handler ( #1819 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-14 20:16:19 +01:00
Kai Kreuzer
7d2a505e13
[automation] Correctly map the state context variable of the ItemStateEvent to the implicit var newState ( #1809 )
...
Fixes #1802
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-11-13 07:29:56 +01:00
Wouter Born
0281c10036
[infrastructure] add external null-annotations ( #1775 )
...
Add EEAs and fix null analysis errors.
Related to:
* #888
* openhab/openhab-addons#8848
Signed-off-by: Wouter Born <github@maindrain.net>
2020-11-03 21:33:48 +01:00
Kai Kreuzer
749b8f17fe
[automation] Allow dashes in rule file names ( #1750 )
...
* Allow dashes in rule file names
Fixes #1728
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-10-25 20:19:00 +01:00
Kai Kreuzer
5d830d64f0
Fixed missing item resolution of DSL scripts created through the UI ( #1720 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-10-15 23:04:30 +02:00
Kai Kreuzer
b06d466774
ensure that DSLScriptContextProvider is injected whenever available ( #1606 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-08-22 23:12:38 +02:00
Wouter Born
057604cc2d
Use new Collection API methods ( #1598 )
...
Using the new methods there will be less and more readable code.
Signed-off-by: Wouter Born <github@maindrain.net>
2020-08-22 23:04:11 +02:00
Kai Kreuzer
173c93081d
Replaced "classic" rule engine by a DSLRuleProvider for the NGRE ( #1451 )
...
Signed-off-by: Kai Kreuzer <kai@openhab.org>
2020-06-14 10:36:25 +02:00
Wouter Born
18d0a52d02
Switch to Java 11 and drop Java 8 support ( #1305 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-12 22:32:28 +01:00
Wouter Born
3811cb9560
Update copyright headers to 2020 ( #1309 )
...
* Update copyright headers to 2020
Signed-off-by: Wouter Born <github@maindrain.net>
2020-01-01 18:06:34 +01:00
Christoph Weitkamp
800956598b
Applied spotless formatter ( #1302 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-30 22:55:19 +01:00
Christoph Weitkamp
59675788e0
Renamed packages
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 12:18:16 +01:00
Christoph Weitkamp
fca7c215a5
Moved files to new location
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-12-28 12:18:16 +01:00
jenkins
bc6a380297
[unleash-maven-plugin] Preparation for next development cycle.
2019-12-15 14:55:36 +00:00
Wouter Born
be69d2254e
Use !isEmpty() instead of "size() > 0" or "size() != 0" ( #1155 )
...
* Use !isEmpty() instead of "size() > 0" or "size() != 0"
!isEmpty() expresses the intent more clearly and is therefore preferred.
Counting the number of elements can also be an expensive operation e.g. when using linked lists.
Co-Authored-By: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-21 09:00:52 +02:00
Christoph Weitkamp
91617d8af8
Fixed POM XML Shema Definition path ( #1119 )
...
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
2019-10-12 08:52:16 +02:00
Wouter Born
3d52c72a91
Fix SAT AuthorContributionDescriptionCheck findings ( #1110 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-10 11:36:05 +02:00
Wouter Born
12b3c1030f
Fix SAT "Initial contribution" warnings ( #1100 )
...
Fixes the SAT warning: First javadoc author should have "Initial contribution" contribution description.
Signed-off-by: Wouter Born <github@maindrain.net>
2019-10-07 21:25:40 -07:00
Wouter Born
cbb96945f0
Ignore and remove Eclipse project specific settings ( #677 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-26 13:04:09 +01:00
Wouter Born
48d873a32b
Use openHAB license headers ( #632 )
...
Signed-off-by: Wouter Born <github@maindrain.net>
2019-03-06 16:10:00 +01:00