Skip to content
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

Add support for the System Reached Start Level trigger #192

Open
nelsonaponte opened this issue Jan 30, 2024 · 0 comments
Open

Add support for the System Reached Start Level trigger #192

nelsonaponte opened this issue Jan 30, 2024 · 0 comments

Comments

@nelsonaponte
Copy link

nelsonaponte commented Jan 30, 2024

As described in the standard documentation for the core rules, JRule should provide a rule trigger for the System Start Levels 40 and up.

Example
@JRuleName("StartLevelRule") @JRuleWhenSystemReachedStartLevel(40) public void execChangedToRule() { logInfo("||||| --> Executing rule MyRule"); }

Only the following values, as specified in the rules documentation, should be supported:
40 - Rules are loaded and parsed, both from db as well as dsl and script files.
50 - Rule engine has executed all "system started" rules and is active.
70 - User interface is up and running. (planned, not included yet)
80 - All things have been initialized. (planned, not included yet)
100 - Startup is fully complete.

It should be possible to combine multiple triggers.
Optional, only one JRuleWhenSystemReachedStartLevel trigger should be valid as it doesn't make much sense to have multiple triggers of this type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant