microsoft / RulesEngine

A Json based Rules Engine with extensive Dynamic expression support
https://microsoft.github.io/RulesEngine/
MIT License
3.47k stars 528 forks source link

GlobalParams #566

Open abib2 opened 6 months ago

abib2 commented 6 months ago

Dear Community, i am really new to Rules Engine and now have a question. Is it possible to create only named parameters that can be accessed for writing and reading during action execution .

For example: My first action will be getting an auth_token from a rest api. This token should be saved to a parameter variable so that it can be used in antoher action. Then in the second action i want to call another rest api endpoint and send the correct token within the header informations.

Is this possible? If yes, how do you solve such a topic?

Thanks. Bye Arne

daxnet commented 5 months ago

My guess is that you'll have to implement your own CustomAction, take the token as the input and invoke the API with attaching the token as the request header.