@solidxai/core 0.1.13-beta.7 → 0.1.13-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +16 -0
- package/CHANGELOG.md +548 -0
- package/CLAUDE.md +26 -0
- package/dist/constants/draft-publish-fields.d.ts +2 -0
- package/dist/constants/draft-publish-fields.d.ts.map +1 -0
- package/dist/constants/draft-publish-fields.js +5 -0
- package/dist/constants/draft-publish-fields.js.map +1 -0
- package/dist/constants/media-file-types.d.ts +9 -0
- package/dist/constants/media-file-types.d.ts.map +1 -1
- package/dist/constants/media-file-types.js +27 -1
- package/dist/constants/media-file-types.js.map +1 -1
- package/dist/controllers/action-metadata.controller.d.ts +1 -1
- package/dist/controllers/action-metadata.controller.js +1 -1
- package/dist/controllers/agent-event.controller.d.ts +1 -1
- package/dist/controllers/agent-event.controller.js +1 -1
- package/dist/controllers/agent-session.controller.d.ts +1 -1
- package/dist/controllers/agent-session.controller.js +1 -1
- package/dist/controllers/dashboard-user-layout.controller.d.ts +1 -1
- package/dist/controllers/dashboard-user-layout.controller.js +1 -1
- package/dist/controllers/email-template.controller.d.ts +1 -1
- package/dist/controllers/email-template.controller.js +1 -1
- package/dist/controllers/export-template.controller.d.ts +1 -1
- package/dist/controllers/export-template.controller.d.ts.map +1 -1
- package/dist/controllers/export-template.controller.js +6 -4
- package/dist/controllers/export-template.controller.js.map +1 -1
- package/dist/controllers/export-transaction.controller.d.ts +1 -1
- package/dist/controllers/export-transaction.controller.js +1 -1
- package/dist/controllers/import-transaction-error-log.controller.d.ts +1 -1
- package/dist/controllers/import-transaction-error-log.controller.js +1 -1
- package/dist/controllers/import-transaction.controller.d.ts +1 -1
- package/dist/controllers/import-transaction.controller.d.ts.map +1 -1
- package/dist/controllers/import-transaction.controller.js +7 -7
- package/dist/controllers/import-transaction.controller.js.map +1 -1
- package/dist/controllers/list-of-values.controller.d.ts +1 -1
- package/dist/controllers/list-of-values.controller.js +1 -1
- package/dist/controllers/locale.controller.d.ts +1 -1
- package/dist/controllers/locale.controller.js +1 -1
- package/dist/controllers/mcp-audit-log.controller.d.ts +1 -1
- package/dist/controllers/mcp-audit-log.controller.js +1 -1
- package/dist/controllers/media.controller.d.ts +1 -1
- package/dist/controllers/media.controller.d.ts.map +1 -1
- package/dist/controllers/media.controller.js +12 -7
- package/dist/controllers/media.controller.js.map +1 -1
- package/dist/controllers/menu-item-metadata.controller.d.ts +1 -1
- package/dist/controllers/menu-item-metadata.controller.js +1 -1
- package/dist/controllers/model-sequence.controller.d.ts +1 -1
- package/dist/controllers/model-sequence.controller.js +1 -1
- package/dist/controllers/module-package.controller.d.ts.map +1 -1
- package/dist/controllers/module-package.controller.js +2 -3
- package/dist/controllers/module-package.controller.js.map +1 -1
- package/dist/controllers/mq-message-queue.controller.d.ts +1 -1
- package/dist/controllers/mq-message-queue.controller.js +1 -1
- package/dist/controllers/mq-message.controller.d.ts +1 -1
- package/dist/controllers/mq-message.controller.js +1 -1
- package/dist/controllers/permission-metadata.controller.d.ts +1 -1
- package/dist/controllers/permission-metadata.controller.js +1 -1
- package/dist/controllers/role-metadata.controller.d.ts +1 -1
- package/dist/controllers/role-metadata.controller.js +1 -1
- package/dist/controllers/saved-filters.controller.d.ts +1 -1
- package/dist/controllers/saved-filters.controller.js +1 -1
- package/dist/controllers/scheduled-job.controller.d.ts +1 -1
- package/dist/controllers/scheduled-job.controller.js +1 -1
- package/dist/controllers/security-rule.controller.d.ts +1 -1
- package/dist/controllers/security-rule.controller.js +1 -1
- package/dist/controllers/sms-template.controller.d.ts +1 -1
- package/dist/controllers/sms-template.controller.js +1 -1
- package/dist/controllers/user-activity-history.controller.d.ts +1 -1
- package/dist/controllers/user-activity-history.controller.js +1 -1
- package/dist/controllers/user-view-metadata.controller.d.ts +1 -1
- package/dist/controllers/user-view-metadata.controller.js +1 -1
- package/dist/controllers/user.controller.d.ts +2 -2
- package/dist/controllers/user.controller.js +2 -2
- package/dist/controllers/view-metadata.controller.d.ts +2 -2
- package/dist/controllers/view-metadata.controller.js +1 -1
- package/dist/controllers/workflow-definition.controller.d.ts +1 -1
- package/dist/controllers/workflow-definition.controller.js +1 -1
- package/dist/controllers/workflow-execution-artifact.controller.d.ts +1 -1
- package/dist/controllers/workflow-execution-artifact.controller.js +1 -1
- package/dist/controllers/workflow-execution-log.controller.d.ts +1 -1
- package/dist/controllers/workflow-execution-log.controller.js +1 -1
- package/dist/controllers/workflow-execution.controller.d.ts +1 -1
- package/dist/controllers/workflow-execution.controller.js +1 -1
- package/dist/controllers/workflow-secret.controller.d.ts +1 -1
- package/dist/controllers/workflow-secret.controller.js +1 -1
- package/dist/controllers/workflow-step-execution.controller.d.ts +1 -1
- package/dist/controllers/workflow-step-execution.controller.js +1 -1
- package/dist/controllers/workflow-trigger-execution.controller.d.ts +1 -1
- package/dist/controllers/workflow-trigger-execution.controller.js +1 -1
- package/dist/dtos/basic-filters.dto.d.ts +0 -1
- package/dist/dtos/basic-filters.dto.d.ts.map +1 -1
- package/dist/dtos/basic-filters.dto.js +1 -6
- package/dist/dtos/basic-filters.dto.js.map +1 -1
- package/dist/entities/common.entity.d.ts +4 -0
- package/dist/entities/common.entity.d.ts.map +1 -1
- package/dist/entities/common.entity.js +25 -1
- package/dist/entities/common.entity.js.map +1 -1
- package/dist/entities/user.entity.js +2 -2
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/factories/mail.factory.d.ts.map +1 -1
- package/dist/factories/mail.factory.js +4 -0
- package/dist/factories/mail.factory.js.map +1 -1
- package/dist/helpers/field-crud-managers/MediaFieldCrudManager.d.ts +1 -0
- package/dist/helpers/field-crud-managers/MediaFieldCrudManager.d.ts.map +1 -1
- package/dist/helpers/field-crud-managers/MediaFieldCrudManager.js +18 -11
- package/dist/helpers/field-crud-managers/MediaFieldCrudManager.js.map +1 -1
- package/dist/helpers/file-download.helper.d.ts +9 -0
- package/dist/helpers/file-download.helper.d.ts.map +1 -0
- package/dist/helpers/file-download.helper.js +14 -0
- package/dist/helpers/file-download.helper.js.map +1 -0
- package/dist/helpers/model-metadata-helper.service.d.ts.map +1 -1
- package/dist/helpers/model-metadata-helper.service.js +30 -1
- package/dist/helpers/model-metadata-helper.service.js.map +1 -1
- package/dist/helpers/solid-registry.js +1 -1
- package/dist/helpers/solid-registry.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/seeders/module-test-data.service.d.ts +3 -1
- package/dist/seeders/module-test-data.service.d.ts.map +1 -1
- package/dist/seeders/module-test-data.service.js +8 -2
- package/dist/seeders/module-test-data.service.js.map +1 -1
- package/dist/seeders/seed-data/solid-core-metadata.json +2 -0
- package/dist/services/authentication.service.d.ts +4 -1
- package/dist/services/authentication.service.d.ts.map +1 -1
- package/dist/services/authentication.service.js +52 -4
- package/dist/services/authentication.service.js.map +1 -1
- package/dist/services/chatter-message.service.d.ts +1 -0
- package/dist/services/chatter-message.service.d.ts.map +1 -1
- package/dist/services/chatter-message.service.js +8 -0
- package/dist/services/chatter-message.service.js.map +1 -1
- package/dist/services/crud-helper.service.d.ts +5 -2
- package/dist/services/crud-helper.service.d.ts.map +1 -1
- package/dist/services/crud-helper.service.js +30 -32
- package/dist/services/crud-helper.service.js.map +1 -1
- package/dist/services/crud.service.d.ts +11 -1
- package/dist/services/crud.service.d.ts.map +1 -1
- package/dist/services/crud.service.js +79 -66
- package/dist/services/crud.service.js.map +1 -1
- package/dist/services/datasource-introspection.service.d.ts.map +1 -1
- package/dist/services/datasource-introspection.service.js.map +1 -1
- package/dist/services/draft-publish-helper.service.d.ts +52 -0
- package/dist/services/draft-publish-helper.service.d.ts.map +1 -0
- package/dist/services/draft-publish-helper.service.js +368 -0
- package/dist/services/draft-publish-helper.service.js.map +1 -0
- package/dist/services/internationalisation-helper.service.d.ts +19 -0
- package/dist/services/internationalisation-helper.service.d.ts.map +1 -0
- package/dist/services/internationalisation-helper.service.js +107 -0
- package/dist/services/internationalisation-helper.service.js.map +1 -0
- package/dist/services/locale.service.d.ts +1 -1
- package/dist/services/media.service.d.ts +2 -1
- package/dist/services/media.service.d.ts.map +1 -1
- package/dist/services/media.service.js +28 -2
- package/dist/services/media.service.js.map +1 -1
- package/dist/services/metadata-validation.service.d.ts +7 -0
- package/dist/services/metadata-validation.service.d.ts.map +1 -0
- package/dist/services/metadata-validation.service.js +42 -0
- package/dist/services/metadata-validation.service.js.map +1 -0
- package/dist/services/model-metadata.service.d.ts.map +1 -1
- package/dist/services/model-metadata.service.js +2 -1
- package/dist/services/model-metadata.service.js.map +1 -1
- package/dist/services/object.utils.d.ts +2 -0
- package/dist/services/object.utils.d.ts.map +1 -0
- package/dist/services/object.utils.js +11 -0
- package/dist/services/object.utils.js.map +1 -0
- package/dist/services/settings/default-settings-provider.service.d.ts +6 -6
- package/dist/services/settings/default-settings-provider.service.js +3 -3
- package/dist/services/settings/default-settings-provider.service.js.map +1 -1
- package/dist/services/user.service.d.ts +2 -2
- package/dist/services/user.service.d.ts.map +1 -1
- package/dist/services/user.service.js +9 -3
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/view-metadata.service.d.ts +1 -2
- package/dist/services/view-metadata.service.d.ts.map +1 -1
- package/dist/services/view-metadata.service.js +3 -55
- package/dist/services/view-metadata.service.js.map +1 -1
- package/dist/services/workflow-definition.service.d.ts +1 -1
- package/dist/solid-core.module.d.ts.map +1 -1
- package/dist/solid-core.module.js +10 -1
- package/dist/solid-core.module.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/draft-publish-fields.ts +5 -0
- package/src/constants/media-file-types.ts +50 -0
- package/src/controllers/export-template.controller.ts +5 -3
- package/src/controllers/import-transaction.controller.ts +6 -6
- package/src/controllers/media.controller.ts +17 -6
- package/src/controllers/module-package.controller.ts +2 -3
- package/src/dtos/basic-filters.dto.ts +0 -4
- package/src/entities/common.entity.ts +20 -0
- package/src/entities/user.entity.ts +2 -2
- package/src/factories/mail.factory.ts +7 -1
- package/src/helpers/field-crud-managers/MediaFieldCrudManager.ts +26 -12
- package/src/helpers/file-download.helper.ts +31 -0
- package/src/helpers/model-metadata-helper.service.ts +32 -1
- package/src/helpers/solid-registry.ts +1 -1
- package/src/index.ts +2 -0
- package/src/seeders/module-test-data.service.ts +6 -0
- package/src/seeders/seed-data/solid-core-metadata.json +2 -0
- package/src/services/1.js +6 -0
- package/src/services/authentication.service.ts +76 -5
- package/src/services/chatter-message.service.ts +16 -0
- package/src/services/crud-helper.service.ts +16 -34
- package/src/services/crud.service.ts +98 -103
- package/src/services/datasource-introspection.service.ts +5 -0
- package/src/services/draft-publish-helper.service.ts +529 -0
- package/src/services/internationalisation-helper.service.ts +148 -0
- package/src/services/media.service.ts +48 -3
- package/src/services/metadata-validation.service.ts +39 -0
- package/src/services/model-metadata.service.ts +4 -1
- package/src/services/object.utils.ts +10 -0
- package/src/services/settings/default-settings-provider.service.ts +3 -3
- package/src/services/user.service.ts +18 -3
- package/src/services/view-metadata.service.ts +5 -145
- package/src/solid-core.module.ts +16 -3
- package/dist-tests/api/authenticate.spec.js +0 -119
- package/dist-tests/api/authenticate.spec.js.map +0 -1
- package/dist-tests/api/crud-service.findOne.cityMaster.spec.js +0 -97
- package/dist-tests/api/crud-service.findOne.cityMaster.spec.js.map +0 -1
- package/dist-tests/api/ping.spec.js +0 -21
- package/dist-tests/api/ping.spec.js.map +0 -1
- package/dist-tests/helpers/auth.js +0 -41
- package/dist-tests/helpers/auth.js.map +0 -1
- package/dist-tests/helpers/env.js +0 -11
- package/dist-tests/helpers/env.js.map +0 -1
- package/docs/agent-builder/notebook-lm-prompt-for-agent-builder.md +0 -136
- package/docs/agent-builder/team-ready-note-agent-builder.md +0 -305
- package/docs/agent-hub-grooming.md +0 -301
- package/docs/dashboards/AGENTIC_DASHBOARD_IMPLEMENTATION_PLAN.md +0 -438
- package/docs/dashboards/dashboard-curl-smoke-tests.txt +0 -146
- package/docs/dashboards/delete-legacy-dashboard-metadata.sql +0 -172
- package/docs/datasource-introspection-ddl-analysis.md +0 -326
- package/docs/datasource-introspection-implementation-plan.md +0 -306
- package/docs/grouping-enhancements.md +0 -89
- package/docs/java-spring/README.md +0 -3
- package/docs/java-spring/solid-core-module-deep-dive-report.md +0 -1317
- package/docs/module-package-import-handoff.md +0 -691
- package/docs/seed-changes.md +0 -65
- package/docs/test-data-workflow.md +0 -200
- package/docs/type-declaration-import-issue.md +0 -24
- package/docs/workflow/business-automation-example-notes.md +0 -309
- package/docs/workflow/control-flow-node-addition-sop.md +0 -324
- package/docs/workflow/data-engineering-pipeline-example-notes.md +0 -330
- package/docs/workflow/foreach-example-notes.md +0 -187
- package/docs/workflow/hello-world-example-notes.md +0 -271
- package/docs/workflow/kestra-concepts-plugins-blueprints.md +0 -315
- package/docs/workflow/loop-until-example-notes.md +0 -198
- package/docs/workflow/microservices-and-apis-example-notes.md +0 -264
- package/docs/workflow/samples.md +0 -25
- package/docs/workflow/what-is-kestra.md +0 -79
- package/docs/workflow/workflow-core-module-handoff-summary.md +0 -191
- package/docs/workflow/workflow-module-brd.md +0 -185
- package/docs/workflow/workflow-module-domain-model.md +0 -252
- package/docs/workflow/workflow-module-metadata-dsl.md +0 -302
- package/docs/workflow/workflow-module-technical-spec.md +0 -293
- package/docs/workflow/workflow-node-type-contracts.md +0 -635
- package/docs/workflow/workflow-node-ui-metadata-contract.md +0 -1262
- package/docs/workflow/workflow-solidx-model-field-spec.md +0 -284
|
@@ -1,284 +0,0 @@
|
|
|
1
|
-
# Workflow SolidX Model Field Specification
|
|
2
|
-
|
|
3
|
-
This document translates the agreed workflow-management domain model into SolidX model and field definitions.
|
|
4
|
-
|
|
5
|
-
It is intended as the final field-level design pass before using the SolidX model MCP tools.
|
|
6
|
-
|
|
7
|
-
## SolidX Field Types
|
|
8
|
-
|
|
9
|
-
The local `@solidxai/core` package defines these field types in `SolidFieldType`:
|
|
10
|
-
|
|
11
|
-
- `int`
|
|
12
|
-
- `bigint`
|
|
13
|
-
- `decimal`
|
|
14
|
-
- `shortText`
|
|
15
|
-
- `longText`
|
|
16
|
-
- `richText`
|
|
17
|
-
- `json`
|
|
18
|
-
- `boolean`
|
|
19
|
-
- `date`
|
|
20
|
-
- `datetime`
|
|
21
|
-
- `time`
|
|
22
|
-
- `relation`
|
|
23
|
-
- `mediaSingle`
|
|
24
|
-
- `mediaMultiple`
|
|
25
|
-
- `email`
|
|
26
|
-
- `password`
|
|
27
|
-
- `selectionStatic`
|
|
28
|
-
- `selectionDynamic`
|
|
29
|
-
- `computed`
|
|
30
|
-
- `uuid`
|
|
31
|
-
|
|
32
|
-
Useful relation metadata:
|
|
33
|
-
|
|
34
|
-
- `relationType`: `many-to-one`, `one-to-many`, `many-to-many`
|
|
35
|
-
- `relationCascade`: `set null`, `restrict`, `cascade`
|
|
36
|
-
|
|
37
|
-
## Modeling Philosophy
|
|
38
|
-
|
|
39
|
-
- Workflow definitions store their canonical DSL in YAML text.
|
|
40
|
-
- Workflow definitions are metadata-backed: manually created workflows should also be persisted back to the module metadata JSON so developers can commit and share them.
|
|
41
|
-
- Workflow execution data is normalized enough to support monitoring, filtering, and debugging.
|
|
42
|
-
- Workflow version history is not a separate model in v1.
|
|
43
|
-
- `definitionVersion` and `definitionChecksum` live on both definition and execution records.
|
|
44
|
-
- `WorkflowBlueprint` is intentionally deferred for now.
|
|
45
|
-
|
|
46
|
-
## Model: `workflowDefinition`
|
|
47
|
-
|
|
48
|
-
Purpose: stores the current reusable workflow definition.
|
|
49
|
-
|
|
50
|
-
Suggested table name: `wm_workflow_definition`
|
|
51
|
-
|
|
52
|
-
| Field | SolidX Type | Required | Notes |
|
|
53
|
-
| --- | --- | --- | --- |
|
|
54
|
-
| `key` | `shortText` | Yes | Stable workflow key. Should be unique. |
|
|
55
|
-
| `moduleMetadata` | `relation` | Yes | Many-to-one to SolidX `moduleMetadata`; identifies the owning module/package for metadata persistence. |
|
|
56
|
-
| `displayName` | `shortText` | Yes | Human-facing name. |
|
|
57
|
-
| `namespace` | `shortText` | No | Dot-path grouping, e.g. `ops.monitoring`. |
|
|
58
|
-
| `description` | `longText` | No | Workflow description. |
|
|
59
|
-
| `status` | `selectionStatic` | Yes | `draft`, `active`, `inactive`, `archived`. |
|
|
60
|
-
| `definitionVersion` | `shortText` | No | Human-managed or seed-managed version string. |
|
|
61
|
-
| `definitionChecksum` | `shortText` | No | Hash of canonical `definitionYaml`. |
|
|
62
|
-
| `definitionYaml` | `longText` | Yes | Canonical workflow DSL YAML used for sharing, seeding, validation, and execution. |
|
|
63
|
-
| `tags` | `json` | No | Array of tags. |
|
|
64
|
-
|
|
65
|
-
Recommended indexes/search fields:
|
|
66
|
-
|
|
67
|
-
- `key`
|
|
68
|
-
- `moduleMetadata`
|
|
69
|
-
- `displayName`
|
|
70
|
-
- `namespace`
|
|
71
|
-
- `status`
|
|
72
|
-
- `definitionChecksum`
|
|
73
|
-
|
|
74
|
-
Recommended user key:
|
|
75
|
-
|
|
76
|
-
- `key`
|
|
77
|
-
|
|
78
|
-
Metadata persistence notes:
|
|
79
|
-
|
|
80
|
-
- `key` acts as the workflow user key and metadata identity.
|
|
81
|
-
- A TypeORM subscriber or workflow persistence service should synchronize workflow definition changes back to the owning module metadata JSON.
|
|
82
|
-
- Since UI-created workflows are also metadata-backed, separate `sourceType`, `seedSource`, `seedKey`, `seedVersion`, and `isSeeded` fields are not needed.
|
|
83
|
-
|
|
84
|
-
## Model: `workflowExecution`
|
|
85
|
-
|
|
86
|
-
Purpose: stores one run of a workflow definition.
|
|
87
|
-
|
|
88
|
-
Suggested table name: `wm_workflow_execution`
|
|
89
|
-
|
|
90
|
-
| Field | SolidX Type | Required | Notes |
|
|
91
|
-
| --- | --- | --- | --- |
|
|
92
|
-
| `executionIdentifier` | `computed` | Yes | System-generated readable execution id. Recommended provider: `SequenceNumComputedFieldProvider`. |
|
|
93
|
-
| `workflowDefinition` | `relation` | Yes | Many-to-one to `workflowDefinition`. |
|
|
94
|
-
| `workflowKey` | `shortText` | Yes | Snapshot of definition key for easier querying. |
|
|
95
|
-
| `workflowDisplayName` | `shortText` | No | Snapshot of display name. |
|
|
96
|
-
| `status` | `selectionStatic` | Yes | `created`, `running`, `success`, `failed`, `cancelled`. |
|
|
97
|
-
| `triggerType` | `selectionStatic` | Yes | `manual`, `schedule`, `webhook`, `flow`, `polling`, `event`. |
|
|
98
|
-
| `triggerExecution` | `relation` | No | Many-to-one to `workflowTriggerExecution`; nullable for manual runs. |
|
|
99
|
-
| `startedAt` | `datetime` | No | Execution start time. |
|
|
100
|
-
| `finishedAt` | `datetime` | No | Execution end time. |
|
|
101
|
-
| `durationMs` | `bigint` | No | Runtime duration. |
|
|
102
|
-
| `inputPayload` | `json` | No | Runtime inputs supplied to the execution. |
|
|
103
|
-
| `outputPayload` | `json` | No | Flow-level outputs. |
|
|
104
|
-
| `definitionVersion` | `shortText` | No | Version used by this execution. |
|
|
105
|
-
| `definitionChecksum` | `shortText` | No | Checksum used by this execution. |
|
|
106
|
-
| `definitionSnapshot` | `longText` | Yes | Exact workflow YAML used for this run. |
|
|
107
|
-
| `errorSummary` | `longText` | No | Human-readable failure summary. |
|
|
108
|
-
| `errorDetails` | `json` | No | Structured error payload. |
|
|
109
|
-
| `requestedByUserId` | `bigint` | No | User id or actor id if available. |
|
|
110
|
-
|
|
111
|
-
Recommended indexes/search fields:
|
|
112
|
-
|
|
113
|
-
- `executionIdentifier`
|
|
114
|
-
- `workflowKey`
|
|
115
|
-
- `status`
|
|
116
|
-
- `triggerType`
|
|
117
|
-
- `startedAt`
|
|
118
|
-
- `finishedAt`
|
|
119
|
-
- `definitionChecksum`
|
|
120
|
-
|
|
121
|
-
Recommended computed field configuration:
|
|
122
|
-
|
|
123
|
-
- `type`: `computed`
|
|
124
|
-
- `computedFieldValueProvider`: `SequenceNumComputedFieldProvider`
|
|
125
|
-
- `computedFieldValueProviderCtxt`: `{"sequenceName":"workflowExecution","mode":"counter"}`
|
|
126
|
-
- `computedFieldValueType`: `string`
|
|
127
|
-
- `computedFieldTriggerConfig`: after insert for `workflowExecution`
|
|
128
|
-
|
|
129
|
-
Recommended model sequence:
|
|
130
|
-
|
|
131
|
-
- `sequenceName`: `workflowExecution`
|
|
132
|
-
- `prefix`: `WFE`
|
|
133
|
-
- `separator`: `-`
|
|
134
|
-
- `padding`: `8`
|
|
135
|
-
- Example output: `WFE-00000001`
|
|
136
|
-
|
|
137
|
-
## Model: `workflowStepExecution`
|
|
138
|
-
|
|
139
|
-
Purpose: stores runtime state for one workflow node execution.
|
|
140
|
-
|
|
141
|
-
Suggested table name: `wm_workflow_step_execution`
|
|
142
|
-
|
|
143
|
-
| Field | SolidX Type | Required | Notes |
|
|
144
|
-
| --- | --- | --- | --- |
|
|
145
|
-
| `workflowExecution` | `relation` | Yes | Many-to-one to `workflowExecution`. |
|
|
146
|
-
| `parentStepExecution` | `relation` | No | Self many-to-one for nested/control execution. |
|
|
147
|
-
| `nodeId` | `shortText` | Yes | Node id from workflow YAML. |
|
|
148
|
-
| `nodeName` | `shortText` | No | Snapshot of node name. |
|
|
149
|
-
| `nodeKind` | `selectionStatic` | Yes | `task`, `control`, `subflow`. |
|
|
150
|
-
| `nodeType` | `shortText` | Yes | e.g. `http.request`, `if`. |
|
|
151
|
-
| `status` | `selectionStatic` | Yes | `pending`, `running`, `success`, `failed`, `skipped`. |
|
|
152
|
-
| `attemptNumber` | `int` | Yes | Defaults to 1. |
|
|
153
|
-
| `branchId` | `shortText` | No | For `parallel` branch context. |
|
|
154
|
-
| `iterationIndex` | `int` | No | For `forEach` context. |
|
|
155
|
-
| `startedAt` | `datetime` | No | Step start time. |
|
|
156
|
-
| `finishedAt` | `datetime` | No | Step end time. |
|
|
157
|
-
| `durationMs` | `bigint` | No | Step runtime duration. |
|
|
158
|
-
| `inputContext` | `json` | No | Resolved node input context. |
|
|
159
|
-
| `outputPayload` | `json` | No | Node outputs. |
|
|
160
|
-
| `errorSummary` | `longText` | No | Human-readable failure summary. |
|
|
161
|
-
| `errorDetails` | `json` | No | Structured error payload. |
|
|
162
|
-
|
|
163
|
-
Recommended indexes/search fields:
|
|
164
|
-
|
|
165
|
-
- `workflowExecution`
|
|
166
|
-
- `nodeId`
|
|
167
|
-
- `nodeType`
|
|
168
|
-
- `status`
|
|
169
|
-
- `startedAt`
|
|
170
|
-
|
|
171
|
-
## Model: `workflowExecutionLog`
|
|
172
|
-
|
|
173
|
-
Purpose: stores execution and step logs as queryable records.
|
|
174
|
-
|
|
175
|
-
Suggested table name: `wm_workflow_execution_log`
|
|
176
|
-
|
|
177
|
-
| Field | SolidX Type | Required | Notes |
|
|
178
|
-
| --- | --- | --- | --- |
|
|
179
|
-
| `workflowExecution` | `relation` | Yes | Many-to-one to `workflowExecution`. |
|
|
180
|
-
| `workflowStepExecution` | `relation` | No | Many-to-one to `workflowStepExecution`; nullable for execution-level logs. |
|
|
181
|
-
| `level` | `selectionStatic` | Yes | `debug`, `info`, `warn`, `error`. |
|
|
182
|
-
| `message` | `longText` | Yes | Log message. |
|
|
183
|
-
| `metadata` | `json` | No | Structured log metadata. |
|
|
184
|
-
| `loggedAt` | `datetime` | Yes | Timestamp of log event. |
|
|
185
|
-
|
|
186
|
-
Recommended indexes/search fields:
|
|
187
|
-
|
|
188
|
-
- `workflowExecution`
|
|
189
|
-
- `workflowStepExecution`
|
|
190
|
-
- `level`
|
|
191
|
-
- `loggedAt`
|
|
192
|
-
|
|
193
|
-
## Model: `workflowExecutionArtifact`
|
|
194
|
-
|
|
195
|
-
Purpose: stores references to files or large artifacts produced during execution.
|
|
196
|
-
|
|
197
|
-
Suggested table name: `wm_workflow_execution_artifact`
|
|
198
|
-
|
|
199
|
-
| Field | SolidX Type | Required | Notes |
|
|
200
|
-
| --- | --- | --- | --- |
|
|
201
|
-
| `workflowExecution` | `relation` | Yes | Many-to-one to `workflowExecution`. |
|
|
202
|
-
| `workflowStepExecution` | `relation` | No | Many-to-one to `workflowStepExecution`. |
|
|
203
|
-
| `artifactKey` | `shortText` | Yes | Stable artifact key within the execution. |
|
|
204
|
-
| `displayName` | `shortText` | No | Human-facing name. |
|
|
205
|
-
| `artifactType` | `selectionStatic` | Yes | `file`, `json`, `text`, `binary`, `uri`. |
|
|
206
|
-
| `media` | `mediaSingle` | No | SolidX media attachment for stored file artifacts. |
|
|
207
|
-
| `uri` | `longText` | No | External artifact URI if not stored in media. |
|
|
208
|
-
| `contentType` | `shortText` | No | MIME type if known. |
|
|
209
|
-
| `sizeBytes` | `bigint` | No | Artifact size. |
|
|
210
|
-
| `metadata` | `json` | No | Structured artifact metadata. |
|
|
211
|
-
| `createdAtRuntime` | `datetime` | No | Runtime artifact creation timestamp. |
|
|
212
|
-
|
|
213
|
-
Recommended indexes/search fields:
|
|
214
|
-
|
|
215
|
-
- `workflowExecution`
|
|
216
|
-
- `workflowStepExecution`
|
|
217
|
-
- `artifactKey`
|
|
218
|
-
- `artifactType`
|
|
219
|
-
|
|
220
|
-
## Model: `workflowTriggerExecution`
|
|
221
|
-
|
|
222
|
-
Purpose: records trigger events that started or attempted to start workflow executions.
|
|
223
|
-
|
|
224
|
-
Suggested table name: `wm_workflow_trigger_execution`
|
|
225
|
-
|
|
226
|
-
| Field | SolidX Type | Required | Notes |
|
|
227
|
-
| --- | --- | --- | --- |
|
|
228
|
-
| `workflowDefinition` | `relation` | Yes | Many-to-one to `workflowDefinition`. |
|
|
229
|
-
| `triggerId` | `shortText` | Yes | Trigger id from workflow YAML. |
|
|
230
|
-
| `triggerType` | `selectionStatic` | Yes | `schedule`, `webhook`, `flow`, `polling`, `event`. |
|
|
231
|
-
| `status` | `selectionStatic` | Yes | `received`, `accepted`, `ignored`, `failed`. |
|
|
232
|
-
| `firedAt` | `datetime` | Yes | Trigger fire time. |
|
|
233
|
-
| `inputPayload` | `json` | No | Inputs supplied by trigger. |
|
|
234
|
-
| `triggerPayload` | `json` | No | Raw trigger/event payload. |
|
|
235
|
-
| `workflowExecution` | `relation` | No | Many-to-one to `workflowExecution`; nullable if ignored/failed before execution creation. |
|
|
236
|
-
| `errorSummary` | `longText` | No | Human-readable failure summary. |
|
|
237
|
-
| `errorDetails` | `json` | No | Structured error payload. |
|
|
238
|
-
|
|
239
|
-
Recommended indexes/search fields:
|
|
240
|
-
|
|
241
|
-
- `workflowDefinition`
|
|
242
|
-
- `triggerId`
|
|
243
|
-
- `triggerType`
|
|
244
|
-
- `status`
|
|
245
|
-
- `firedAt`
|
|
246
|
-
|
|
247
|
-
## Deferred Model: `workflowBlueprint`
|
|
248
|
-
|
|
249
|
-
`WorkflowBlueprint` is intentionally ignored for now.
|
|
250
|
-
|
|
251
|
-
When reintroduced, it should likely include:
|
|
252
|
-
|
|
253
|
-
- `key`
|
|
254
|
-
- `displayName`
|
|
255
|
-
- `description`
|
|
256
|
-
- `tags`
|
|
257
|
-
- `definitionYaml`
|
|
258
|
-
- `source`
|
|
259
|
-
- `sourceVersion`
|
|
260
|
-
|
|
261
|
-
## Relation Summary
|
|
262
|
-
|
|
263
|
-
- `workflowDefinition` has many `workflowExecution`
|
|
264
|
-
- `workflowDefinition` has many `workflowTriggerExecution`
|
|
265
|
-
- `moduleMetadata` has many `workflowDefinition`
|
|
266
|
-
- `workflowExecution` has many `workflowStepExecution`
|
|
267
|
-
- `workflowExecution` has many `workflowExecutionLog`
|
|
268
|
-
- `workflowExecution` has many `workflowExecutionArtifact`
|
|
269
|
-
- `workflowTriggerExecution` may link to one created `workflowExecution`
|
|
270
|
-
- `workflowStepExecution` may have many child `workflowStepExecution` records via `parentStepExecution`
|
|
271
|
-
- `workflowStepExecution` has many `workflowExecutionLog`
|
|
272
|
-
- `workflowStepExecution` has many `workflowExecutionArtifact`
|
|
273
|
-
|
|
274
|
-
## MCP Modeling Readiness Checklist
|
|
275
|
-
|
|
276
|
-
Before calling the SolidX model MCP tools, confirm:
|
|
277
|
-
|
|
278
|
-
- Use `workflow-builder` as the module key.
|
|
279
|
-
- Use the six active models above.
|
|
280
|
-
- Use `longText` for `definitionYaml` and `definitionSnapshot`; parse them as YAML in the workflow services to keep the workflow engine DB agnostic.
|
|
281
|
-
- Use `selectionStatic` for status/type enum fields.
|
|
282
|
-
- Use `relation` fields for cross-model links.
|
|
283
|
-
- Add a many-to-one relation from `workflowDefinition` to SolidX `moduleMetadata`.
|
|
284
|
-
- Keep `WorkflowBlueprint` deferred.
|