Liking cljdoc? Tell your friends :D

com.fulcrologic.statecharts.environment

Helper functions related to the environment used by models.

Helper functions related to the environment used by models.
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

new-envclj/s

(new-env machine DM Q Ex)
(new-env machine DM Q Ex addl)
source

send!clj/s

(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`
sourceraw docstring

send-error-event!clj/s

(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).
sourceraw docstring

send-internal-event!clj/s

(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).
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