{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "diagram-bpmn-editor",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Diagram",
  "variant": "bpmn-editor",
  "dependencies": [
    "Syncfusion.AspNetCore.Diagram"
  ],
  "description": "BPMN process editor with a diagram canvas and a symbol palette of BPMN shapes, events, and tasks.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/diagram-bpmn-editor.md"
  },
  "files": [
    {
      "target": "src/components/diagram-bpmn-editor/diagram.cshtml",
      "content": "@page\n@namespace aspnet_core.Diagram.BpmnEditor\n@model EJ2CoreSampleBrowser.Diagram.BpmnEditor.BpmnEditorModel\n@using Syncfusion.EJ2\n\n    <div class=\"control-section\">\n        <div class=\"content-wrapper\" style=\"display: flex; gap: 12px;\">\n            <div style=\"width: 240px;\">\n                <ejs-symbolpalette id=\"symbolpalette\" width=\"100%\" height=\"640px\">\n                    <e-symbolpalette-palettes>\n                        <e-symbolpalette-palette id=\"events\" expanded=\"true\"></e-symbolpalette-palette>\n                        <e-symbolpalette-palette id=\"tasks\" expanded=\"true\"></e-symbolpalette-palette>\n                        <e-symbolpalette-palette id=\"gateways\" expanded=\"true\"></e-symbolpalette-palette>\n                    </e-symbolpalette-palettes>\n                </ejs-symbolpalette>\n            </div>\n            <div style=\"flex: 1;\">\n                <ejs-diagram id=\"diagram\" width=\"100%\" height=\"640px\" nodes=\"@Model.Nodes\" connectors=\"@Model.Connectors\">\n                </ejs-diagram>\n            </div>\n        </div>\n    </div>\n\n    <script>\n        // Define the BPMN shape palette in JavaScript so the .cshtml stays\n        // focused on layout. Each palette group contains a small set of\n        // generic BPMN shapes (events, tasks, gateways).\n        document.addEventListener('DOMContentLoaded', function () {\n            var palette = document.getElementById('symbolpalette') &&\n                document.getElementById('symbolpalette').ej2_instances[0];\n            if (palette) {\n                palette.palettes = [\n                    {\n                        id: 'events',\n                        symbols: [\n                            { id: 'start', shape: { type: 'Bpmn', shape: 'Event', event: { event: 'Start' } } },\n                            { id: 'end',   shape: { type: 'Bpmn', shape: 'Event', event: { event: 'End' } } }\n                        ]\n                    },\n                    {\n                        id: 'tasks',\n                        symbols: [\n                            { id: 'task', shape: { type: 'Bpmn', shape: 'Activity', activity: { activity: 'Task' } } }\n                        ]\n                    },\n                    {\n                        id: 'gateways',\n                        symbols: [\n                            { id: 'gateway', shape: { type: 'Bpmn', shape: 'Gateway', gateway: { type: 'Exclusive' } } }\n                        ]\n                    }\n                ];\n                palette.dataBind();\n            }\n        });\n    </script>\n"
    },
    {
      "target": "src/components/diagram-bpmn-editor/diagram.cshtml.cs",
      "content": "using System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\nusing Syncfusion.EJ2.Diagrams;\n\nnamespace EJ2CoreSampleBrowser.Diagram.BpmnEditor\n{\n    public class BpmnEditorModel : PageModel\n    {\n        // The diagram starts empty; the user drags shapes from the palette\n        // onto the canvas and connects them with flow arrows.\n        public List<DiagramNode> Nodes { get; set; } = new List<DiagramNode>();\n        public List<DiagramConnector> Connectors { get; set; } = new List<DiagramConnector>();\n\n        public void OnGet()\n        {\n        }\n    }\n}\n"
    }
  ]
}