@Documented @Retention(value=CLASS) @Target(value=METHOD) public @interface Function
Modifier and Type | Optional Element and Description |
---|---|
boolean |
asynchronous
Function executes asynchronously
|
java.lang.String |
cautions
Description of any cautions associated with this function.
|
boolean |
disableOptimization
Disable optimization of rule function
|
java.lang.String |
example
Example on how to use this function.
|
boolean |
hasSideEffects
Indicate whether method has side-effects.
|
public abstract boolean hasSideEffects
A method has side effects if it modifies application concepts.
The default value is true.
public abstract boolean disableOptimization
Setting this value to true indicates that the result of this function cannot be cached to optimize performance - it must always be evaluated.
Setting this value to false indicates that the result of this function can be cached to optimize performance. In some cases, this function will be skipped being called during rule execution.
The default value is true.
public abstract boolean asynchronous
Setting this value to true indicates that the function executes asynchronously.
Setting this value to false indicates that the function executes synchronously.
The default value is false.
public abstract java.lang.String cautions
The default value is an empty string.
public abstract java.lang.String example
The default value is an empty string.