In this exercise you will learn how to develop multiple ruleset applications.
sms_blog_data
twilio:inbound_sms events
. The attribute to this event will be Body
.When the inbound_sms
rule fires, it should store the Body
attribute in a map entity variable, with the current time as the key and Body
as the value.
sms_articles
retrieve_data
that listens for explicit:need_blog_data
need_blog_data
rule fires, raise an explicit event named blog_data_ready
with the persistent application variable sms_articles
as a parameter for the ruleset named sms_blog
.sms_blog
init_blog
the listens for a pageview
event.pageview
event fires an html DIV container (with an id of blogbody
) will be appended to the DOM body
with an unordered list.container_ready
.need_blog_data
for the sms_blog_data
ruleset.show_articles
that listens for both explicit:container_ready
and explicit:blog_data_ready
.show_articles
rule fires, iterate over each of the hash values in the map attribute sms_articles
, recall that the hash key is the postTime
and the value is the postBody
.smsBlog
.twilio:inbound_sms
to your pico (where the rulesets from the two previous steps are installed). Use that ESL for the sms request URL in Twilio. smsBlog
as the app for SMS.