Demo App: Pizza-delivery

State Machine Definition

{
    "machineType": "pizza-delivery",
    "mtime": 1569024114,
    "states": {
        "": {
            "name": "",
            "color": null,
            "extensions": {}
        },
        "Baking": {
            "name": "Baking",
            "color": null,
            "extensions": {}
        },
        "Delivered": {
            "name": "Delivered",
            "color": null,
            "extensions": {}
        },
        "Draft": {
            "name": "Draft",
            "color": null,
            "extensions": {}
        },
        "Failed": {
            "name": "Failed",
            "color": null,
            "extensions": {}
        },
        "Received": {
            "name": "Received",
            "color": null,
            "extensions": {}
        }
    },
    "actions": {
        "confirm": {
            "name": "confirm",
            "transitions": {
                "Received": {
                    "name": "confirm",
                    "sourceState": "Received",
                    "targetStates": [
                        "Baking"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "create": {
            "name": "create",
            "transitions": {
                "": {
                    "name": "create",
                    "sourceState": "",
                    "targetStates": [
                        "Draft"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "delete": {
            "name": "delete",
            "transitions": {
                "Draft": {
                    "name": "delete",
                    "sourceState": "Draft",
                    "targetStates": [
                        ""
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "deliver": {
            "name": "deliver",
            "transitions": {
                "Baking": {
                    "name": "deliver",
                    "sourceState": "Baking",
                    "targetStates": [
                        "Delivered"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "fail": {
            "name": "fail",
            "transitions": {
                "Baking": {
                    "name": "fail",
                    "sourceState": "Baking",
                    "targetStates": [
                        "Failed"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "setAddress": {
            "name": "setAddress",
            "transitions": {
                "Draft": {
                    "name": "setAddress",
                    "sourceState": "Draft",
                    "targetStates": [
                        "Draft"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "setSize": {
            "name": "setSize",
            "transitions": {
                "Draft": {
                    "name": "setSize",
                    "sourceState": "Draft",
                    "targetStates": [
                        "Draft"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "submit": {
            "name": "submit",
            "transitions": {
                "Draft": {
                    "name": "submit",
                    "sourceState": "Draft",
                    "targetStates": [
                        "Received",
                        "Draft"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        }
    },
    "transitions": [
        {
            "name": "create",
            "sourceState": "",
            "targetStates": [
                "Draft"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "confirm",
            "sourceState": "Received",
            "targetStates": [
                "Baking"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "submit",
            "sourceState": "Draft",
            "targetStates": [
                "Received",
                "Draft"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "delete",
            "sourceState": "Draft",
            "targetStates": [
                ""
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "setAddress",
            "sourceState": "Draft",
            "targetStates": [
                "Draft"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "setSize",
            "sourceState": "Draft",
            "targetStates": [
                "Draft"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "fail",
            "sourceState": "Baking",
            "targetStates": [
                "Failed"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "deliver",
            "sourceState": "Baking",
            "targetStates": [
                "Delivered"
            ],
            "color": null,
            "extensions": {}
        }
    ],
    "stateMachineGraph": {},
    "properties": [],
    "errors": [],
    "referenceClass": "Smalldb\\StateMachine\\Test\\Example\\Bpmn\\PizzaDelivery",
    "repositoryClass": null,
    "transitionsClass": null,
    "extensions": {
        "Smalldb\\StateMachine\\SourcesExtension\\Definition\\SourcesExtension": {
            "sourceFiles": [
                {
                    "filename": "test\/Example\/Bpmn\/PizzaDelivery.php"
                },
                {
                    "filename": "test\/Example\/Bpmn\/PizzaDelivery.bpmn"
                }
            ]
        },
        "Smalldb\\StateMachine\\BpmnExtension\\Definition\\BpmnExtension": {
            "diagramInfo": [
                {
                    "bpmnFileName": "test\/Example\/Bpmn\/PizzaDelivery.bpmn",
                    "targetParticipant": "Participant_StateMachine",
                    "svgFileName": "test\/Example\/Bpmn\/PizzaDelivery.svg",
                    "bpmnGraph": {}
                }
            ]
        }
    }
}