Helper functions related to the environment used by models.
Helper functions related to the environment used by models.
(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.
(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.
(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
(send! {:com.fulcrologic.statecharts/keys [event-queue data-model] :as env}
{:keys [id idlocation delay delayexpr namelist event eventexpr target
targetexpr type typeexpr]
:as send-element})
Send an external event (from within the state machine) using env
Send an external event (from within the state machine) using `env`
(send-error-event! env event-name error extra-data)
Put an error (typically an exception) on the pending internal queue. Only usable from within the implementation of a model (a function that receives and env).
Put an error (typically an exception) on the pending internal queue. Only usable from within the implementation of a model (a function that receives and env).
(send-internal-event! env event)
Put an event on the pending queue. Only usable from within the implementation of a model (a function that receives and env).
Put an event on the pending queue. Only usable from within the implementation of a model (a function that receives and env).
(session-id {:com.fulcrologic.statecharts/keys [vwmem] :as env})
Returns the session ID from an env.
Returns the session ID from an env.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close