Creating, Editing and Deleting Evaluators
Creating Evaluators
Evaluators are Java classes, which can be used to verify whether the given condition in a workflow evaluates to true or false. For more information on Evaluators, refer Library JSON.
To create an evaluator, perform the following steps in Canvas Studio:
- On the home page of Canvas Studio, click Request Category.
The Request Category page appears.
- Click Evaluators tab.
The list of evaluators appears with their respective IDs, Names and Is Group values.
- Click Evaluator option to create a new evaluator.
The Evaluator page appears.
- Enter a unique name in the Evaluator ID field, e.g. equals.
- Enter an appropriate name in the Evaluator Name field, e.g. equals.
- Enter the relevant class name in Evaluator Class field, e.g. com.intellectdesign.canvas.rules.impl.EqualsEvaluator.
Note: The Evaluator Class Name should be appropriate and relevant. It is not possible to derive the classes of the previously existing evaluators.
- To enable grouping for the evaluator, select the Is Group? Checkbox.
Note: The Is Group? Checkbox is an optional field.
- Click Save to save the newly created evaluator.
A confirmation message, indicating a successful save, appears.
- Click Ok.