...
Rules often raise explicit events in the postlude to signal other rules that they are finished and to indicate their exit state. Usually, a rule only want wants to raise such an even once, even if the rule has a foreach
foreachÂ
statement. For example:
Code Block | ||||
---|---|---|---|---|
| ||||
rule show_tweets { select when explicit populate foreach tweet_list setting (tweet) pre { ... } append(...) fired { raise explicit event "tweets_shown" on final } } |
...