feat(workflow): MDL workflow support - CREATE/DROP/DESCRIBE + BSON round-trip#20
Open
engalar wants to merge 5 commits intomendixlabs:mainfrom
Open
feat(workflow): MDL workflow support - CREATE/DROP/DESCRIBE + BSON round-trip#20engalar wants to merge 5 commits intomendixlabs:mainfrom
engalar wants to merge 5 commits intomendixlabs:mainfrom
Conversation
…ulated attributes - Add CREATE/DROP/DESCRIBE WORKFLOW grammar with all activity types: USER TASK, CALL MICROFLOW, CALL WORKFLOW, DECISION, PARALLEL SPLIT, JUMP TO, WAIT FOR TIMER, WAIT FOR NOTIFICATION, ANNOTATION, END - Add GRANT/REVOKE EXECUTE ON WORKFLOW security grammar - Add CALCULATED BY <microflow> attribute syntax - Add ENTITY clause for CREATE DEMO USER - Regenerate ANTLR4 parser (MDLLexer.interp, mdl_parser.go, etc.)
…with RawDoc - Add writer_workflow.go: serialize all workflow activity types to BSON - Add parser_workflow.go: parse all workflow $Types with table-driven registry - Add parser_unknown.go: UnknownElement fallback using bson.D (preserves ordering) - Fix UnknownElement.RawDoc field type (bson.D instead of map[string]any) for round-trip fidelity - Fix writer_microflow.go: handle LoopSource as interface (IterableList/WhileLoopCondition) - Add CALCULATED attribute support in domain model writer
…mo user entity - Add SHOW/DESCRIBE WORKFLOW with full MDL-formatted output - Add CREATE/DROP WORKFLOW executing AST against BSON writer - Add GRANT/REVOKE EXECUTE ON WORKFLOW for security access control - Add CALCULATED BY <microflow> support in CREATE/ALTER ENTITY - Add ENTITY clause support in CREATE DEMO USER - Add workflow entries to catalog (builder_modules, builder_strings) - Extend LSP completions for workflow keywords - Update help topics (entity, security, workflow) - Fix DESCRIBE WORKFLOW round-trip: USER TASK due date, boundary events, multi-user task, CALL MICROFLOW WITH parameter mappings
- Add workflow_parse_test.go: parse WorkflowBaseline BSON fixtures - Add workflow_write_test.go: write workflow BSON and verify structure - Add BSON fixtures: WorkflowBaseline.Workflow.bson, Sub_Workflow.bson - Add visitor_workflow_test.go: test all workflow activity AST visitors - Add roundtrip_workflow_test.go: CREATE WORKFLOW → DESCRIBE WORKFLOW comparison - Fix expected values: TRUE/FALSE capitalization, RETURNS keyword
…urity - MDL_QUICK_REFERENCE.md: add Workflows section with all activity types - MDL_FEATURE_MATRIX.md: mark workflow SHOW/DESCRIBE/CREATE/DROP/GRANT/REVOKE - docs/language-reference.md: add CALCULATED attribute syntax - Skills: docker-workflow (empty project, port conflicts, runtime copying) - Skills: generate-domain-model (CALCULATED attribute docs) - Skills: manage-security (ENTITY clause for CREATE DEMO USER) - CLAUDE.md: update project status for implemented features
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CREATE/DROP/DESCRIBE WORKFLOW,GRANT/REVOKE EXECUTE ON WORKFLOW,CALCULATED BYattribute, andENTITYclause forCREATE DEMO USERUnknownElementto usebson.Dfor ordering-preserving round-trips; fixLoopSourceinterface handling in microflow writerSHOW/DESCRIBE/CREATE/DROP WORKFLOWand workflow security commands; add calculated attribute and demo user entity support; extend catalog with workflow entriesMDL_QUICK_REFERENCE.md,MDL_FEATURE_MATRIX.md, language reference, and skill filesWorkflow Activity Types Supported
USER TASK,CALL MICROFLOW(withWITHparameter mappings),CALL WORKFLOW,DECISION,PARALLEL SPLIT,JUMP TO,WAIT FOR TIMER,WAIT FOR NOTIFICATION,ANNOTATION,ENDBoundary events:
ON ERROR,ON TIMEOUTTest Plan
make testpasses (all 7 test packages green)SHOW WORKFLOWSlists workflows in a project with existing workflowsDESCRIBE WORKFLOW Module.Nameproduces valid MDL outputCREATE WORKFLOW ... BEGIN ... END WORKFLOWwrites to MPR without CE errors (mx check)DROP WORKFLOW Module.Nameremoves workflow from MPRGRANT/REVOKE EXECUTE ON WORKFLOWupdates access rulesmx checkclean