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

Dynamic rules #177

Merged
merged 4 commits into from Nov 28, 2023
Merged

Dynamic rules #177

merged 4 commits into from Nov 28, 2023

Conversation

seaside1
Copy link
Owner

@seaside1 seaside1 commented Oct 8, 2023

Updated pull request. For dynamic rules

@seaside1
Copy link
Owner Author

seaside1 commented Oct 8, 2023

I've done these changes in order to dynamically generate rules and items.
See https://github.com/seaside1/jrule-sonos for an example of how it can be used.

@kuimovvg
Copy link
Contributor

kuimovvg commented Oct 8, 2023

It looks good, but in addition to the method of adding dynamic rules, you need a method for removing these rules.

optionList.add(cp);
logDebug("Compiling classes using classpath: {}", cp);
logDebug("1337Compiling classes using classpath: {}", cp);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What a magic number is this?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that one,

@seaside1
Copy link
Owner Author

seaside1 commented Oct 9, 2023

It looks good, but in addition to the method of adding dynamic rules, you need a method for removing these rules.

When would you like to do this? I mean if you have a use-case?

@kuimovvg
Copy link
Contributor

kuimovvg commented Oct 9, 2023

now doing it in #178

@kuimovvg
Copy link
Contributor

kuimovvg commented Oct 9, 2023

Something like this fb997f6

@seaside1
Copy link
Owner Author

@querdenker2k Would be good to get a review on this, so we can merge and then continue building on the dynamic rules.

@seaside1
Copy link
Owner Author

I'm merging this due to now review other than querdenker2k comment above.

@seaside1 seaside1 merged commit a07c951 into main Nov 28, 2023
2 checks passed
@seaside1 seaside1 deleted the dynamic-rules branch February 9, 2024 12:46
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

Successfully merging this pull request may close these issues.

None yet

3 participants