whilst for myComments it'll be just
e) another very important piece is rule activation conditions for each rule (defining when a rule is applied)
when a certain metadata field changes (xEumRev in our case), upon the checkin of the document the comments field is cleared out?You can't do that with rules. Rules are declarative, and are executed on the server-side.
- However, you don't need to do that - if you are processing CheckinNew, or CheckinSel dpAction for OnSubmit dpEvent, you already know (from the rule activation condition itself) that there is a new revision
<$if not strEquals(#active.dRevLabel, #active.xmyEumRevLabel)$> ... <$endif$>