How to test/simulate/experiment with juel expressions without redeployment of the Camunda model

I would like to test expressions within the context of a process instance without deploying a new model from the modeler. I want this to improve the time it takes to develop/adjust the model.

I’ve looked into the documentation of the engine rest API and couldn’t find anything. I’ve also searched the forum without any results.

The solution I’m thinking of is to create a custom rest API method which accepts an expression and a process instance guid. Not sure if this is the right direction and if it is possible to evaluate an expression from within such an API call.

(We are currently using Camunda 7.17)