Module holochain::core::workflow

source ·
Expand description

Workflows are the core building block of Holochain functionality.

§Properties

Workflows are transactional, so that if any workflow fails to run to completion, nothing will happen.

In order to achieve this, workflow functions are free of any side-effects which modify cryptographic state: they will not modify the source chain nor send network messages which could cause other agents to update their own source chain.

Workflows are never nested. A workflow cannot call another workflow. However, a workflow can specify that any number of other workflows should be triggered after this one completes.

Side effects and triggering of other workflows is specified declaratively rather than imperatively. Each workflow returns a WorkflowEffects value representing the side effects that should be run. The finish function processes this value and performs the necessary actions, including committing changes to the associated Workspace and triggering other workflows.

Re-exports§

Modules§

Enums§

Type Aliases§