Execute custom script code

I’m designing a tool for the business folks to create their workflow from ui drag and drop, now i have a use case where i want to provide some node which can accept some markup language kind of code which is easier for non-tech folks to write and then process that in the backend in my temporal workflow definition. Any suggestions how should i go about it, basically what kind of language i can give in the frontend and then how can i process/execute that in temporal application ?

i want to provide some node which can accept some markup language kind of code which is easier for non-tech folks to write and then process that in the backend in my temporal workflow definition

can you explain what your user defines here? is it business logic or just some instructions you need to run inside a temporal activity? if can provide some (pseudo) example, would help

This will be mostly instructions and not business logic, say there is a workflow in which there was a fetch node which has fetched some data from internal service and now user wants to apply some condition on this data like iterating some array fields or accessing nested fields values, etc.

condition on this data like iterating some array fields or accessing nested fields values, etc.

so its mostly data manipulation? if your data is in json format, personally am big fan of jq. otherwise would look at some scripting language of your choice that could possibly use and you could run instructions inside temporal activity

1 Like