{ "schemaVersion": 1, "flowKey": "FORM_DEMO", "version": 1, "initialState": "CAPTURA", "dataSchema": { "type": "object", "properties": { "referencia": { "type": "string" } }, "additionalProperties": false }, "initialDataSchema": { "type": "object", "additionalProperties": false }, "states": [ { "key": "CAPTURA", "terminal": false }, { "key": "COMPLETA", "terminal": true } ], "events": [ { "key": "CAPTURAR", "inputSchema": { "type": "object", "required": [ "referencia" ], "properties": { "referencia": { "type": "string", "minLength": 1 } }, "additionalProperties": false } } ], "transitions": [ { "id": "capturar", "from": "CAPTURA", "event": "CAPTURAR", "allowedRoles": [ "ANALISTA" ], "actions": [], "to": "COMPLETA", "outcome": "CAPTURADO", "updates": [ { "target": "/referencia", "value": { "path": "/event/data/referencia" } } ] } ], "decisions": [], "tasks": [ { "state": "CAPTURA", "event": "CAPTURAR", "inputSchema": { "type": "object", "required": [ "referencia" ], "properties": { "referencia": { "type": "string", "minLength": 1 } }, "additionalProperties": false }, "ui": { "component": "FORM", "title": "Capturar referencia", "fieldOrder": [ "referencia" ] } } ] }