20. Implement Web Business Processes If the user loads financial news, offers him a three months subscription to Financial Times { "id":"fast101", "appliesTo":['http://www.example.com'"], "eventExpression":{"eventType":"DOMNodeInserted", "eventTarget":"$X"}, "conditions": [ "$Y:Div(id == 'currentFeedContent')", "$X:Div(?Y:relatedNode, $Z:childNodes)", "$C:Div(class='itemcontent')", "org.jsonrules.builtin.pred.member($C, $Z)", "$C.firstChild.nodeValue=='businessNews'" ], "actions": ["showAdd({"s":"ft","d":"3","p":"30"})"] }