{
    "schemaVersion": "2.0",
    "diagramKind": "bpmn-lite",
    "id": "editorial-publication-process",
    "title": "Editorial publication process",
    "language": "en",
    "pool": {
        "id": "publication-pool",
        "type": "pool",
        "title": "Editorial publication"
    },
    "lanes": [
        {
            "id": "author-lane",
            "type": "lane",
            "title": "Author"
        },
        {
            "id": "validation-lane",
            "type": "lane",
            "title": "Validation"
        },
        {
            "id": "publishing-lane",
            "type": "lane",
            "title": "Publishing"
        }
    ],
    "nodes": [
        {
            "id": "start",
            "type": "start-event",
            "title": "Ready",
            "laneId": "author-lane"
        },
        {
            "id": "submit",
            "type": "task",
            "title": "Submit source",
            "laneId": "author-lane"
        },
        {
            "id": "validate",
            "type": "task",
            "title": "Validate source",
            "laneId": "validation-lane"
        },
        {
            "id": "valid",
            "type": "exclusive-gateway",
            "title": "Valid?",
            "laneId": "validation-lane",
            "gatewayRole": "split"
        },
        {
            "id": "rejected",
            "type": "end-event",
            "title": "Rejected",
            "laneId": "validation-lane"
        },
        {
            "id": "render-split",
            "type": "parallel-gateway",
            "title": "Render",
            "laneId": "validation-lane",
            "gatewayRole": "split"
        },
        {
            "id": "render-svg",
            "type": "task",
            "title": "Render SVG",
            "laneId": "validation-lane"
        },
        {
            "id": "render-png",
            "type": "task",
            "title": "Render PNG",
            "laneId": "publishing-lane"
        },
        {
            "id": "render-join",
            "type": "parallel-gateway",
            "title": "Artifacts ready",
            "laneId": "publishing-lane",
            "gatewayRole": "join"
        },
        {
            "id": "publish",
            "type": "task",
            "title": "Publish artifacts",
            "laneId": "publishing-lane"
        },
        {
            "id": "published",
            "type": "end-event",
            "title": "Published",
            "laneId": "publishing-lane"
        }
    ],
    "edges": [
        {
            "id": "start-submit",
            "type": "sequence-flow",
            "from": "start",
            "to": "submit"
        },
        {
            "id": "submit-validate",
            "type": "sequence-flow",
            "from": "submit",
            "to": "validate"
        },
        {
            "id": "validate-valid",
            "type": "sequence-flow",
            "from": "validate",
            "to": "valid"
        },
        {
            "id": "valid-rejected",
            "type": "sequence-flow",
            "from": "valid",
            "to": "rejected",
            "isDefault": true
        },
        {
            "id": "valid-render",
            "type": "sequence-flow",
            "from": "valid",
            "to": "render-split",
            "condition": "Source is valid"
        },
        {
            "id": "split-svg",
            "type": "sequence-flow",
            "from": "render-split",
            "to": "render-svg"
        },
        {
            "id": "split-png",
            "type": "sequence-flow",
            "from": "render-split",
            "to": "render-png"
        },
        {
            "id": "svg-join",
            "type": "sequence-flow",
            "from": "render-svg",
            "to": "render-join"
        },
        {
            "id": "png-join",
            "type": "sequence-flow",
            "from": "render-png",
            "to": "render-join"
        },
        {
            "id": "join-publish",
            "type": "sequence-flow",
            "from": "render-join",
            "to": "publish"
        },
        {
            "id": "publish-end",
            "type": "sequence-flow",
            "from": "publish",
            "to": "published"
        }
    ]
}
