Liking cljdoc? Tell your friends :D

com.fulcrologic.statecharts.environment

Helper functions related to the environment that can be used in a lambda execution environment on env.

Helper functions related to the environment that can be used in a lambda execution environment on
`env`.
raw docstring

assign!clj/s

(assign! {:com.fulcrologic.statecharts/keys [data-model] :as env}
         &
         {:as path-value-pairs})

Side effect against the data model in env, with the given path-value pairs.

Side effect against the data model in `env`, with the given path-value pairs.
sourceraw docstring

context-element-idclj/s

(context-element-id env)

Returns the ID of the context (state of interest for the current operation) from an env, if set.

Returns the ID of the context (state of interest for the current operation) from an env, if set.
sourceraw docstring

delete!clj/s

(delete! {:com.fulcrologic.statecharts/keys [data-model] :as env} & ks)

Side effect against the data model in env, with the given keys/paths

Side effect against the data model in `env`, with the given keys/paths
sourceraw docstring

Inclj/s

[env state-id]

Alias for is-in-state?

[env state-id]

Alias for `is-in-state?`
sourceraw docstring

is-in-state?clj/s

(is-in-state? {:com.fulcrologic.statecharts/keys [vwmem] :as _env} state-id)

Returns true if the given state-id is active (in the configuration) of the state chart.

Returns true if the given `state-id` is active (in the configuration) of the state chart.
sourceraw docstring

raiseclj/s

(raise {:com.fulcrologic.statecharts/keys [vwmem]} event)

Place an event on the internal event queue for immediate processing. Only callable from within active runnable content

Place an event on the internal event queue for immediate processing. Only callable from within active runnable content
sourceraw docstring

session-idclj/s

(session-id {:com.fulcrologic.statecharts/keys [vwmem] :as _env})

Returns the session ID from an env.

Returns the session ID from an env.
sourceraw docstring

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

× close