{
  "formId": "eipflow",
  "entity": "eipflow",
  "title": "EIP Flow Definition",
  "idField": "FlowDefinitionId",
  "pages": [
    {
      "pageId": "main",
      "pageName": "Flow",
      "sections": [
        {
          "sectionId": "general",
          "sectionName": "Flow Definition",
          "layout": { "columns": 12 },
          "fields": [
            {
              "fieldId": "FlowDefinitionId",
              "label": "Id",
              "type": "number",
              "ReadOnly": true,
              "DefaultValue": 0,
              "PostData": true,
              "layout": { "colSpan": 3 }
            },
            {
              "fieldId": "FlowCode",
              "label": "Flow Code",
              "type": "text",
              "mandatory": true,
              "pattern": "^[A-Za-z0-9_]{1,50}$",
              "DefaultValue": "",
              "layout": { "colSpan": 5 }
            },
            {
              "fieldId": "FlowVersion",
              "label": "Version No.",
              "type": "number",
              "DefaultValue": 1,
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "FlowStatus",
              "label": "Status",
              "type": "select",
              "mandatory": true,
              "DefaultValue": 0,
              "lookup": {
                "valueField": "value",
                "displayField": "label",
                "options": [
                  { "value": 0, "label": "Draft" },
                  { "value": 1, "label": "Review" },
                  { "value": 2, "label": "Published" },
                  { "value": 3, "label": "Deprecated" }
                ]
              },
              "layout": { "colSpan": 4 }
            },
            {
              "fieldId": "JsonDefinition",
              "label": "Flow Steps (JSON)",
              "type": "textarea",
              "mandatory": true,
              "DefaultValue": "{}",
              "layout": { "colSpan": 12 }
            }
          ]
        }
      ]
    }
  ],
  "api": {
    "save": "Framework.EIPFlow.Save",
    "get": "Framework.EIPFlow.Get",
    "delete": "Framework.EIPFlow.Delete"
  }
}
