← Files Zuora Coding AgentARCHIVED FILE
references/meter-operators/SCRIPT_CORRELATOR.json
2.13 KB · Oct 4, 2026 · 12:30 UTC
{
"key": "SCRIPT_CORRELATOR",
"nodeType": "PROCESSOR",
"operatorType": "SCRIPT_CORRELATOR",
"metadata": {
"startEventField": null,
"startEventValue": null,
"stopEventField": null,
"stopEventValue": null,
"timeoutDuration": "1 day",
"groupFields": [],
"language": "javascript",
"source": null,
"schemaId": null
},
"label": "Script Correlator",
"hints": {
"language": "javascript | PYTHON"
},
"assumptions": [
{
"path": "timeoutDuration",
"value": "1 day",
"reason": "Correlation sessions expire after 1 day if no stop event is received.",
"confidence": 0.75
},
{
"path": "language",
"value": "javascript",
"reason": "JavaScript is the default scripting language; Python is also supported.",
"confidence": 0.85
}
],
"blockers": [
{
"path": "language",
"message": "SCRIPT_CORRELATOR language is required. Which scripting language? ('javascript' or 'python')"
},
{
"path": "source",
"message": "SCRIPT_CORRELATOR source code is required. Provide the correlation script (handles start/stop events and accumulates session state)."
},
{
"path": "startEventField",
"message": "SCRIPT_CORRELATOR startEventField is required. Which field identifies the session start event?"
},
{
"path": "startEventValue",
"message": "SCRIPT_CORRELATOR startEventValue is required. What value marks a session start?"
},
{
"path": "stopEventField",
"message": "SCRIPT_CORRELATOR stopEventField is required. Which field identifies the session stop event?"
},
{
"path": "stopEventValue",
"message": "SCRIPT_CORRELATOR stopEventValue is required. What value marks a session end?"
},
{
"path": "groupFields",
"message": "SCRIPT_CORRELATOR groupFields is required. Which fields define the session correlation key? (e.g. [\"sessionId\"])"
},
{
"path": "schemaId",
"message": "SCRIPT_CORRELATOR schemaId is required. Which output schema should the correlated events conform to? (get the ID from the Schema Registry)"
}
]
}SHA-256: d403ff2453c8286cc19ac6d05d7a45cabc2fe31170b9be5c84fc86069036e756