You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ran across a use case where i wanted to know if a date was at least 5 minutes greater than another date. But if I have other cases like 10 minutes then I need to create operators for each test. If I could send in params with the operator it would allow for some pretty flexible conditions.
@aravindnc One individual requesting a feature doesn't warrant implementation; additional supporting evidence is required. If you'd derive value from this feature and would like to vote for it, please feel free to add a 👍 Alternatively, if your company is in need of this feature and is interested in financing the implementation, that can also be arranged. Finally, if you'd like to take a crack at building this out yourself, I'm happy to help better define the feature and merge a PR.
@efbenson Without implementing a potentially breaking change to the structure of rule definitions, it would be hard to implement your exact requirement. However if you were to establish your fact differently, reducing your two fact values to just one by performing the calculation yourself before passing the fact to JSON Rules Engine, you could achieve this without any JRE modifications, i.e. date2 - date1 = elapsedTime (ms), so your rule could check elapsedTimeMins greaterThan 5.
Ran across a use case where i wanted to know if a date was at least 5 minutes greater than another date. But if I have other cases like 10 minutes then I need to create operators for each test. If I could send in params with the operator it would allow for some pretty flexible conditions.
The text was updated successfully, but these errors were encountered: