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:

  1. On the home page of Canvas Studio, click Request Category.



    The Request Category page appears.



  2. Click Evaluators tab.



    The list of evaluators appears with their respective IDs, Names and Is Group values.



  3. Click Evaluator option to create a new evaluator.



    The Evaluator page appears.



  4. Enter a unique name in the Evaluator ID field, e.g. equals.



  5. Enter an appropriate name in the Evaluator Name field, e.g. equals.

  6. 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.




  7. To enable grouping for the evaluator, select the Is Group? Checkbox.

    Note

    The Is Group? Checkbox is an optional field.




  8. Click Save to save the newly created evaluator.



    A confirmation message, indicating a successful save, appears.



  9. Click Ok.