Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Link to send_directive

...

Compound actions work the same as a rule. Suppose, for example, that in addition to putting up a notification, you wished to use send_directive:

Code Block
languagejavascript
themeConfluence
send_warning = defaction(msg) {

  every {
    notify("Warning!", msg);

    send_directive("a_warning_was_given") with
      message = msg
  }
}

...