...
We can use picoQuery()
provided by Wrangler, as shown in the following rule fragment:
Code Block |
---|
rule query_rule { pre { eci = eci_to_other_pico; args = {"arg1": val1, "arg2": val2}; answer = wrangler:picoQuery(eci,"my.ruleset.id","myFunction",{}.put(args)); } if answer{"error"}.isnull() then noop(); fired { // process using answer } } |
More information can be found in the Wrangler documentation for picoQuery()
and in Accessing Functions Shared by Another Pico.
...