Difference between revisions of "Extend automation 6.0"

From OpenKM Documentation
Jump to: navigation, search
Line 3: Line 3:
 
Refer to [[Automation]] section to configure automation rules in your OpenKM and get full explanation of available validators and actions.  
 
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:
 +
 +
<source lang="java">
 +
public interface Validation {
 +
public static final String METHOD = "isValid";
 +
 +
boolean isValid(HashMap<String, Object> env, Object... params);
 +
}
 +
</source>
  
  
  
 
[[Category: Extension Guide]]
 
[[Category: Extension Guide]]

Revision as of 20:04, 1 November 2012

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);
}