Hello,
"After that I need to put a decision task which when executed and clicked approve, needs to update the workflow ID in a custom approve table."
No no no no no no.
Do not do that. There are plenty of workflow tables, there is no need to add any more.
regards
Rick