-
Notifications
You must be signed in to change notification settings - Fork 119
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
Expose the request to cicero-engine.init() #604
Comments
I wanna work on this project can you assign it to me. |
Thanks for the report @discochance. After some review it seems that this was always something supported by the engine, but simply not exposed in the API. I have a PR #620 open to allow Feedback welcome. |
@irmerk I really dislike automatic closing of issues. We should give maintainers and issue originators the chance to further comment before closing. |
@discochance A fix is in! Let us know if this seems satisfactory or if any further questions. |
Thank you very much, this is exactly what we needed! |
@jeromesimeon the PR template auto links (and thus auto closes) the associated issue which is placed in |
Is your feature request related to a problem? Please describe.
A the moment, init sets the parameters to
{}
in https://github.com/accordproject/cicero/blob/b78e759d47053f73f9d7a5d357b4ace98807da40/packages/cicero-engine/lib/engine.js#L85 but for certain use-cases, it is necessary to pass an object to the init clause.Describe the solution you'd like
The interface could expose the object like
init(clause, currentTime, request = {})
, it would be possible to pass additional arguments.Additional context
I have created a minimal example from the HelloWorld Clause helloworld.zip. This still fails when I test modifying the passed object locally with:
The text was updated successfully, but these errors were encountered: