Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
    use module io.picolabs.wrangler alias Wranglerwrangler

We can use the picoQuery function provided by Wrangler, as shown in the following rule fragment:

Code Block
  pre {
    eci = eci_to_other_pico;
    args = {"arg1": val1, "arg2": val2};
    answer = Wranglerwrangler:picoQuery(eci,"my.ruleset.id","myFunction",args);
  }
  if answer{"error"}.isnull() then noop();
  fired {
    // process using answer
  }

...