Demo App: User

State Machine Definition

{
    "machineType": "user",
    "mtime": 1570288607,
    "states": {
        "Exists": {
            "name": "Exists",
            "color": null,
            "extensions": {}
        },
        "": {
            "name": "",
            "color": null,
            "extensions": {}
        }
    },
    "actions": {
        "create": {
            "name": "create",
            "transitions": {
                "": {
                    "name": "create",
                    "sourceState": "",
                    "targetStates": [
                        "Exists"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "update": {
            "name": "update",
            "transitions": {
                "Exists": {
                    "name": "update",
                    "sourceState": "Exists",
                    "targetStates": [
                        "Exists"
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "delete": {
            "name": "delete",
            "transitions": {
                "Exists": {
                    "name": "delete",
                    "sourceState": "Exists",
                    "targetStates": [
                        ""
                    ],
                    "color": null,
                    "extensions": {}
                }
            },
            "extensions": {}
        }
    },
    "transitions": [
        {
            "name": "create",
            "sourceState": "",
            "targetStates": [
                "Exists"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "update",
            "sourceState": "Exists",
            "targetStates": [
                "Exists"
            ],
            "color": null,
            "extensions": {}
        },
        {
            "name": "delete",
            "sourceState": "Exists",
            "targetStates": [
                ""
            ],
            "color": null,
            "extensions": {}
        }
    ],
    "stateMachineGraph": {},
    "properties": [],
    "errors": [],
    "referenceClass": "Smalldb\\StateMachine\\Test\\Example\\User\\User",
    "repositoryClass": "Smalldb\\StateMachine\\Test\\Example\\User\\UserRepository",
    "transitionsClass": "Smalldb\\StateMachine\\Test\\Example\\User\\UserTransitions",
    "extensions": {
        "Smalldb\\StateMachine\\SourcesExtension\\Definition\\SourcesExtension": {
            "sourceFiles": [
                {
                    "filename": "test\/Example\/User\/User.php"
                }
            ]
        }
    }
}