Demo App: Supervisor-process

State Machine Definition

{
    "machineType": "supervisor-process",
    "mtime": 1592492448,
    "states": {
        "": {
            "name": "",
            "color": null,
            "extensions": {}
        },
        "Backoff": {
            "name": "Backoff",
            "color": "#EEEEEE",
            "extensions": {}
        },
        "Exited": {
            "name": "Exited",
            "color": "#FF6633",
            "extensions": {}
        },
        "Fatal": {
            "name": "Fatal",
            "color": "#FF6633",
            "extensions": {}
        },
        "Running": {
            "name": "Running",
            "color": "#99FF33",
            "extensions": {}
        },
        "Starting": {
            "name": "Starting",
            "color": "#EEEEEE",
            "extensions": {}
        },
        "Stopped": {
            "name": "Stopped",
            "color": "#FF6633",
            "extensions": {}
        },
        "Stopping": {
            "name": "Stopping",
            "color": "#EEEEEE",
            "extensions": {}
        }
    },
    "actions": {
        "create": {
            "name": "create",
            "transitions": {
                "": {
                    "name": "create",
                    "sourceState": "",
                    "targetStates": [
                        "Stopped"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "die": {
            "name": "die",
            "transitions": {
                "Starting": {
                    "name": "die",
                    "sourceState": "Starting",
                    "targetStates": [
                        "Backoff"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "died": {
            "name": "died",
            "transitions": {
                "Backoff": {
                    "name": "died",
                    "sourceState": "Backoff",
                    "targetStates": [
                        "Fatal"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "exit": {
            "name": "exit",
            "transitions": {
                "Running": {
                    "name": "exit",
                    "sourceState": "Running",
                    "targetStates": [
                        "Exited"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "restart": {
            "name": "restart",
            "transitions": {
                "Backoff": {
                    "name": "restart",
                    "sourceState": "Backoff",
                    "targetStates": [
                        "Starting"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "start": {
            "name": "start",
            "transitions": {
                "Stopped": {
                    "name": "start",
                    "sourceState": "Stopped",
                    "targetStates": [
                        "Starting"
                    ],
                    "color": "#000000",
                    "extensions": {}
                },
                "Fatal": {
                    "name": "start",
                    "sourceState": "Fatal",
                    "targetStates": [
                        "Starting"
                    ],
                    "color": "#000000",
                    "extensions": {}
                },
                "Exited": {
                    "name": "start",
                    "sourceState": "Exited",
                    "targetStates": [
                        "Starting"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "started": {
            "name": "started",
            "transitions": {
                "Starting": {
                    "name": "started",
                    "sourceState": "Starting",
                    "targetStates": [
                        "Running"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "stop": {
            "name": "stop",
            "transitions": {
                "Running": {
                    "name": "stop",
                    "sourceState": "Running",
                    "targetStates": [
                        "Stopping"
                    ],
                    "color": "#000000",
                    "extensions": {}
                },
                "Starting": {
                    "name": "stop",
                    "sourceState": "Starting",
                    "targetStates": [
                        "Stopping"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        },
        "stopped": {
            "name": "stopped",
            "transitions": {
                "Stopping": {
                    "name": "stopped",
                    "sourceState": "Stopping",
                    "targetStates": [
                        "Stopped"
                    ],
                    "color": "#000000",
                    "extensions": {}
                }
            },
            "extensions": {}
        }
    },
    "transitions": [
        {
            "name": "create",
            "sourceState": "",
            "targetStates": [
                "Stopped"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "start",
            "sourceState": "Stopped",
            "targetStates": [
                "Starting"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "die",
            "sourceState": "Starting",
            "targetStates": [
                "Backoff"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "restart",
            "sourceState": "Backoff",
            "targetStates": [
                "Starting"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "stop",
            "sourceState": "Running",
            "targetStates": [
                "Stopping"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "died",
            "sourceState": "Backoff",
            "targetStates": [
                "Fatal"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "start",
            "sourceState": "Fatal",
            "targetStates": [
                "Starting"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "start",
            "sourceState": "Exited",
            "targetStates": [
                "Starting"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "exit",
            "sourceState": "Running",
            "targetStates": [
                "Exited"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "stop",
            "sourceState": "Starting",
            "targetStates": [
                "Stopping"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "stopped",
            "sourceState": "Stopping",
            "targetStates": [
                "Stopped"
            ],
            "color": "#000000",
            "extensions": {}
        },
        {
            "name": "started",
            "sourceState": "Starting",
            "targetStates": [
                "Running"
            ],
            "color": "#000000",
            "extensions": {}
        }
    ],
    "stateMachineGraph": {},
    "properties": [],
    "errors": [],
    "referenceClass": "Smalldb\\StateMachine\\Test\\Example\\SupervisorProcess\\SupervisorProcess",
    "repositoryClass": null,
    "transitionsClass": null,
    "extensions": {
        "Smalldb\\StateMachine\\SourcesExtension\\Definition\\SourcesExtension": {
            "sourceFiles": [
                {
                    "filename": "test\/Example\/SupervisorProcess\/SupervisorProcess.php"
                },
                {
                    "filename": "test\/Example\/SupervisorProcess\/SupervisorProcess.graphml"
                }
            ]
        },
        "Smalldb\\StateMachine\\GraphMLExtension\\GraphMLExtension": {
            "diagramInfo": [
                {
                    "graphmlFileName": "test\/Example\/SupervisorProcess\/SupervisorProcess.graphml",
                    "group": null,
                    "graph": {}
                }
            ]
        }
    }
}