Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Spacing

...

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
languagejavascript
themeConfluence
rule show_tweets {
  select when explicit populate
     foreach tweet_list setting (tweet)
       pre {
         ...
       }
       append(...)
       fired {
         raise explicit event "tweets_shown" on final
       } 
} 

...