# 批处理节点

通过设定批量运行次数和逻辑,运行批处理体内的任务

# 数据结构定义

# 范例

{
  id: {random(6)},
  type: 'batch',
  data: {
    title: `批处理`,
    inputsValues: {
      concurrentSize: {      // 并行运行数量
        type: 'constant',
        content: 10,
      },
      batchSize: {           // 批处理次数上限
        type: 'constant',
        content: 100,
      },
      arg1: {                // 批处理数组
        type: 'ref',
        content: [],
      },
    },
    inputs: {
      type: 'object',
      required: ['concurrentSize', 'batchSize', 'loopFor'],
      properties: {
        concurrentSize: {
          type: 'number',
        },
        batchSize: {
          type: 'number',
        },
        arg1: {
          type: 'ref',
        },
      },
    },
    outputs: {
      type: 'object',
      properties: {},
    },
  },
  blocks: [
    {
      id: {random(6)},
      type: 'block-start',
      meta: {
        position: {
          x: -80,
          y: 120,
        },
      },
      data: {},
    },
    {
      id: {random(6)},
      type: 'block-end',
      meta: {
        position: {
          x: 80,
          y: 120,
        },
      },
      data: {},
    },
  ],
}