Class CustomFieldPriorityAlgorithm
java.lang.Object
com.aquima.interactions.process.impl.algorithms.CustomFieldPriorityAlgorithm
- All Implemented Interfaces:
IPriorityAlgorithm
,Serializable
The Custom Field Priority Algorithm can be used to define the priority as a task based on an expression. The
expression that is to be used is added to the model of a task as the value of a custom field with the name Priority.
When a task based on the model is created, the expression is evaluated. The resulting integer value is used as the
priority value for that task. Note that no re-evaluation of the expression is available - expressions will be
evaluated on creation only.
- Since:
- 9.5
- Author:
- G. der Kinderen
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method should evaluate the priority for a task.
-
Field Details
-
NAME
The functional name of this algorithm.- See Also:
-
DEFAULT_PRIORITY_VALUE
-
CUSTOMFIELD
Name of the custom field from which the expression is evaluated.- See Also:
-
-
Constructor Details
-
CustomFieldPriorityAlgorithm
public CustomFieldPriorityAlgorithm()
-
-
Method Details
-
evaluate
Description copied from interface:IPriorityAlgorithm
This method should evaluate the priority for a task.- Specified by:
evaluate
in interfaceIPriorityAlgorithm
- Parameters:
context
- context object containing data may be used during evaluation.- Returns:
- priority integer.
-