Hey,
I have 3 Data Types:
-
Folder
with 2 fields
- Name (text)
- Documents (list of Documents)
Document
- Name (text)
- Files (list of Files)
File
- Name (text)
- File (file)
So, each Folder
can contain a list of Documents
. And each Document
can contain a list of Files
.
When a user deletes a Folder
, I schedule backend-workflow-1
for Current Date & Time
with only 1 parameter: Key
= folder type folder-parameter
Inside backend-workflow-1
, there are the following actions:
- I schedule
delete-files
(recursive backend workflow) forCurrent Date & Time
with 1 parameter:
-
Files
(typeFile
and it is a list/array) =folder-parameter´s Document´s File´s
. That evaluates to allFiles
of allDocuments
of thatfolder-parameter
.
- I schedule
delete-documents
(recursive backend workflow) forCurrent Date & Time + 4 days
(for not exceeding my capacity and have time to delete first all theFiles
) with 1 parameter:
-
Documents
(typeDocument
and it is a list/array) =folder-parameter´s Document´s
. That evaluates to allDocuments
of thatfolder-parameter
.
- I schedule
delete-folder
forCurrent Date & Time + 1 day
with 1 parameter:Key
= files typeFiles
and it is a list/array (checked).
-
Folder
(typeFolder
) =folder-parameter´s
My question is, when I schedule delete-documents
, that the list of Documents
is folder´s Document´s
(being folder-parameter´s
the key parameter from backend-workflow-1
.
What happens when the delete-folder
happens before the delete-documents
?
Does the list of delete-documents
disappears because the Folder
does not exists? Or everything is okay because the list of documents was previously captured in backend-workflow-1
.
I have this in a live app, but I questioned this after I deployed and don´t know if it´s well structured or can there be some errors.
Thanks in advance