Workflow details

Inspect the saved definition and registry metadata.

‹ Workflows

ferrisflow.content-types · content-type-crud

No description provided.

ActiveEdit workflow

Registry record

Workflow ID
#12
Version
v1
Created
2026-11-17
Last updated
2026-11-17
Status
Active

OWS definition

Normalized document stored by the REST API

JSON
{
  "do": [
    {
      "definition": {
        "set": {
          "definition": "${ .definition // . }",
          "plugin": "${ .plugin }"
        }
      }
    },
    {
      "inputSchema": {
        "set": {
          "definition": "${ .definition // . }",
          "inputSchema": "${ {type:\"object\",required:(.definition.schema.fields | map(select(.required == true) | .name)),properties:((.definition.schema.fields | map({(.name): ({title:.label,multiline:(.type == \"richtext\"),type:(if .type == \"integer\" then \"integer\" else if .type == \"number\" then \"number\" else if .type == \"boolean\" then \"boolean\" else if .type == \"json\" then \"object\" else \"string\" end end end end)} + (if .minimum != null then {minimum:.minimum} else {} end) + (if .required == true and (.type == \"text\" or .type == \"richtext\") then {minLength:1} else {} end))}) | add) + {id:{type:\"integer\",title:\"Record ID\"}})} }",
          "plugin": "${ .plugin }"
        }
      }
    },
    {
      "createCrudWorkflows": {
        "call": "ferrisflow.primitive",
        "with": {
          "parameters": "${ .definition + {ownerPlugin:(.plugin.id // \"ferrisflow.content-types\"), outputView:{type:\"article\",titleField:\"title\",bodyField:(.definition.schema.fields | map(select(.type == \"richtext\") | .name) | first)}, inputSchema:.inputSchema, updateSchema:(.inputSchema + {required:[\"id\"]})} }",
          "plugin": "ferrisflow.content-types",
          "primitive": "workflow.instantiate",
          "template": "crud"
        }
      }
    }
  ],
  "document": {
    "dsl": "1.0.3",
    "metadata": {
      "ferrisflow": {
        "plugin": "ferrisflow.content-types"
      }
    },
    "name": "content-type-crud",
    "namespace": "ferrisflow_core",
    "version": "1.0.0"
  }
}