Annotation Interface Fact


@Target(PARAMETER) @Retention(RUNTIME) public @interface Fact
This annotation can be used to mark a parameter in a method with a fact value. It is used in conjunction with the Rete rule engine to specify a named fact value that is used in the rule condition or action.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The fact variable, e.g '$customer'
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Because the engine allows the same Java classes to have different logical types, this parameter enables the explicit identification of the fact's logical type.
  • Element Details

    • value

      String value
      The fact variable, e.g '$customer'
      Returns:
      fact variable
    • type

      String type
      Because the engine allows the same Java classes to have different logical types, this parameter enables the explicit identification of the fact's logical type.
      Returns:
      the logical type of the argument
      See Also:
      Default:
      ""