...
Code Block | ||
---|---|---|
| ||
ruleset bofm.consumer { rule initialize { select when wrangler ruleset_added where rids >< meta:rid or pico ruleset_added where rid == meta:rid fired { ent:refs := {}; ent:txts := {}; } } rule bofm_verse { select when bofm verse foreach event:attrs() setting(txt,ref) fired { ent:refs{time:now()} := ref; ent:txts{ref} := txt; } } } |
This starting ruleset, bofm.consumer
, is avaiable in the GitHub repository.
...
One possible solution to this exercise is in the repository. Notice that this solution makes use of a module whose RID is bofm.data
which contains some data and functions (but no rules). It would need to be registered with the engine before it could be used (but does not need to be installed in any pico).
...