def

func:haystackEval

haystackEval(conn, expr, opts: null)

Evaluate an Axon expression in a remote server over a haystack connector. The remote server must be a SkySpark server which supports the "eval" REST op with an Axon expression. This function blocks while the network request is made. The result is always returned as a Grid using the same rules as Etc.toGrid.

The expression to evaluate in the remote server may capture variables from the local scope. If these variables are atomic types, then they are captured as defined by local scope and serialized to the remote server. Pass {debug} for opts to dump to stdout the actual expr with serialized scope.

Options:

  • debug: dumps full expr with seralized scope to stdout
  • evalTimeout: duration number to override remote project's default evalTimeout

Examples:

read(haystackConn).haystackEval(3 + 4)
read(haystackConn).haystackEval(readAll(site))
read(haystackConn).haystackEval(readAll(kw).hisRead(yesterday))

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function