-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added rule rest endpoint and backend operation for rule execution simulation #2125
Added rule rest endpoint and backend operation for rule execution simulation #2125
Conversation
Hey, i need your help here :( The jenkins build fails with the following error messages:
So this seems that my changes within the bundle org.openhab.core.automation are not available when building the org.openhab.core.automation.integration.tests bundle. It seems to me if an wrong version of the previous build bundle has been resolved?! Confusing is also that the jenkins status page https://ci.openhab.org/job/PR-openHAB-Core/3049/ shows up green for all the given modules but the build is failed... What can i do? Of course this compiles and runs on my machine :D Thanks! |
ee94c04
to
3ba1dc3
Compare
…e based and thus can be used to simulate execution times. Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
…time based and thus can be checked during rule execution for a certain time. Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
…xpression. This better hides the internals of the TriggerHandler (i.e. the cron expression) and is more clear and flexible for other handlers to implement Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
3da3d6b
to
aabee1d
Compare
@openhab/core-maintainers maybe you'd want to have a look at this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work. I looked into your PR and left some thoughts.
bundles/org.openhab.core.automation/src/main/java/org/openhab/core/automation/RuleManager.java
Outdated
Show resolved
Hide resolved
...re.automation/src/main/java/org/openhab/core/automation/internal/RuleExecutionSimulator.java
Outdated
Show resolved
Hide resolved
...main/java/org/openhab/core/automation/internal/module/handler/GenericCronTriggerHandler.java
Outdated
Show resolved
Hide resolved
...re.automation/src/main/java/org/openhab/core/automation/handler/TimeBasedTriggerHandler.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/openhab/core/automation/internal/module/handler/TimeOfDayTriggerHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.core/src/main/java/org/openhab/core/common/CronAdjuster.java
Outdated
Show resolved
Hide resolved
...re.automation/src/main/java/org/openhab/core/automation/internal/RuleExecutionSimulator.java
Outdated
Show resolved
Hide resolved
...re.automation.rest/src/main/java/org/openhab/core/automation/rest/internal/RuleResource.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/solved-oh3-schedule-rules/120518/8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
…execution simulation (openhab#2125) * Added marker interface for TriggerHandler to indicate if they are time based and thus can be used to simulate execution times. * Added marker interface for ConditionHandler to indicate, if they are time based and thus can be checked during rule execution for a certain time. * Moved CronAdjuster to common, so it can be used for the rule simulation * Created RuleExecutionSimulator that allows simulation of rules * Added method in RuleManger to create simulation * Added rest endpoint for rule simulation. * Changed marker interface to return TemporalAdjuster instead of cron expression. This better hides the internals of the TriggerHandler (i.e. the cron expression) and is more clear and flexible for other handlers to implement Fixes openhab#2044 Fixes openhab#2266 Signed-off-by: Sönke Küper <soenkekueper@gmx.de>
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
…execution simulation (openhab#2125) * Added marker interface for TriggerHandler to indicate if they are time based and thus can be used to simulate execution times. * Added marker interface for ConditionHandler to indicate, if they are time based and thus can be checked during rule execution for a certain time. * Moved CronAdjuster to common, so it can be used for the rule simulation * Created RuleExecutionSimulator that allows simulation of rules * Added method in RuleManger to create simulation * Added rest endpoint for rule simulation. * Changed marker interface to return TemporalAdjuster instead of cron expression. This better hides the internals of the TriggerHandler (i.e. the cron expression) and is more clear and flexible for other handlers to implement Fixes openhab#2044 Fixes openhab#2266 Signed-off-by: Sönke Küper <soenkekueper@gmx.de> GitOrigin-RevId: db488d8
Fixes #2044
Fixes #2266
UI PR is openhab/openhab-webui#815