Describe the bug
When a workflow resource has a wait directive with a condition in it, the resource is not added to the state file until after the wait directive is complete. Any attempt to recover a workflow that is interrupted in the middle of a wait (which is most times that we need to recover a workflow) runs into an error where the workflow tries to recreate the object with the wait directive since it did not find it in the state file.
To Reproduce
Create a workflow with any resource with a wait directive, run the workflow and then inturrupt it in the middle of the wait direct, try to resume the workflow.
Expected behavior
A workflow which is interrupted in the middle of a wait should continue again at the wait directive.
Describe the bug When a workflow resource has a wait directive with a condition in it, the resource is not added to the state file until after the wait directive is complete. Any attempt to recover a workflow that is interrupted in the middle of a wait (which is most times that we need to recover a workflow) runs into an error where the workflow tries to recreate the object with the wait directive since it did not find it in the state file.
To Reproduce Create a workflow with any resource with a wait directive, run the workflow and then inturrupt it in the middle of the wait direct, try to resume the workflow.
Expected behavior A workflow which is interrupted in the middle of a wait should continue again at the wait directive.