Liking cljdoc? Tell your friends :D

dativity.core


action-allowed?clj/s

(action-allowed? process-definition case action)

Returns true if the given action has all data dependencies satisfied, otherwise false.

Returns true if the given action has all data dependencies satisfied, otherwise false.
sourceraw docstring

action-producing-dataclj/s

(action-producing-data process-definition data)

Returns the action that produce the given data.

Returns the action that produce the given data.
sourceraw docstring

actions-allowed-by-roleclj/s

(actions-allowed-by-role process-definition role)

Returns all actions that a role performs.

Returns all actions that a role performs.
sourceraw docstring

actions-performedclj/s

(actions-performed process-definition case)

Returns all actions that were performed on a case

Returns all actions that were performed on a case
sourceraw docstring

actions-that-require-dataclj/s

(actions-that-require-data process-definition data)

Returns all actions that has a dependency to a given data.

Returns all actions that has a dependency to a given data.
sourceraw docstring

add-dataclj/s

(add-data case key value)

Adds data to a case and commits it. Same api as clojure.core/assoc.

Adds data to a case and commits it. Same api as clojure.core/assoc.
sourceraw docstring

all-actionsclj/s

(all-actions process-definition)

Returns all actions in a case-model.

Returns all actions in a case-model.
sourceraw docstring

case-has-data?clj/s

(case-has-data? case data-key)

Returns truthy if the given data node exists regardless if it is committed or not. Treats values that are empty seqables as not having data

Returns truthy if the given data node exists regardless if it is committed or not.
Treats values that are empty seqables as not having data
sourceraw docstring

case-has-uncommitted-data?clj/s

(case-has-uncommitted-data? case data-key)

Returns true if the given data node exists on the case and is uncommitted

Returns true if the given data node exists on the case and is uncommitted
sourceraw docstring

data-prereqs-for-actionclj/s

(data-prereqs-for-action process-definition case action)

Returns data nodes that are required by action nodes. Conditional requirements are included if and only if the conditions are true.

Returns data nodes that are required by action nodes. Conditional requirements are included
if and only if the conditions are true.
sourceraw docstring

data-produced-by-actionclj/s

(data-produced-by-action process-definition action)

Returns all datas that a given action produces.

Returns all datas that a given action produces.
sourceraw docstring

has-committed-data?clj/s

(has-committed-data? case data-key)

Returns true if the given data node exists and is committed

Returns true if the given data node exists and is committed
sourceraw docstring

invalidate-actionclj/s

(invalidate-action process-definition case action)

Uncommits the data produced by the specified action, and then recursively performs the same procedure on all actions that require the data produced by the specified action. The use case of this function itself is not clear, invalidate-data should be used instead.

Uncommits the data produced by the specified action, and then recursively performs
the same procedure on all actions that require the data produced by the specified action.
The use case of this function itself is not clear, invalidate-data should be used instead.
sourceraw docstring

invalidate-dataclj/s

(invalidate-data process-definition case data)

Uncommits a given data node, and recursively uncommits all data that was produced by actions that require the given data node

Uncommits a given data node, and recursively uncommits all data that was produced
by actions that require the given data node
sourceraw docstring

next-actionsclj/s

(next-actions process-definition case)
(next-actions process-definition case role)

Returns a set of actions that are allowed to perform and are also not yet performed. If a role is provided then only actions that are performed by that role are returned

Returns a set of actions that are allowed to perform and are also not yet performed.
If a role is provided then only actions that are performed by that role are returned
sourceraw docstring

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

× close