Manage Steps in a Flow Manually

About this task

To manually edit the steps inside a flow, simply edit the flow definition file.

Procedure

  1. In a text editor, open the flow definition file.
       {
        "name": "your-flow-name",
        "description": "",
        "batchSize": 100,
        "threadCount": 4,
        "options": {
          "sourceQuery": null
        },
        "steps": {}
      }
    
  2. Edit the flow definition file.
    • To add another step, create and add a new step.
    • To edit a step, search for the step subnode under the steps node, and modify it as needed.
    • To remove a step, search for the step subnode under the steps node, and delete the entire JSON node for that step.
    • To rearrange the sequence of the steps, replace the key of each step with the appropriate order of that step in the sequence. The key is an integer treated as a string (i.e., within quotation marks). Example: "1".
      Note: The steps can be listed in any order, as long as the keys are unique within the steps node of the flow. Duplicate keys can produced unexpected results. The key number must be greater than 0.
  3. Save your file.

What to do next

Run your flow locally to test it. When ready, deploy your flows to your MarkLogic Server.