Even I had some confusions when maintaining parent/child relationship between the queues. The given PDF have the following steps to accomplish this relation:
• Get new work from the work source (i.e. Excel, Web Service, Database, Workflow System etc...)
• Add child items to the “Child” Work Queue. Store the Item ID for the new child items so that they can be subsequently tagged
• Tag each Child item with the same “relationship key”
• When all child items are added, add a single item to the “Parent” Work Queue. The Item Key will be the same as the relationship key Item Tag added to the child items.
• The item data for the Parent item could include all the item keys of the child items, this can then drive the output once all child items have been worked.
• Tag each item with the Item Tag “Parent Created”
Point 4 from above steps states that, we will have to add the single item to the parent queue when all child items are added. How this could be done?
Also, in one single item of the parent queue, how to maintain all the item keys of the child queue?