Validate rules at the time of checking in
I am trying to stop users from checking in flows in "draft" mode. I know Pega by default shows the warning of the same rule being not executed in production, but still does not stop users from checking in the same rule in lower environments. What's the best way to validate at the time of checking in a flow in Draft Mode?
I am thinking of override the general Validate rule that gets called at the time of check in, but not very sure as to where in clipboard i should look for the current flow's mode being in "Draft" mode ON.