Versions Compared

Key

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

...

KRL is a rule language which is evaluated in a pico engine.  The pico engine accepts events for pico's and executes corresponding rules to change the state of a pico. 

There are many things to know about KRL, in general, KRL is:

  • event-based rule language. 
  • executed in a pico engine as a cloud-based model; there is no way to execute them from the command line.
  • execute in a system where identity is pervasive; all events are raised on behalf of a specific entity.
  • declarative of entity-specific persistent storage; there is no need for external databases.

The result of these properties is a programming model that more closely resembles programming cloud-based persistent objects than anything else. We call these persistent computational objects "picos"

Rule Evaluation

The pico engine allows unique channel identifiers to be created for each pico.  Channels create http event URL's.  The pico engine accepts http events on event URL's and evaluates any installed rules which select on the accepted event. 

For a rule to be executed in a pico on an event, a ruleset must be

  • registered with the pico engine with a unique ruleset ID or RID
  • installed in the pico with the corresponding event channel 

Ruleset Structure

This is a more in depth ruleset example with in line comments.

...