Assume that there are three products P1,P2,P3. Single workflow should be created for all the three products, meaning single workflow will have 3 products as an attachments.
I tried creating workflow using AfterSaveListener when a new product is added or editing the existing product but it is creating the single workflow for each product. I mean, if there are 3 products then it is creating 3 workflows, not single workflow for 3 products.
Please help, how to achieve this ?