What does "&:" mean in JessRule?

44 Views Asked by At

I have this JessRule code

     (ServiceConfiguration
        (endpoint ?j_endpoint &:(call ?j_advertiserEndpoint equals ?j_endpoint))
        (config ?j_config &:(call ?j_config containsSetting "verbs-count"))
     )

Does the code mean that it assigns the return value of (call ?j_advertiserEndpoint equals ?j_endpoint) to j_endpoint

1

There are 1 best solutions below

2
laune On BEST ANSWER

Ampersands (&) represent logical "and", while pipes (|) represent logical "or." A colon (:) followed by a function call is a logical expression (constraint) that is true if the function returns the special value TRUE.

The search for endpoint facts succeeds if it has a single field that equals the return value from the call.

No assignment takes place.