Skip to content

Create a workflow

The creation wizard

To create a new workflow, select the plus button in the upper toolbar of the dashboard, then choose Workflow project.

In the New workflow dialog enter the name of the workflow and, optionally, a description, then select Create workflow. A wizard starts.

To cancel the wizard select Exit wizard at the top right of the window.

  1. In the Workflow pattern step of the wizard you can choose between two preset patterns (sequential or parallel) or choose to start from scratch with a custom workflow.

    The sequential preset allows creating a simple workflow with an optional pre-processor, a model and an optional post-processor.

    The parallel preset is similar, but allows for two or three models that are executed in parallel downstream of the pre-processor and before the post-processor. The flow is propagated to the model blocks using a Fork operator and the outputs of the parallel model blocks are merged with a Join operator.

    To cancel the wizard select Cancel.

    If you select Custom workflow, then select Create workflow: the workflow is created and you are brought to the editor, where you will find an empty canvas. Otherwise, after choosing a preset, select Next.

  2. If you selected a preset, you are brought to the Pre-processor step of the wizard. Here you can optionally select a pre-processing block to put at the beginning of the flow.

    To return to the previous step select Back.

    Select a processor from the list or select No pre-processor to omit the block, then select Next.

  3. In the Models step of the wizard you set the model—or the models, in case of parallel preset—of the workflow..

    If can choose between existing models or upload new models on the fly.

    If you have selected the parallel preset, to enable the setting of a third model select Add a third model to the fork.

    To return to the previous step select Back.

    When done select Next.

  4. In the Post-processor step of the wizard you can optionally choose a post-processing script to put at the end of the workflow.

    • To add a JavaScript Interpreter block with the default "passtrough" code, select Custom JavaScript.
    • To add a Python Interpreter block with the default "passtrough" code, select Custom Python.
    • To add a JavaScript Interpreter block with the code set to one of the built-in templates, select the name of the template under JavaScript templates.
    • To omit the post-processing block select No post-processor.

    To return to the previous step select Back.

    When done, select Create workflow and you are brought to the workflow editor where you will find the workflow you built based on your choices.

Import a workflow

To import a workflow that has been previously exported in the same or in another installation of NL Flow:

  1. Select the plus button in the upper toolbar of the dashboard, then Import Workflow.
  2. Locate the file with .wfpk extension to import.
  3. Select Upload to confirm.

Upload a model

To upload a model on the fly while in the Models step of the creation wizard:

  1. Select Upload. The Upload model dialog appears.

  2. Select the model type.

  3. Select Browse files and locate the model file.
  4. Enter the model name.
  5. Select Upload.