Workflow Launcher on Node 'Remove'
Hi All,
We have a requirement where we need to insert/update/remove XDP Forms metadata to Data Base table when the form is published/unpublished. To meet the same requirement I'm doing following.
1. Create Workflow Launcher with event Types 'Node Created' & 'Node Modified' and configured my custom workflow to be trigger upon node create/modify.
2. Custom workflow has the logic to insert /update data in Database table. (Custom workflow process has logic to read XDP form metadata from jcr and update the same in the DB table)
As a result, forms metadata is inserted/updated successfully in DB table whenever the form is published.
Note: We have configured launcher in AEM publish instance so that the forms metadata will be inserted/udpated whenever the XDP form is uploaded/updated.
But the challenge is, we need to remove XDP metadata information from the DB table whenever the form is unpublished as well..
For this, I've tried to create Node Removed event type in the launcher and triggering the workflow but in the workflow process, I'm getting only payload but can't read metadata of the form as the node got removed already from jcr when the form is unpublished. So I'm not able to remove the data from DB in the case unpublish.
Please advise.
Quick response would be more appreciated.
Thanks In advance
Siva
