Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this section we will dive into the technical details of creating or modifying workflows, using pre-made or custom blocks.

...

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, etc.

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:

...

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).

Building with blocks

Development on Canvas can involve no coding, or a lot, depending on your need for custom logic.

Workflows can be built by using just pre-made blocks, modifying or modified existing blocks, or creating new blocks.As such, development on Canvas can involve little or no coding, depending on your needs for custom logiccompletely new blocks created by your team (or ours).

  • No coding: Building with ready-made blocks

  • Little coding: Modifying existing blocks

  • More coding: Creating new blocks

...

You can of course mix and match blocks and development methods to your hearts desire.

Nevertheless, we will give a brief description of how these development styles methods would work in practice:

Building with ready-made blocks

Each supported application on Canvas comes with a library of ready-made blocks. These blocks can easily be added and reused in any project.

...

Building with ready-made blocks is simply a matter of dragging the blocks onto the canvas, and configuring them, as shown in the getting started section. Creating a workflow from scratch

The blocks will often have configurable parameters, shown in the “Working Area” tab, which make them easy to configure without having to modify code.(If you need additional blocks the block code directly:

...

If your project requires additional ready-made blocks, you can either create them yourself, as shown in this documentation, or contact ConnectMyApps for assistance.)

Modifying blocks

If you need to alter or extend block functionality, you can do this directly in the workflow editor under the Debug tab.

Blocks are written in modern Javascript, and can be inspected, modified, and debugged directly in the browser

...

under the Debug tab.

...

Blocks that have been modified will be marked as “Customized”:

...

Note

When a block is “customized” it is no longer connected to the block template:

If you make a change to a block template, then all instances of that block across all workflows will be updated to match the template, but not if a block is customized. Customized blocks are essentially “forked”, and will not be updated automatically via the template.

See this article for more information about how you can modify and test blocks directly in the browser:

Running blocks in the debugger

Debug and Response tabs

...

Creating new blocks

Creating new blocks is quick and easy, but it can be a good idea to put some thought into what the block should do.

In Canvas, blocks are meant to be modular and single purpose. Although it is technically possible to run the whole integration in as one monolithic mega-block, we instead recommend creating new, separate blocks as needed in keeping with this the Canvas philosophy. See also the Best practices section for more info.

If you want to add a new block to your workflow

...