Weitere ähnliche Inhalte
Ähnlich wie Kynetx AppBuilder: Build Reactive Web Apps with Rules
Ähnlich wie Kynetx AppBuilder: Build Reactive Web Apps with Rules (20)
Kürzlich hochgeladen (20)
Kynetx AppBuilder: Build Reactive Web Apps with Rules
- 2. online users
Your Web Application
3rd
Web Search
APIs party
Sites Engines
apps
- 3. online users
reach
Your Web Application
3rd
Web Search
APIs party
Sites Engines
apps
- 12. Rules are perfect for
reacting to Web events
!"#$%!"!#$
&'%%%%&#'($(&#
("#$%)%$(&#
- 18. 1
2
3
How Kynetx works
- 19. 4
1
2
3
How Kynetx works
- 20. ruleset library {
global {
datasource library_search
<- "http://www.example.com/bookdata/?wt=json" cachable;
}
rule book_notfication is active {
select when pageview "www.amazon.com/gp/product/(d+)/" setting(isbn)
pre {
! book_data = datasource:library_search("q="+isbn);
! url = book_data.pick("$..docs[0].url");
! title = book_data.pick("$..docs[0].title");
! msg = <<
This book's available the library. <a id="MLN_link" href="#{url}">#{title}</a>
>>;
}
if(book_data.pick("$..numFound") > 0) then {
notify("Local Library", msg)
}
callbacks {
success { click id="MLN_link" }
}}}
KRL for Library Lookup