need to know how this code works?
The user is responsible to set the value of the observation so that it is up-to-date when requestdecision() is called. You can set parameter values with code like this:
Model.parameters.MyParam = 5;
You can either set it as part of your model logic (in Process Flow or object triggers, etc.) or you can write code in the On Observation trigger in the RL tool.

Hi @sharan-nitin, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.