Initially,
I imagined getWorkflowStaticData(‘global’) as a temporary storage area for variables for a specific workflow execution. This seemed fantastic because I wouldn’t need to store these variables in an external database. However, to my surprise, it isn’t a global storage area for a specific workflow execution but rather for the entire workflow as a whole. I discovered by accident that getWorkflowStaticData(‘global’) means that all executions manipulate the same variables.
I would like to know if there is a way to have the same functionality as getWorkflowStaticData(‘global’) but specific to a particular workflow execution?
From what I could see in the documentation in detail, the Custom executions data is suitable for storing static variables at the Workflow Execution level. I read the topic you indicated, and there are some very interesting points. I am still in doubt whether, over time, I will have problems with this storage of static variables at the execution level.
You can access any variable of executed nodes within one execution by default (if you have outputted them). If you mean that you will need only one specific past execution, then there is no build-in method for that. Consider using an external storage (files, dbs, tables, etc)