KRL twitter search and application / entity variables available for all rules? (Global)

I want to create a Kynetx application that makes a request for a data source once and is accessible to all my rules in my ruleset / application. It would be nice to do the same for application and entity variables. I am not sure how to do this and you need help. Am I writing a rule that executes queries, and then allocates it to other rules in some special way?

+3
source share
1 answer

You can execute queries datasource(and dataset) in the block of globalyour application, and these variables will be available for widespread use.

global {
  datasource mydatasource <- "http://example.com/path/to/datasource";
  args = {"myvar":"myvalue"};
  results = datasource:mydatasource(args);
}

, , . , .

+3

Source: https://habr.com/ru/post/1779491/


All Articles