I'm trying to configure a workflow launcher to fire when a content fragment is saved and not before. Currently, my launcher is configured like this:
Event Type: Modified
Nodetype: dam:Asset
Path: /content/dam/mysite/us/en/content-fragments/insights(/.*)
Run Mode: Author
Conditions:
jcr:content/data/master/cq:tags!=
jcr:content/data/master/insight-title!=
jcr:content/data/cq:model==/conf/mysite/settings/dam/cfm/models/insight
Workflow: MyWorkflow
The conditions keep it from firing unless insight-title field is populated, there are cq:tags, and the model is of type "insight", but if those conditions are met, the launcher fires BEFORE the content fragment form is saved if any of the fields on it are touched. I know this because the WorkflowProcess implementation I've written fires the execute method as soon as the cursor leaves a field on the form after changing it and before saving.
I have been looking at the /jcr:content/data/master/fieldname@LastModified fields hoping to see these field changes recorded before save so I could write a condition to account for them, but they appear unchanged until save.
Is there a way to write a launcher which will fire on save of a content fragment instead of when a field is touched in the form but not yet saved?