Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add event domains

...

any n (E1,[el],Em). This matches if any n of eventexes E1 through Em match. In this eventex, n must be less than or equal to m. When n is not less than m, any behaves in the same way as a variable arity and operator, checking for matches of all the subexpressions. The following example shows how any can be used:

Code Block
languagejavascript
themeConfluence
languagejavascript
select when any 2 (web pageview url re#customer_support.htm#,
                   phone inbound_call to re#801-649-4069#,
                   email received subject re#\[help\]#)

This eventex would match if any two of the three enclosed simple eventexes matched. The preceding eventex has the same semantics as this compound eventex:

Code Block
languagejavascript
themeConfluencelanguagejavascript
select when (web pageview url re#customer_support.htm# and
             phone inbound_call to re#801-649-4069#)
         or
            (phone inbound_call to re#801-649-4069# and
             email received subject re#\[help\]#)
         or
            (web pageview url re#customer_support.htm# and
             email received subject re#\[help\]#)

...

count n (E). This matches after n of eventex E have matched. When the count eventex matches, the counter is reset and the expression begins looking for n more of eventex E. Consider the following eventex:

Code Block
languagejavascript
themeConfluencelanguagejavascript
select when count 3 (E)

 The arrows on the event stream in the following diagram show where this eventex would match.

...

repeat n (E). This matches after n of eventex E have matched. When the repeat eventex matches, the counter is not reset, and the eventex matches using a sliding window on the event stream, always matching the last n of the eventex given in the subexpression. Consider the following eventex:

Code Block
languagejavascript
themeConfluence
languagejavascript
select when repeat 3 (E)

The arrows on the event stream in the following diagram show where this eventex would match.

...

You can use relative time bounds with group operators, as shown in the following example:

Code Block
language
languagejavascript
themeConfluencejavascript
select when any 2 (web pageview url re#customer_support.html#,
                   phone inbound_call to re#801-649-4069#,
                   email received subject re#\[help\]#)
             within 3 minutes

...