Extend automation 6.0
From OpenKM Documentation
Refer to Enable automation section to know how enable automation. By default automation is not enabled.
Refer to Automation section to configure automation rules in your OpenKM and get full explanation of available validators and actions.
Create a new validator
Any validator should implements interface Validation:
public interface Validation {
public static final String METHOD = "isValid";
boolean isValid(HashMap<String, Object> env, Object... params);
}