# hasSimilarSituations

A Workflow Engine function that returns true when the Situation has a similar Situation above the specified threshold. Uses the Situation Similarity utility provided with the Workflow Engine to calculate similarity between .5 (50% similar) and 1 (100% similar).

The Situation Similarity requires some configuration. You can find the configuration file at: \$MOOGSOFT_HOME/config/SimilarSigConfig.conf.

• Verify the Graze API credentials are valid.

• Verify the webhost is correct if the UI runs on a different host than Moogfarmd.

This function is available as a feature of the Workflow Engine v1.0 and later.

This function is available for Situation workflows only.

## Arguments

Workflow Engine function hasSimilarSituations takes the following arguments:

Name

Required

Type

Description

Similarity

Yes

Number

Similarity threshold between .5 and 1 used to identify similar Situations. Situations with an equal or greater value qualify.