I have a Form (Forms 11.0.2 using NEW designer) that upon submittal, runs a Workflow, waits for the Workflow to complete, and then moves to the next approval step. The Workflow pulls data from the Form and sends back data to populate a table. This process of updating the table variables by Workflow happens after each approval until the process is complete. The process works fine so long as the number of rows in the table it is populating remains the same or increases. The problem comes if there are now less rows for it to populate than previously. While it updates the rows it has data for, it ends up leaving the extra rows and not removing them.
Here is an example.
- I submit a form & workflow populates a table with 4 rows
- Someone else approves the same form and workflow now populates only 3 rows
- The first 3 rows update correctly but the previous 4th row remains instead of being removed
I know I can clear ALL rows from a table in Workflow by setting every column in the table to %(DB.NULL) when sending back Business Process Variables. Has anyone found a way in Workflow to either:
- Clear a table and then repopulate it
- Repopulate a table and have any excess rows removed