(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.
(action-producing-data process-definition data)
Returns the action that produce the given data.
Returns the action that produce the given data.
(actions-allowed-by-role process-definition role)
Returns all actions that a role performs.
Returns all actions that a role performs.
(actions-performed process-definition case)
Returns all actions that were performed on a case
Returns all actions that were performed on a case
(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.
(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.
(all-actions process-definition)
Returns all actions in a case-model.
Returns all actions in a case-model.
(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
(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
(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.
(data-produced-by-action process-definition action)
Returns all datas that a given action produces.
Returns all datas that a given action produces.
(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
(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.
(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
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close