Hi,
I need to create custom version for Asset in which, on any check-in (modification) version should be updated like 1.0, 1.1, 1.2.......1.n. and on Publish it should change to 2.0, 3.0,4.0,.....,N.
I'm using below event handler to handle the event on version change.
Event Handler --> EventConstants.EVENT_TOPIC + "=" + DamEvent.EVENT_TOPIC.
Event : DamEvent.Type.VERSIONED.
I'm keeping the property "customVersion" on jcr:content node. On Version modification its properly incrementing but on restore the Event is getting triggered twice and its incrementing the value on the restored version instead of latest or current value.
In OOTB, versionHistory is properly creating the version and maintaining the sequence.
Can anyone suggest any solution for it to distinguish the Event for Restore or how OOTB versionHistory works.
Thanks in Advance!!!