Liking cljdoc? Tell your friends :D

com.fulcrologic.statecharts.events

See https://www.w3.org/TR/scxml/#events.

Note that there are built-in errors and events https://www.w3.org/TR/scxml/#errorsAndEvents.

See https://www.w3.org/TR/scxml/#events.

Note that there are built-in errors and events https://www.w3.org/TR/scxml/#errorsAndEvents.
raw docstring

cancel-eventclj/s

An event anme that will cause the state machine to exit.

An event anme that will cause the state machine to exit.
sourceraw docstring

event-nameclj/s

(event-name event-or-name)
source

name-match?clj/s

(name-match? candidates event)

Match event names.

event is either the full name of an event, which can have dot-separated segments, or an event map containing the event name at ::sc/event-name. candidates is either a single keyword, or a vector of them. These are all treated as event prefixes, and are treated as-if they have .* on the end.

If the event-name is a keyword with a namespace, then a candidate ONLY matches if it has that EXACT namespace. This is an extension of the event naming defined by SCXML.

Returns true if any of the candidates is a prefix of event-name (on a dot-separated segment-by-segment basis)

Match event names.

`event` is either the full name of an event, which can have dot-separated segments,
or an event map containing the event name at `::sc/event-name`.
`candidates` is either a single keyword, or a vector of them. These are all treated
 as event prefixes, and are treated as-if they have `.*` on the end.

 If the event-name is a keyword with a namespace, then a candidate ONLY matches
 if it has that EXACT namespace. This is an extension of the event naming
 defined by SCXML.

 Returns `true` if any of the `candidates` is a prefix of `event-name` (on
 a dot-separated segment-by-segment basis)
sourceraw docstring

new-eventclj/s

(new-event event-name-or-map)

Generate a new event containing data. It is recommended that data be easily serializable (plain EDN without code) if you wish to use it in a distributed or durable environment.

If using a map:

name - the event name data - Extra data to send with the event type - :internal, :external, or :platform. Defaults to :external

https://www.w3.org/TR/scxml/#events

Generate a new event containing `data`. It is recommended that `data` be
easily serializable (plain EDN without code) if you wish to use it
in a distributed or durable environment.

If using a map:

`name` - the event name
`data` - Extra data to send with the event
`type` - :internal, :external, or :platform. Defaults to :external

https://www.w3.org/TR/scxml/#events
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close