Skip to content

Commit f68c9f8

Browse files
akoclaude
andcommitted
Fix doctype scripts: entity/microflow already exists after mpk import
- 13-business-events: Use CREATE OR MODIFY for PublishedBusinessEvent stub since the BusinessEvents mpk import already creates this entity - 14-project-settings: Remove duplicate CREATE MICROFLOW from rebase merge conflict Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent aab9f22 commit f68c9f8

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

mdl-examples/doctype-tests/13-business-events-examples.mdl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
CREATE MODULE BeTest;
1616

1717
-- MARK: Prerequisites
18-
-- Create stub BusinessEvents module with the parent entity required for EXTENDS.
19-
-- In production, this comes from the Business Events marketplace module.
18+
-- Ensure BusinessEvents module exists with the parent entity required for EXTENDS.
19+
-- When the marketplace module is imported, this is a no-op (CREATE OR MODIFY).
20+
-- When running without the module, this creates the minimum stub.
2021
CREATE MODULE BusinessEvents;
2122
@Position(100,100)
22-
CREATE PERSISTENT ENTITY BusinessEvents.PublishedBusinessEvent (
23+
CREATE OR MODIFY PERSISTENT ENTITY BusinessEvents.PublishedBusinessEvent (
2324
EventId: Long
2425
);
2526
CREATE CONSTANT BusinessEvents.ServerUrl

mdl-examples/doctype-tests/14-project-settings-examples.mdl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@
1515
--
1616
-- ============================================================================
1717

18-
-- MARK: Prerequisites
19-
20-
-- Create referenced microflow and constant so settings don't produce CE1613
21-
CREATE MODULE MyModule;
22-
CREATE MICROFLOW MyModule.ASU_Startup () RETURNS Boolean BEGIN RETURN true; END;
23-
2418
-- MARK: Model Settings
2519

2620
-- ============================================================================

0 commit comments

Comments
 (0)