Liking cljdoc? Tell your friends :D

mermaid-processor.behavior


auditclj

(audit context chart action result)

Appends an audit entry to the context detailing the action taken and its result for the current node.

ARGUMENTS:

  • context: A map containing the runtime state of the processing.
  • chart: A map representing the structure of the mermaid chart.
  • action: The action that was executed.
  • result: The result of the executed action.

RETURN: An updated context with a new audit entry added to its audit trail.

Appends an audit entry to the context detailing the action taken and its result for the current node.

ARGUMENTS:
- context: A map containing the runtime state of the processing.
- chart: A map representing the structure of the mermaid chart.
- action: The action that was executed.
- result: The result of the executed action.

RETURN:
An updated context with a new audit entry added to its audit trail.
sourceraw docstring

buildclj

(build actions)

Constructs a behavior map encapsulating the provided actions and utility functions.

ARGUMENTS:

  • actions: A map of action functions to be included in the behavior.

RETURN: A behavior map that includes the provided actions and utility functions for managing the current node ID and auditing actions.

Constructs a behavior map encapsulating the provided actions and utility functions.

ARGUMENTS:
- actions: A map of action functions to be included in the behavior.

RETURN:
A behavior map that includes the provided actions and utility functions for managing the current node ID and auditing actions.
sourceraw docstring

get-current-node-idclj

(get-current-node-id context chart)

Retrieves the current node ID from the provided context.

ARGUMENTS:

  • context: A map containing the runtime state of the processing.
  • chart: A map representing the structure of the mermaid chart.

RETURN: The current node ID from the context or the starting node ID from the chart if not present in the context.

Retrieves the current node ID from the provided context.

ARGUMENTS:
- context: A map containing the runtime state of the processing.
- chart: A map representing the structure of the mermaid chart.

RETURN:
The current node ID from the context or the starting node ID from the chart if not present in the context.
sourceraw docstring

set-current-node-idclj

(set-current-node-id context chart node-id)

Updates the context with the given node ID and appends it to the path taken.

ARGUMENTS:

  • context: A map containing the runtime state of the processing.
  • chart: A map representing the structure of the mermaid chart.
  • node-id: The ID of the node to set as the current node.

RETURN: An updated context with the new current node ID and an appended path taken.

Updates the context with the given node ID and appends it to the path taken.

ARGUMENTS:
- context: A map containing the runtime state of the processing.
- chart: A map representing the structure of the mermaid chart.
- node-id: The ID of the node to set as the current node.

RETURN:
An updated context with the new current node ID and an appended path taken.
sourceraw docstring

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

× close