# skullquake/mxschedule architecture

> Architecture diagram of the GitHub repository skullquake/mxschedule, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/skullquake/mxschedule
- Repository: https://github.com/skullquake/mxschedule

## Overview

mxschedule is a Mendix scheduled-execution module. Users configure and start cron- or millisecond-based Microflow or server-side JavaScript schedules, then inspect or stop executions. The README also documents validation, execution logging, and test domain models. The excerpts show schedule state access, schedule-management actions, and microflow dispatch wrappers, but not the runtime implementation of scheduling, termination, or logging; those connections are therefore documented at the capability level, not asserted as source-level calls.

Main entry points: [`src/mxschedule/Schedule.java`](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/Schedule.java) (Scheduler state), [`src/mxschedule/proxies/Schedule.java`](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/proxies/Schedule.java) (Schedule config), [`src/mxschedule/actions/ja_putSchedule.java`](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_putSchedule.java) (Create schedule), [`src/mxschedule/actions/ja_getSchedule.java`](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_getSchedule.java) (Inspect schedules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_management["Schedule management"]
  node_config["Schedule config<br/>[Schedule.java]"]
  node_put["Create schedule"]
  node_get["Inspect schedules"]
  node_update["Update schedule"]
  node_delete["Delete schedule"]
  node_validation["Config validation"]
end

subgraph group_runtime["Scheduling runtime"]
  node_scheduler["Scheduler state<br/>[Schedule.java]"]
  node_dispatch["Schedule dispatch<br/>[Microflows.java]"]
  node_cron["Cron triggers"]
  node_interval["Millisecond triggers"]
  node_targets["Microflow / SJS"]
end

subgraph group_operations["Execution operations"]
  node_stop["Execution termination"]
  node_logs["Execution log"]
end

subgraph group_testing["Testing models"]
  node_testmodels["Test domain models"]
  node_testnp["Non-persistable models"]
end

node_user(("Mendix user"))

node_user -->|"creates"| node_put
node_user -->|"inspects"| node_get
node_user -->|"updates"| node_update
node_user -->|"deletes"| node_delete
node_put -.->|"sets config"| node_config
node_update -.->|"changes config"| node_config
node_get -->|"reads state"| node_scheduler
node_config -.->|"configures"| node_scheduler
node_scheduler -->|"schedules by cron"| node_cron
node_scheduler -->|"schedules by interval"| node_interval
node_scheduler -.->|"dispatches"| node_dispatch
node_dispatch -->|"invokes"| node_targets
node_scheduler -->|"validates config"| node_validation
node_user -->|"terminates"| node_stop
node_scheduler -->|"supports termination"| node_stop
node_scheduler -->|"records executions"| node_logs
node_user -->|"tests with"| node_testmodels
node_user -->|"tests with"| node_testnp

click node_config "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/proxies/Schedule.java"
click node_put "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_putSchedule.java"
click node_get "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_getSchedule.java"
click node_update "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_updateSchedule.java"
click node_delete "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_deleteSchedule.java"
click node_scheduler "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/Schedule.java"
click node_dispatch "https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/proxies/microflows/Microflows.java"
click node_cron "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions"
click node_interval "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions"
click node_targets "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions"
click node_validation "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions"
click node_stop "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions"
click node_logs "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule"
click node_testmodels "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/data/proxies"
click node_testnp "https://github.com/skullquake/mxschedule/tree/master/tst/javasource/datanp/proxies"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_config,node_put,node_get,node_update,node_delete,node_validation,node_user toneBlue
class node_scheduler,node_dispatch,node_cron,node_interval,node_targets toneAmber
class node_stop,node_logs toneMint
class node_testmodels,node_testnp toneRose
```

## Components

### Schedule management

- [Schedule config](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/proxies/Schedule.java): `src/mxschedule/proxies/Schedule.java`
- [Create schedule](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_putSchedule.java): `src/mxschedule/actions/ja_putSchedule.java`
- [Inspect schedules](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_getSchedule.java): `src/mxschedule/actions/ja_getSchedule.java`
- [Update schedule](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_updateSchedule.java): `src/mxschedule/actions/ja_updateSchedule.java`
- [Delete schedule](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/actions/ja_deleteSchedule.java): `src/mxschedule/actions/ja_deleteSchedule.java`
- [Config validation](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions): `tst/javasource/mxschedule/actions`

### Scheduling runtime

- [Scheduler state](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/Schedule.java): `src/mxschedule/Schedule.java`
- [Schedule dispatch](https://github.com/skullquake/mxschedule/blob/master/src/mxschedule/proxies/microflows/Microflows.java): `src/mxschedule/proxies/microflows/Microflows.java`
- [Cron triggers](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions): `tst/javasource/mxschedule/actions`
- [Millisecond triggers](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions): `tst/javasource/mxschedule/actions`
- [Microflow / SJS](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions): `tst/javasource/mxschedule/actions`

### Execution operations

- [Execution termination](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule/actions): `tst/javasource/mxschedule/actions`
- [Execution log](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/mxschedule): `tst/javasource/mxschedule`

### Testing models

- [Test domain models](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/data/proxies): `tst/javasource/data/proxies`
- [Non-persistable models](https://github.com/skullquake/mxschedule/tree/master/tst/javasource/datanp/proxies): `tst/javasource/datanp/proxies`

### Other components

- **Mendix user**

## Connections

- Mendix user → Create schedule: creates
- Mendix user → Inspect schedules: inspects
- Mendix user → Update schedule: updates
- Mendix user → Delete schedule: deletes
- Create schedule → Schedule config: sets config
- Update schedule → Schedule config: changes config
- Inspect schedules → Scheduler state: reads state (evidence: `src/mxschedule/actions/ja_getSchedule.java`)
- Schedule config → Scheduler state: configures
- Scheduler state → Cron triggers: schedules by cron
- Scheduler state → Millisecond triggers: schedules by interval
- Scheduler state → Schedule dispatch: dispatches
- Schedule dispatch → Microflow / SJS: invokes
- Scheduler state → Config validation: validates config
- Mendix user → Execution termination: terminates
- Scheduler state → Execution termination: supports termination
- Scheduler state → Execution log: records executions
- Mendix user → Test domain models: tests with
- Mendix user → Non-persistable models: tests with
