{
  "key": "SCRIPT_MAP",
  "nodeType": "PROCESSOR",
  "operatorType": "SCRIPT_MAP",
  "metadata": {
    "language": "JS",
    "source": null,
    "schemaId": null
  },
  "label": "Script Map",
  "assumptions": [
    {
      "path": "language",
      "value": "JS",
      "reason": "JS is the default scripting language; PYTHON is also supported.",
      "confidence": 0.85
    }
  ],
  "generatable_fields": {
    "source": "Generate this from the user's business logic description. See references/meter-operator-codegen.md for the SCRIPT_MAP signature and examples. Ask the user: what transformation should the script perform, and what are the input/output field names?"
  },
  "blockers": [
    {
      "path": "language",
      "message": "SCRIPT_MAP language: 'JS' or 'PYTHON'? Default: JS."
    },
    {
      "path": "schemaId",
      "message": "SCRIPT_MAP schemaId is required. Which output schema should the mapped events conform to? (get the ID from the Schema Registry)"
    }
  ]
}
