{
  "name": "event_queue",
  "config": {
    "arguments": {
      "Player": {
        "collection": "players"
      }
    }
  },
  "states": {
    "_state_0": {
      "name": "START",
      "view": {
        "position": {
          "x": -112,
          "y": 157
        }
      },
      "comments": [
        "When a new session is created, the START state starts."
      ],
      "run": [
        "_action_0"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    },
    "_state_1": {
      "name": "QUIT",
      "view": {
        "position": {
          "x": 1055,
          "y": 295
        }
      },
      "comments": [],
      "run": [
        "_action_1"
      ],
      "listen": [],
      "path": [
        "start"
      ]
    },
    "_state_sv4TDnRN": {
      "name": "AwaitEvent",
      "view": {
        "position": {
          "x": 298,
          "y": 212
        }
      },
      "run": [],
      "listen": [
        "onEvent_yfCKi-xlXs"
      ],
      "path": [
        "start"
      ]
    },
    "_state_1m8Qeq_9": {
      "name": "EventArrived",
      "view": {
        "position": {
          "x": 685,
          "y": 134
        }
      },
      "run": [
        "log_p_2KfDcNi3"
      ],
      "listen": [
        "timeout_QgfKYPwqKZ"
      ],
      "path": [
        "start"
      ]
    },
    "_state_zDfO6gLK": {
      "name": "SomeSubroutine",
      "view": {
        "position": {
          "x": 658,
          "y": 512
        }
      },
      "run": [],
      "listen": [
        "timeout_zzZlR0E1WX"
      ],
      "path": [
        "start"
      ]
    },
    "_state_qRY-_yYo": {
      "name": "DispatchCorrectMsg",
      "view": {
        "position": {
          "x": 322,
          "y": 756
        }
      },
      "run": [
        "dispatchEvent_7a2XuEUBwn"
      ],
      "listen": [],
      "path": []
    },
    "_state_R5yE0YcQ": {
      "name": "DispatchWrongMessage1",
      "view": {
        "position": {
          "x": -31,
          "y": 589
        }
      },
      "run": [
        "dispatchEvent_5NKKyb1bME"
      ],
      "listen": [],
      "path": []
    },
    "_state_VDANF9Tk": {
      "name": "DispatchWrongMessage2",
      "view": {
        "position": {
          "x": -30,
          "y": 761
        }
      },
      "run": [
        "dispatchEvent_4gBaDqwmpm"
      ],
      "listen": []
    }
  },
  "actions": {
    "_action_0": {
      "action": "next",
      "name": "next_1",
      "plugin": "control",
      "payload": {
        "next": "AwaitEvent"
      },
      "mode": "run"
    },
    "_action_1": {
      "action": "quit",
      "name": "quit_1",
      "plugin": "control",
      "payload": null,
      "mode": "run"
    },
    "onEvent_yfCKi-xlXs": {
      "action": "onEvent",
      "plugin": "logic",
      "mode": "listen",
      "name": "onEvent_1",
      "payload": {
        "from": "session",
        "event": "test",
        "if": [
          {
            "equals": [
              "abc"
            ],
            "case_sensitive": false,
            "next": "EventArrived"
          }
        ],
        "else": {
          "next": "SomeSubroutine"
        },
        "keep_listening": {
          "enabled": true,
          "max_queue_length": 100
        }
      }
    },
    "timeout_zzZlR0E1WX": {
      "action": "timeout",
      "plugin": "time",
      "mode": "listen",
      "name": "timeout_1",
      "payload": {
        "timeout": "4",
        "next": "AwaitEvent"
      }
    },
    "log_p_2KfDcNi3": {
      "action": "log",
      "plugin": "control",
      "mode": "run",
      "name": "log_1",
      "payload": {
        "level": "info",
        "message": "Correct message was [[state.AwaitEvent.onEvent_1.match]]"
      }
    },
    "dispatchEvent_7a2XuEUBwn": {
      "action": "dispatchEvent",
      "plugin": "logic",
      "mode": "run",
      "name": "dispatchEvent_1",
      "payload": {
        "name": "test",
        "source": "session",
        "message": "abc"
      }
    },
    "dispatchEvent_5NKKyb1bME": {
      "action": "dispatchEvent",
      "plugin": "logic",
      "mode": "run",
      "name": "dispatchEvent_1",
      "payload": {
        "name": "test",
        "source": "session",
        "message": "123"
      }
    },
    "timeout_QgfKYPwqKZ": {
      "action": "timeout",
      "plugin": "time",
      "mode": "listen",
      "name": "timeout_1",
      "payload": {
        "timeout": "3",
        "next": "QUIT"
      }
    },
    "dispatchEvent_4gBaDqwmpm": {
      "action": "dispatchEvent",
      "plugin": "logic",
      "mode": "run",
      "name": "dispatchEvent_1",
      "payload": {
        "name": "test",
        "source": "session",
        "message": "xyz"
      }
    }
  },
  "contents": {},
  "created_at": "2024-03-19T12:27:55.792Z",
  "modified_at": "2024-03-19T12:27:55.792Z",
  "created_by": "Anonymosaurus",
  "modified_by": "Anonymosaurus",
  "created_with": "2.5.2",
  "modified_with": "2.5.2",
  "_id": "ltMigkmzKYj9dIgH"
}