Hi,
I would create this service workflow with these steps:
- Initialization, save draft to start the instance, continue to read the changes.
- Changes read
- Create workflows
- Completed
The first three steps have a Timeout/Timer which triggers after 1 minute to move the workflow to the next step.
Depending on the number of workflows it maybe necessary to create a loop
Create workflows -> Start workflows -> All workflows started -> Yes -> Completed
Create workflows -> Start workflows -> All workflows started -> No -> Create workflows
The path to read the changes would get the difference and store those changes in an item list. This item list will then be used to start the workflows.
This way you can test the process manually and have a transparent overview, where something goes wrong.
The question is how to identify the differences.
- Is there a timestamp in the table?
- Are only new rows added`?
Depending on it, you could check which was the last record in the previous workflow instance and add only the new ones in the current one.
Best regards,
Daniel