oracle-samples/clara-rules

Add validation that queries provide the correct parameters

Opened this issue · 0 comments

With the default implementation of the session(LocalSession), the way that query is implemented it currently expects the caller to provide the parameters that the query expects, without explicitly verifying that they have.

This can lead to odd behavior, as without all parameters provided to the query it will not be able to find the correct tokens in memory

With this issue, I want to:

  1. Add validation that that the parameters provided to the query contain keys only stipulated in the parameters of the query itself otherwise fail
  2. Update the documentation1 around the usage of query to be more explicit on the fact that the parameters to a query align to that of the bindings in the query constraints