Rules are the central configuration object in ifServ. Rules consist of one or more Solutions, Solutions are the thing which produce a result based on the input facts.
Solutions consist of
- An optional Condition – the condition evaluates facts and determines if the rule executes or not. If there is no condition, the rule will execute.
- Solution Result – the solution result is either a static JSON object, or dynamic javascript. A javascript solution result has full access to the input facts and can even call other rules and use the results from them