Skip to content

DEV job design

simonedegiacomi edited this page May 23, 2019 · 1 revision

The job design is a parameters of the do block. The value of this parameter is an array of DoDesignBlocks. Each DoDesignBlock has some parameters, which are defined exactly like the parameters of blocks (graph blocks).

Example of the definition of a do block, which has one of the parameters of type doDesign:

{
  "name": "do",
  "displayName": "Do",
  "ports": [ ... ],
  "parameterDefinitions": [
    ...other parameters...,
    {
      "name": "jobDesign",
      "displayName": "Job design",
      "description": "Design of the job that will be published on the platforms",
      "default": {
        "blocks": []
      },
      "required": true,
      "type": "doDesign",
      "designBlockTypeDefinitions": [
        {
          "name": "input_static_text",
          "displayName": "Input static text",
          "parameterDefinitions": [
            {
              "name": "text",
              "displayName": "Text",
              "description": "Simple static text",
              "default": "",
              "type": "html",
              "required": true
            }
          ]
        },
        ...other DoDesignBlocks
      ]
    }
  ]
}