Support Operations
Prioritize a support incident against its SLA
Turn an incident report into a reproducible priority and response-clock packet. A supplied observation time makes the deadline calculation inspectable and repeatable.
Experimental native example · local preview · revision 1
WORKFLOW PREVIEW
See how it works
Use + and − to zoom, F to fit. Press Enter on a node to inspect it.
Private preview. These tested drafts are available for inspection. Adding them to a Vora workspace is still being tested.
What you need
- An approved response SLA in minutes for p1, p2 and p3.
- An incident ID, exact UTC opening and observation timestamps, availability impact and an explicitly assessed dataRisk flag.
Follow the workflow step by step
Supplied agency data
Receive the explicitly supplied manual input packet.
Prioritize a support incident against its SLA
Return incident priority, configured response target, elapsed minutes and overdue flag using an explicit observation time. Produce an internal triage packet; do not notify or promise resolution.
Setup and review
- Use impact normal, degraded or outage and an explicit boolean dataRisk.
- Supply the response targets agreed for this client or agency queue.
- Test the exact deadline and one minute after it. Inspect priority and overdue before assigning the incident.
Inspect every node
Expand a node to inspect its complete settings. Review the runtime and adoption evidence before installing it.
Supplied agency data · wfManualTrigger
{
"label": "Supplied agency data"
}Prioritize a support incident against its SLA · code
{
"label": "Prioritize a support incident against its SLA",
"code": "\nfunction obj(value, keys, required = keys) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) throw new Error('Expected object');\n if (Object.keys(value).some(key => !keys.includes(key))) throw new Error('Unknown input field');\n if (required.some(key => !Object.hasOwn(value, key))) throw new Error('Missing required input field');\n return value;\n}\nfunction text(value, name, max = 200, allowEmpty = false) {\n if (typeof value !== 'string' || value.length > max || (!allowEmpty && !value.trim())) throw new Error('Invalid ' + name);\n return value.trim();\n}\nfunction list(value, name, max = 500) {\n if (!Array.isArray(value) || value.length > max) throw new Error('Invalid ' + name);\n return value;\n}\nfunction int(value, name, min = 0, max = Number.MAX_SAFE_INTEGER) {\n if (!Number.isSafeInteger(value) || value < min || value > max) throw new Error('Invalid ' + name);\n return value;\n}\nfunction amount(value, name) {\n if (!Number.isFinite(value) || value < 0 || value > 1000000000) throw new Error('Invalid ' + name);\n return value;\n}\nfunction email(value) { return /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value); }\nfunction day(value) {\n if (typeof value !== 'string' || !/^\\d{4}-\\d{2}-\\d{2}$/.test(value)) throw new Error('Invalid calendar date');\n const ms = Date.parse(value + 'T00:00:00Z');\n if (!Number.isFinite(ms) || new Date(ms).toISOString().slice(0, 10) !== value) throw new Error('Invalid calendar date');\n return ms;\n}\nfunction instant(value) {\n if (typeof value !== 'string' || !/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z$/.test(value)) throw new Error('Invalid UTC timestamp');\n const ms = Date.parse(value);\n const normalized = value.includes('.') ? value : value.replace('Z', '.000Z');\n if (!Number.isFinite(ms) || new Date(ms).toISOString() !== normalized) throw new Error('Invalid UTC timestamp');\n return ms;\n}\nfunction uniqueIds(items) {\n const ids = items.map(item => text(item.id, 'item ID', 120));\n if (new Set(ids).size !== ids.length) throw new Error('Duplicate item ID');\n return ids;\n}\nfunction ratioBps(numerator, denominator) {\n const n = BigInt(numerator) * 10000n;\n const d = BigInt(denominator);\n const quotient = n / d;\n const floor = n < 0n && n % d !== 0n ? quotient - 1n : quotient;\n const result = Number(floor);\n if (!Number.isSafeInteger(result)) throw new Error('Unsafe calculated ratio');\n return result;\n}\n\n\nconst x = obj(context.input, ['ticketId','openedAt','asOf','impact','dataRisk','slaMinutes']);\nconst ticketId = text(x.ticketId, 'ticket ID', 120);\nconst opened = instant(x.openedAt), observed = instant(x.asOf);\nif (opened > observed) throw new Error('Opening timestamp is after observation');\nif (!['normal','degraded','outage'].includes(x.impact) || typeof x.dataRisk !== 'boolean') throw new Error('Invalid incident impact');\nconst slas = obj(x.slaMinutes, ['p1','p2','p3']);\nObject.values(slas).forEach(value => int(value, 'SLA minutes', 1, 100000));\nconst priority = x.dataRisk || x.impact === 'outage' ? 'p1' : x.impact === 'degraded' ? 'p2' : 'p3';\nconst elapsedMinutes = Math.floor((observed - opened) / 60000);\nconst targetMinutes = slas[priority];\nreturn {ticketId, priority, targetMinutes, elapsedMinutes, overdue:observed - opened > targetMinutes * 60000};\n",
"outputVar": "result",
"timeout": 1000,
"memoryLimit": 16
}Input and output contracts
Input
{
"type": "object",
"properties": {
"ticketId": {
"type": "string",
"maxLength": 120
},
"openedAt": {
"type": "string",
"maxLength": 32
},
"asOf": {
"type": "string",
"maxLength": 32
},
"impact": {
"type": "string",
"maxLength": 20
},
"dataRisk": {
"type": "boolean"
},
"slaMinutes": {
"type": "object",
"properties": {
"p1": {
"type": "integer",
"minimum": 1,
"maximum": 100000
},
"p2": {
"type": "integer",
"minimum": 1,
"maximum": 100000
},
"p3": {
"type": "integer",
"minimum": 1,
"maximum": 100000
}
},
"required": [
"p1",
"p2",
"p3"
],
"additionalProperties": false
}
},
"required": [
"ticketId",
"openedAt",
"asOf",
"impact",
"dataRisk",
"slaMinutes"
],
"additionalProperties": false
}Output
{
"type": "object",
"properties": {
"ticketId": {
"type": "string",
"maxLength": 120
},
"priority": {
"type": "string",
"maxLength": 2
},
"targetMinutes": {
"type": "integer",
"minimum": 1,
"maximum": 100000
},
"elapsedMinutes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"overdue": {
"type": "boolean"
}
},
"required": [
"ticketId",
"priority",
"targetMinutes",
"elapsedMinutes",
"overdue"
],
"additionalProperties": false
}Choose an output for this job
This business workflow also has 15 delivery formats. Compare their inputs, output examples and limits.
Example input and result
These examples use synthetic data.
Input
{
"ticketId": "ticket-01",
"openedAt": "2026-10-07T10:00:00Z",
"asOf": "2026-10-07T11:01:00Z",
"impact": "outage",
"dataRisk": false,
"slaMinutes": {
"p1": 60,
"p2": 240,
"p3": 1440
}
}Expected result
{
"ticketId": "ticket-01",
"priority": "p1",
"targetMinutes": 60,
"elapsedMinutes": 61,
"overdue": true
}Success means: Return incident priority, configured response target, elapsed minutes and overdue flag using an explicit observation time. Produce an internal triage packet; do not notify or promise resolution.
When something goes wrong
- An opening time after the observation or an unknown impact stops the packet. Correct the source record and repeat. A priority or overdue flag must feed an operator-owned escalation process; it does not itself notify anyone.
Limits and costs
- Elapsed minutes are rounded down for display; overdue compares the full timestamp difference, so even one second beyond the target is overdue. Priority follows supplied facts and does not diagnose the incident or promise resolution.
- No paid model calls or metered third-party operations are declared in this pure graph. Vora plan availability, compute and quotas still apply; pricing has not been verified by this batch.