google-code-export / openhab

Automatically exported from code.google.com/p/openhab
GNU General Public License v3.0
0 stars 0 forks source link

Rules of type "System started" should start after Item Initalization #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Having a lot of KNX and other Items and a couple of rules to get everything 
working, i see some errors in 1.3 which i did not have in 1.2.x. In 1.3 the 
initialization of the Rules seems to start right away - causing errors since 
the items do not have the correct values.

What steps will reproduce the problem?
1. Start the System with "System started" Rules

What is the expected output? What do you see instead?
Wait till the System is completely initialized. If it is by design, there 
should be an option "System initialized"

What version of the product are you using? On what operating system?
openhab 1.3 
Raspbian GNU/Linux 7 (wheezy)

Original issue reported on code.google.com by tim.wey...@gmail.com on 15 Sep 2013 at 8:40

GoogleCodeExporter commented 9 years ago
I would like to suggest here to move the FolderObserver out of the 
org.openhab.model.core bundle and into it's own bundle which is started with a 
default start level of 5 (i.e. after all other bundles have started).
This will also make it easier to tune startup performance as the separation 
between bundle startup and bundle configuration timings will become clearer.

Original comment by davy.van...@gmail.com on 17 Sep 2013 at 10:38

GoogleCodeExporter commented 9 years ago
It will still leave the order of item and rule loading undefined, but it this 
sounds indeed like a useful refactoring.

Original comment by kai.openhab on 18 Sep 2013 at 7:22

GoogleCodeExporter commented 9 years ago
Yes, the system start rules would also have to be delayed until all items are 
loaded.
If we can target 1.4.0 for this, I'm happy to take ownership of this work..

Original comment by davy.van...@gmail.com on 18 Sep 2013 at 8:01

GoogleCodeExporter commented 9 years ago

Original comment by kai.openhab on 18 Sep 2013 at 8:11

GoogleCodeExporter commented 9 years ago
Started working on this.

Original comment by davy.van...@gmail.com on 22 Sep 2013 at 6:00

GoogleCodeExporter commented 9 years ago
Migrated to https://bugs.eclipse.org/bugs/show_bug.cgi?id=423516

Original comment by kai.openhab on 7 Dec 2013 at 10:20