Do something while workflow is running

I’d like to change a text for the duration of the execution of a workflow (from the moment it gets triggered to the moment it ends).

Is there a way form the element (formula?) to do this?

I could use an action at the beginning of the workflow and one at the end of it to achieve this, but I’d need to create tons of variables (there’s a lot of such elements).

Why not create a component? Then you can make a workflow that can be triggered from outside of it

How would I use dynamic text for the component variable value?

You make a property called Text and then bind the text content to that property