In the execution of a workflow, we have access to the $workflow
data: isActive
, workflowId
, workflowName
.
I think that now you know the final id of the execution when it starts. Assuming that, it would be nice if we could have access to the execution id also. It could be something like $workflow.executionId
. Other data that now is available could also be added.
I saw in the packages/workflow/src/WorkflowDataProxy.ts
that it gets the data from the object of the type Workflow
(packages/workflow/src/Workflow.ts
). So the execution Id isn’t in this class, so instead of putting it in the $workflow
, it would make more sense to create an $execution
variable.
Anyway, I would love to have the execution id in the workflow, so then I have to debug something outside, I could just look up the id returned in some webhook and easily find the execution I should look, instead of looking through dozens of executions and maybe dealing with cases that the executions weren’t saved (by wrong settings or bugs).