In this section we will dive into the technical details of creating or modifying workflows, using pre-made or custom blocks.
...
As you know, workflows are made up of blocks. These blocks will run in sequence, and will generally in most cases the blocks execute in a linear fashion from top to bottom - with data returned from the first block feeding into the second block, which in turn feeds into the third block, etc.
...
Data from a previous block is referred to as Datasourcein the block script.
Each block will have settings to allow you to select the Datasource to feed into the block.
...
This means that it is possible to
Info |
---|
Each block will have settings called Datasource, which lets you specify which other block will provide the input/source data. In this way you can configure the flow of data, where output from block A will feed into block B as input. |
The Datasource setting will often be marked with a red star * as mandatory, since you have to specify which block will provide the input data:
...
Although most workflows are set up to run from top to bottom, it is technically possible to select any block as Datasource. Canvas uses the Datasource settings to builds a dependency graph, and executes the blocks in the correct order depending on how the blocks are configured to feed into each other.
This means that you could have cases where the actual order of execution is not top to bottom (for example if the third block has the first block set as Datasource).
Canvas builds a dependency graph and executes the blocks in the correct order, depending on how the blocks feed into each other, as specified in the Datasource settings.
Building with blocks
The process of developing workflows on Canvas primarily consists of:
Building with blocks
Workflows can be built by using pre-made blocks, modifying existing blocks, or creating new blocks.
As such, development on Canvas can involve little or no coding, depending on your needs for custom logic.
No coding: Building with ready-made blocks
Little coding: Modifying existing blocks
More coding: Creating new blocks
Here is a brief description of how these development styles would work in practice:
Building with ready-made blocks
...