-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Facts should implement Serializable #159
Comments
Thank you for raising this. Currently, Easy Rules is not usable in a distributed system. I will make |
@benas : Thank you for quick reply. I will try to implement Serializable interface for Facts and other classes wherever it’s required and will let you know about it. I am currently in process of integrating easy-rules with Spark driver. My major focus is on using MVELRule which supports dynamic configurable behaviour. |
Great to hear Easy Rules being used with Spark. Please do not hesitate to share your experience, I'm curious! Let me know which APIs need to be serializable and I'll make them serializable in the next version. |
@benas Thank You. I got not Serializable exception in following classes. So I had implemented Serializable inteface for all these.
|
For MvelRule I am getting following exception,
|
Thank you for your feedback and for giving the link to the mvel issue (this is out of scope of easy rules). So if I understand correctly, only |
Nope. I have listed all the classes in my previous comment. |
I would like to contribute for Spring EL rules |
Sure! you are welcome! |
Spel Support has been added in #204 and will be included in the upcoming v3.3 release. Can you please give it a try with version 3.3.0.SNAPSHOT and let me know what do you think? I'm asking for your help since you already tried with SpEL and your feedback will certainly be invaluable! Please add a comment if any in #204, let's keep this issue for the Looking forward to your feedback. |
While I can understand that some classes can be changed to implement When I evaluate the cost of change, it is actually more than the 11 classes/interfaces you listed. It should also be done for For this reason, I'm closing the issue for now. Thank you anyway for raising it. |
Can we add support for rule engine to implement serializable interface
Caused by: java.io.NotSerializableException: org.jeasy.rules.api.Facts
Serialization stack:
- object not serializable (class: org.jeasy.rules.api.Facts, value: [])
The text was updated successfully, but these errors were encountered: