Ana Marie De Vera
Ana Marie De Vera

Reputation: 43

What does "&:" mean in JessRule?

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

Upvotes: 0

Views: 47

Answers (1)

laune
laune

Reputation: 31290

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.

Upvotes: 1

Related Questions