<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marlies Quaadgras on Medium]]></title>
        <description><![CDATA[Stories by Marlies Quaadgras on Medium]]></description>
        <link>https://medium.com/@marlies.quaadgras?source=rss-00c1c0669ed0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Marlies Quaadgras on Medium</title>
            <link>https://medium.com/@marlies.quaadgras?source=rss-00c1c0669ed0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:05:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marlies.quaadgras/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Experiences with the OutSystems MCP Server and Mentor in ODC]]></title>
            <link>https://medium.com/@marlies.quaadgras/experiences-with-the-outsystems-mcp-server-and-mentor-in-odc-282ae7ca623f?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/282ae7ca623f</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[outsystems-odc]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[agenticsystemsengineering]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 11:23:04 GMT</pubDate>
            <atom:updated>2026-10-23T11:23:04.261Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cwEfR9UVjGJJEs3m33kqCA.png" /></figure><p>During early-access evaluation, me and my team tested the OutSystems MCP server together with Mentor in ODC. Our goal was to understand how it can support experienced OutSystems developers, where it already adds value and where manual control is still necessary. In the last four weeks, we were lucky to use the MCP server on a real re-platforming project.</p><p><strong>MCP (Model Context Protocol)</strong> is a standard communication protocol that enables AI assistants to securely connect with external tools and applications. In our setup, the MCP server provides the connection between Claude in the Transfer Software Factory and Mentor Studio inside ODC, allowing natural-language instructions from Claude to be executed and analyzed within the ODC environment.</p><h3>Starting with generated components</h3><p>We started by using the Transfer Software Factory to create screens and Server Actions elements through the MCP server.</p><p>This demonstrated that application components could be generated through natural-language instructions. However, making and refining changes through the Factory proved time-consuming. For smaller changes, working directly in ODC Studio was often faster.</p><p>We therefore adjusted our approach. We made the required changes manually in ODC Studio and then used the MCP server, to inspect and document the implementation. This proved to be a more practical combination. It also showed that AI-assisted development does not always mean generating complete functionality. In some situations, using AI to analyze and document manually created work is more efficient.</p><h3>Correctness of generated Server Actions</h3><p>Although the readability and layout of generated Server Actions still require attention, the generated logic itself was a positive experience.</p><p>When providing a clear description of the required functionality, the MCP server was able to generate Server Actions that were functionally correct. The generated logic followed the requested behavior and produced a valid starting point for further development.</p><p>This demonstrates the potential of AI-assisted development in OutSystems. The MCP server can significantly speed up the first implementation step by translating functional requirements into OutSystems logic. For experienced developers, this can reduce the amount of manual work needed to create the initial version of an action.</p><p>The combination of correct generated functionality and experienced developer review provides the most value: the MCP server accelerates development, while the developer ensures the final quality of the solution.</p><p>But there were also some setbacks.</p><h3>Quality and readability of generated logic</h3><p>The most visible issue during our evaluation was the quality and readability of generated Server Actions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*gLvmler4AytXRz7PSCXnMg.png" /></figure><p>For small actions with only a few nodes, the result was usually manageable. For larger actions, the generated layout often became difficult to understand. Nodes could overlap; connectors crossed each other and branches pointed in several directions.</p><p>It should be added that Mentor Studio, so inside the IDE, sometimes also creates invalid actions that are not even publishable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*r0knJSuWVzF17Hckr28Xlg.png" /></figure><p>In OutSystems, visual layout is part of the quality of the implementation. A Server Action should make the main flow immediately clear. Conditions, branches and exception handling should be positioned in a way that another developer can understand without tracing every connector.</p><p>When generated logic has to be reorganized manually, part of the expected productivity benefit disappears. It also affects reviews, troubleshooting and future maintenance.</p><h3>Naming conventions</h3><p>Another quality issue concerns naming conventions.</p><p>Generated variables, actions and other elements did not consistently follow the naming conventions commonly used in OutSystems best practices. Some names were too generic or did not clearly communicate the purpose of the element.</p><p>Example: when an aggregate is manually created to get a Order record with some lookup entities based on the input OrderId, in ODC studio, the aggregate is named GetOrderById. However, via the MCP server, such an aggregate was named GetOrderData.</p><p>Also the input variable OrderId did not have the type OrderId, but LongInteger, and in the aggregate it was converted via LongIntegerToIdentifier().</p><p>For experienced OutSystems teams, naming conventions are important for readability, maintenance, impact analysis and onboarding. A developer should be able to understand the role of an element from its name without first inspecting all its usages.</p><p>When generated names are unclear, developers have to review and rename the elements manually, and if necessary, give it another type. There is also a risk that inconsistent names remain in the application when the generated result is accepted too quickly.</p><p>It would be valuable if the MCP server could apply standard Best Practices OutSystems naming conventions by default or allow organizations to provide their own development rules and architectural guidelines.</p><h3>Understanding the user interface</h3><p>The MCP server also had difficulties interpreting parts of the user interface.</p><p>Simple screens were generally easier to analyze, but more complex layouts, reusable components and conditional behavior were not always understood correctly.</p><p>For this reason, generated UI changes still require careful review. Now, they should be treated as a starting point rather than as completed functionality. In practice we asked in Claude to generate all screen with prompt and fields below each other, and let an UI developer create the correct screens.</p><h3>Where it currently adds value</h3><p>After four weeks, the strongest use cases were not fully autonomous development tasks.</p><p>The MCP server was most useful for:</p><p>· implementing functionality that could cost days.</p><p>· generating a first version of relatively small components;</p><p>· inspecting existing screens and logic;</p><p>· documenting manually created changes;</p><p>· supporting repetitive analysis;</p><p>· providing a starting point that an experienced developer could refine.</p><p>The quality of the result still depends heavily on developer review. OutSystems knowledge remains essential to recognize unreadable logic, unclear naming and incorrect interpretations of the UI.</p><h3>Conclusion</h3><p>Our experience with the OutSystems MCP server and Mentor in ODC is very promising. It is an important first step towards AI-assisted development and shows how AI can support developers with generation, analysis, documentation and repetitive tasks.</p><p>However, the MCP server and Mentor should not be seen as a replacement for OutSystems expertise or to enable citizen developers to independently build and maintain enterprise applications. The generated implementation still requires careful review by an experienced OutSystems developer. Quality, maintainability, architecture and adherence to best practices remain the responsibility of the developer.</p><p>Especially for generated Server Actions, UI changes and naming conventions, human validation is essential. Generated logic can be a valuable starting point, but it should be reviewed, improved and aligned with the standards of the application before it becomes part of a production solution.</p><p>For now, the best approach is to combine the power of AI assistance with experienced OutSystems development skills. The MCP server and Mentor can accelerate development, but the expertise of professional developers remains crucial to ensure reliable, maintainable and high-quality enterprise applications</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=282ae7ca623f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Working with Mentor in ODC]]></title>
            <link>https://medium.com/@marlies.quaadgras/working-with-mentor-in-odc-6c42b7702d76?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c42b7702d76</guid>
            <category><![CDATA[mentorstudio]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[outsystems-mentor]]></category>
            <category><![CDATA[aiassistentdevelopment]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Tue, 18 Aug 2026 07:59:13 GMT</pubDate>
            <atom:updated>2026-08-18T07:59:13.978Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*1ivHefiwytt1nj8YV8QLOw.png" /></figure><h3>Working with Mentor in ODC: Lessons from Practice</h3><p>Mentor Studio and Mentor Web have been generally available in ODC since April 2026 and is becoming an increasingly useful useful <strong>AI-assisted development tool</strong> within the ODC development experience. This article focuses specifically on <strong>Mentor Studio or also called Mentor in the IDE</strong>, (the popup or side panel inside ODC Studio, as shown in the screendump below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qo8GDic22WCcGSIlRQwbEA.png" /></figure><p>Mentor is already capable of creating and modifying significant parts of an application, but getting good results requires understanding how it works and how to communicate the desired outcome clearly.</p><p>This blog is based on my practical experience using it for ODC development.</p><h3>Use Mentor for patterns and repetitive work</h3><p>One of the areas where Mentor is particularly effective is creating common OutSystems patterns quickly. Static entities, popup Web Blocks, lists, and screens looking like on existing screens can be created in a fraction of the time it would take to build everything from scratch.</p><p>Another useful scenario is resolving large numbers of errors after a structural change. For example, changing an entity can result in more than 100 errors across an application. Having Mentor analyse and resolve these errors can save considerable manual effort.</p><p>The important point is that Mentor is not necessarily about doing something that a developer cannot do. Its value is often in accelerating work that the developer already knows how to perform.</p><h3>Good prompting makes a difference</h3><p>The quality of the result depends strongly on the quality of the instruction. When modifying an existing screen, I find it useful to structure the prompt by first identifying the <strong>screen, block, panel or container</strong>, followed by what is currently working and finally what should change.</p><p>I also recommend <strong>always asking Mentor for a plan first</strong>. This makes it possible to review the proposed approach before changes are made and provides an opportunity to correct any misunderstanding of the requirement.</p><p>As Mentor continues to improve its understanding of the application context, prompting will become easier, but having a clear understanding of the desired result remains important.</p><h3>Mentor does not always need to finish the job</h3><p>A very effective approach is to combine Mentor with manual development. Sometimes it is faster to let Mentor create the initial implementation and then make the precise adjustments manually.</p><p>For example, Mentor can create a list and its Aggregate, after which the developer can place the required attributes exactly where they belong. Similarly, Mentor can create a button while the developer manually adds the IF-logic and the corresponding disabled state button.</p><p>This approach makes Mentor a starting point rather than expecting it to produce the final implementation every time.</p><h3>Where manual development can still be better</h3><p>Mentor is not always faster than manual development, particularly for small changes. The time required to formulate the request, let Mentor create a plan, and review the result can exceed the time needed to make a simple change directly.</p><p>There are also cases where the generated solution requires cleanup. When modifying an existing screen, Mentor may add new functionality below the existing implementation rather than reusing an existing Aggregate. Popups can become too large and require manual layout adjustments. Generated Server Actions and Service Actions are not always structured in the most readable way, see an example below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*JbCdzv9ggYBg2wJmXoAheA.png" /></figure><p>These examples highlight an important distinction: <strong>a technically correct result is not necessarily a well-structured implementation</strong>. The developer still needs to review the generated solution and apply normal architectural and development standards.</p><h3>Conclusion</h3><p>Mentor is already a useful development tool for ODC, particularly for repetitive work, common patterns, large-scale error correction, and creating a first implementation quickly. However, its effectiveness depends on understanding how to work with it, writing clear prompts, reviewing its plans, and knowing when manual development is the better option.</p><p>The most effective approach is therefore not to choose between Mentor and manual development, but to combine them. Let Mentor handle work where it provides clear value, and use your own OutSystems knowledge to guide, correct and refine the result.</p><p>Mentor is also evolving rapidly. The capabilities and quality of the generated solutions continue to improve, which makes learning how to work with it now worthwhile. The developers who become comfortable collaborating with these AI-assisted development tools will be better prepared as they become an increasingly important part of the OutSystems development experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c42b7702d76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using “Find Usages in All Modules” Effectively in OutSystems]]></title>
            <link>https://medium.com/@marlies.quaadgras/using-find-usages-in-all-modules-effectively-in-outsystems-o11-cf380ebe445f?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf380ebe445f</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 12:14:29 GMT</pubDate>
            <atom:updated>2026-01-02T12:23:11.351Z</atom:updated>
            <content:encoded><![CDATA[<p>Many large OutSystems O11 applications are still actively used and maintained, often within a DevOps operating model. In these environments, developers frequently work on applications originally built by other teams. As a result, refactoring and impact analysis are common activities.</p><p>Entities are typically defined in a Core Services (CS) module and reused across multiple Business Logic (BL) and End User and other modules.</p><p>During maintenance or refactoring, the <strong>“Find Usages in All Modules”</strong> feature is an essential tool for performing impact analysis — especially when determining where an Entity Attribute is being set or updated.</p><p>However, not all implementations are detected by this functionality.</p><p>This article demonstrates how different server action implementation patterns influence whether attribute usage is discovered by <strong>Find Usages</strong>, and how following OutSystems best practices improves maintainability and traceability.</p><h3><strong>Example Setup</strong></h3><p>For this example, the Order and Orderline Entities are defined in the Order_CS module, where the public CRUD server actions are generated.</p><p>The Orderline Entity contains a PriorityId attribute. An Orderline may receive a priority during creation, but the priority can also be adjusted later as part of the order processing flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/1*UGAeNbXJhh9X6MSM2C67Iw.png" /></figure><p>Assume there is an issue with an Orderline that has an unexpected Low priority. The developer needs to determine where and when the PriorityId was assigned.</p><p>The first step is to use <strong>“Find Usages in All Modules”</strong> on the PriorityId attribute.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*iJV8JS-qOOFqEpXguCnfSg.png" /></figure><p><strong>Priority Logic in the Business Logic Layer</strong></p><p>In the Order_BL module, in this example, three server actions are related to priority handling:</p><ul><li><strong>GetPriority</strong> — determines the priority for an Orderline and returns a PriorityId</li><li><strong>UpdateOrderLinePriority (Assign-based)</strong></li><li><strong>UpdateOrderLinePriority (Expanded-record-based)</strong></li></ul><p>Both update server actions perform the same functional steps:</p><ol><li>Determine the priority</li><li>Update the Orderline record</li></ol><p>In real-world applications, this logic would typically be consolidated into a single server action. For this example, the separation is intentional to highlight the impact of different implementation approaches.</p><h3><strong>Implementation Patterns</strong></h3><p><strong>Pattern 1: Assign Before Update (Best Practice)</strong></p><p>In the first server action, the Orderline record is populated using a dedicated <strong>Assign</strong>. The PriorityId attribute is explicitly set using the value returned by GetPriority, after which the record is passed to the Update server action.</p><p>This approach aligns with OutSystems best practices for:</p><ul><li>Readability</li><li>Debugging</li><li>Impact analysis</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8x_OowZe9azKOwoQLprpxw.png" /></figure><p><strong>Pattern 2: Expanded Record Parameter</strong></p><p>In the second server action, the record parameter of the OrderlineUpdate server action is expanded.</p><p>All attribute values, including PriorityId, are passed individually, with PriorityId being set directly from GetPriority.</p><p>Although functionally correct, this pattern has important drawbacks from a maintainability and traceability perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*izj95I1ZrNP3D_pJbO96PA.png" /></figure><h3><strong>Impact on “Find Usages in All Modules”</strong></h3><p>When searching for usages of the PriorityId attribute:</p><p>✅ The <strong>Assign-based</strong> implementation is found</p><p>❌ The <strong>expanded record parameter</strong> implementation is <em>not</em> found</p><p>This means that attribute assignments performed via expanded record parameters are invisible to <strong>Find Usages</strong>, reducing the reliability of impact analysis.</p><h3><strong>OutSystems Best-Practice Conclusion</strong></h3><p>From a maintainability and architecture standpoint, attributes should be assigned explicitly using Assign nodes, rather than being set implicitly through expanded record parameters.</p><p>This approach is recommended because it:</p><ul><li>Ensures attribute assignments are detected by “Find Usages in All Modules”</li><li>Improves readability by clearly showing which attributes are being set</li><li>Simplifies debugging by allowing inspection of the fully populated record before persistence</li><li>Enables inline documentation using comments next to Assign nodes</li><li>Supports clearer separation of responsibilities within server actions</li></ul><p>In scenarios where a record does not yet exist and all attributes are provided via an expanded parameter; the recommended approach is to:</p><ol><li>Create a local variable of the record type</li><li>Populate it using Assign nodes</li><li>Pass the local variable to the Update server action</li></ol><p>Although this introduces a minimal memory overhead, it significantly improves code clarity, traceability, and long-term maintainability — key principles in OutSystems architecture best practices.</p><p>The same principle applies to <strong>OutSystems Developer Cloud (ODC)</strong>: although the runtime and platform architecture differ from O11. Implicit attribute assignments, like those performed via expanded record parameters, remain harder to detect. Therefore, using explicit Assigns continues to be the recommended approach in ODC applications as well.</p><h3><strong>Why This Matters in Large Factories</strong></h3><p>In large OutSystems factories, applications are typically developed and maintained by <strong>multiple teams over long periods of time</strong>. Code ownership changes, business rules evolve, and refactoring is often performed by developers who were not involved in the original implementation.</p><p>In this context, platform-supported impact analysis is not optional — it is essential.</p><p><strong>1. Safe Refactoring at Scale</strong></p><p>Large factories often manage:</p><ul><li>Hundreds of modules</li><li>Shared Core Services</li><li>Highly reused Entities and Attributes</li></ul><p>When a developer changes an Entity Attribute or business rule, they rely on <strong>“Find Usages in All Modules”</strong> to understand the full impact of that change.</p><p>If attribute assignments are hidden inside expanded record parameters, those usages are invisible, increasing the risk of:</p><ul><li>Missed dependencies</li><li>Regression defects</li><li>Unexpected production issues</li></ul><p>Explicit Assigns ensure that the platform can correctly support safe refactoring.</p><p><strong>2. Team Scalability and Knowledge Transfer</strong></p><p>In factory setups, teams scale by <strong>standardization</strong>, not by individual knowledge.</p><p>Explicit Assigns:</p><ul><li>Make business rules readable without deep code exploration</li><li>Reduce onboarding time for new developers</li><li>Allow reviewers and architects to understand intent quickly</li></ul><p>Implicit assignments via expanded parameters require mental reconstruction of logic, which does not scale well across teams or time.</p><p><strong>3. Architecture Governance and Code Reviews</strong></p><p>Large OutSystems factories typically enforce:</p><ul><li>Architecture principles</li><li>Coding standards</li><li>Automated or manual code reviews</li></ul><p>When Assigns are used:</p><ul><li>Architecture rules are easier to validate</li><li>Business logic is clearly separated from persistence</li><li>Code reviews focus on intent rather than interpretation</li></ul><p>Expanded record parameters obscure attribute-level logic, making governance more difficult and error-prone.</p><p><strong>4. Debugging and Production Support</strong></p><p>In production support scenarios, speed and clarity are critical.</p><p>With explicit Assigns:</p><ul><li>The full record state is visible during debugging</li><li>Breakpoints show meaningful intermediate values</li><li>Root cause analysis is faster and more reliable</li></ul><p>In contrast, expanded record parameters provide less visibility into how and when individual attributes were set, complicating troubleshooting under time pressure.</p><p><strong>5. Long-Term Maintainability Over Micro-Optimizations</strong></p><p>Large factories optimize for:</p><ul><li>Stability</li><li>Predictability</li><li>Maintainability</li></ul><p>Not for:</p><ul><li>Minimal Assign nodes</li><li>Marginal memory savings</li></ul><p>Although using expanded record parameters may appear more concise, the long-term cost in maintainability and traceability outweighs the negligible technical benefit.</p><h3><strong>If the platform cannot see it, the factory cannot safely change it.</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf380ebe445f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to implement Audit in a database]]></title>
            <link>https://medium.com/@marlies.quaadgras/how-to-implement-audit-in-a-database-63f026717dc7?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/63f026717dc7</guid>
            <category><![CDATA[database-design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Fri, 30 May 2025 12:04:39 GMT</pubDate>
            <atom:updated>2025-05-30T12:04:39.003Z</atom:updated>
            <content:encoded><![CDATA[<p>When designing and developing a large system, it is essential to consider and implement audit functionality. This means tracking when data is created, updated, deleted, or even accessed, and by which user.</p><p>Audit data is crucial for privacy compliance and regulatory reasons, but it also helps identify inconsistencies and inaccuracies. Additionally, it is invaluable for debugging and troubleshooting.</p><p>In this blog 3 possible implementations and their pros en cons are evaluated</p><p>The implementation of audit functionality is the same in OutSystems 11 and OutSystems Developer Cloud (ODC). This blog will use ODC examples.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*mPJMoLgJmYPrufpuLuZUoA.png" /></figure><p><strong>Defining an Audit Strategy</strong></p><p>At the start of a project, it is important to define a proper approach for auditing data. Ideally, core entities that change frequently (such as Orders) should have audit functionality. On the other hand, master data entities (such as Countries or ProductTypes) may not require auditing if they rarely change.</p><p>Implementing audit functionality from the beginning of a project is also beneficial during development, as it helps in debugging and trouble shooting. Implementing it in a later stage can be done, but is less efficient. .</p><p>It is recommended to use a consistent audit approach across the system. Mixing multiple audit implementations can lead to confusion and complexity.</p><p>For very small applications that will only be used for a few months, audit functionality might not be necessary. However, in most cases, auditing is required.</p><p><strong>1 Audit Within the Same Table</strong></p><p>In this approach, audit-related attributes are added directly to the core entity. These attributes include:</p><ul><li>CreatedDate</li><li>CreatedBy</li><li>UpdatedDate</li><li>UpdatedBy</li><li>IsActive</li></ul><p>Don’t use the userid for CreatedBy and UpdatedBy, but the Username. Otherwise users can not be deleted.</p><p>How It Works:</p><p>· When a record is created, CreatedDate and CreatedBy are set.</p><p>· When a record is updated, UpdatedDate and UpdatedBy are updated.</p><p>· When a record is deleted, UpdatedDate and UpdatedBy are updated, and IsActive is set to False. In this situation, a soft-delete is created. The record stays in the database, but must be excluded in every aggregate. Be careful with using soft deletes, because they have performance consequences. Unique keys are not reusable.</p><p>Pro’s</p><p>· No need for additional tables — everything is stored in the same entity. There will be less AO’s</p><p>Cons</p><p>· Only the last update is logged (no history of previous changes).</p><p>· It is not possible to track which specific attributes were modified.</p><p>· If soft deletes are allowed, all aggregates and queries must check IsActive = True. (In ODC, this is mostly handled automatically.)</p><p><strong>2 Audit in a Separate Table, Logging All Attributes</strong></p><p>This method involves creating a separate audit entity that mirrors the core entity. The audit entity is named with an _Audit suffix. For example, alongside the Order entity, there will be an Order_Audit entity. Foreign keys in the _Audit entity are removed and replace by plain long-integers.</p><p>Additional attributes in the audit entity:</p><ul><li>OriginalID (to reference the core record)</li><li>Action (Create, Update, Delete)</li><li>Username</li><li>DateTime</li></ul><p>How It Works:</p><ul><li>Each time a record is created, updated, or deleted, a new entry is added to the audit table.</li><li>The audit entry contains all attribute values, along with the action type, username, and timestamp.</li><li>This can be implemented within the entity’s CRUD actions, avoiding the need for manual logging in multiple places.</li></ul><p>Handling Foreign Keys:</p><p>When an attribute in the core entity is a foreign key, a decision must be made. Storing the ID is an option, but if the referenced record is deleted, the ID becomes meaningless. In such cases, storing an alternate key (such as a OrderNumber instead of OrderId) is preferable.</p><p>Pro’s</p><p>· The core entity remains focused on business data, while audit logs are kept separately. Possible the audit can be made accessible only for the complianceteam.</p><p>· Every change is logged, making it possible to see exactly who changed what and when.</p><p>· Deleted records can be hard-deleted without affecting audit logs.</p><p>· Queries can be performed on the audit data.</p><p>Con’s</p><p>· Requires an additional table, the AO’s will rise.</p><p>· Audit tables can grow large, requiring periodic cleanup.</p><p>· Foreign keys need careful handling to ensure meaningful audit data</p><p><strong>3 Audit in a Separate Table Using JSON</strong></p><p>This approach is similar to option 2 but stores the entire record as a JSON structure instead of individual attributes.</p><p>The audit entity has the following fields:</p><ul><li>OriginalID</li><li>Action</li><li>Username</li><li>DateTime</li><li>Data (a serialized JSON representation of the record)</li><li>A reference to a static entity which defines the original entity (if more entities are audited in 1 audit entity)</li></ul><p>How it works:</p><p>· Each time a record is created, updated, or deleted, a new entry is added to the audit table.</p><p>· The entire record is serialized and stored as a JSON object.</p><p>· The implementation is done in the CRUD actions, similar to option 2.</p><p>Pro’s</p><p>· Keeps audit logs separate from the core entity.</p><p>· New attributes in the core entity do not require changes to the audit entity.</p><p>· Deleted records can be hard-deleted without affecting audit data.</p><p>· JSON comparison tools (like JsonCompare) can be used to detect differences between versions.</p><p>· Easier to create screens for displaying audit data compared to option 2.</p><p>Con’s</p><p>· Requires an additional table. To reduce the number of tables, multiple entities with infrequent changes can be audited in a single audit table with an entity identifier, so in that case there will be less rise in the number of AO’s</p><p>· Audit tables can grow large, requiring periodic cleanup.</p><p>· Querying specific changes is difficult since the data is stored in JSON format.</p><p><strong>Implementation best practices</strong></p><p>Audit functionality should be implemented within the CRUD actions of an entity.</p><p>Performance:</p><p>· For a better performance, when selecting form audit entity (option 2 and 3) it is the best practice to create an index on the OriginalID and the date.</p><p>Best Practices in OutSystems:</p><ul><li>In OutSystems 11, it was common to set entities as “Expose Read-Only” and use public CRUD server actions for Create, Update, and Delete.</li><li>In ODC, updates can be done directly on the entity, but it is still recommended to use CRUD server actions. This allows for centralized audit logging and other enhancements, such as automatically setting default attribute values.</li><li>Both O11 and ODC have the option to easily create the CRUD actions for an entity.</li></ul><p>Handling Record Deletions:</p><p>In both JSON-based and attribute-based audit logging (options 2 and 3), the OriginalID of the record is stored. However, if the core entity allows hard deletes, the ID may become meaningless.</p><p>A better approach is to store the OriginalAlternateKey instead of the ID. This ensures that audit data remains meaningful even if the original record is deleted, such as a OrderNumber instead of OrderId.</p><p><strong>Conclusion</strong></p><p>Audit functionality is an essential part of database design, helping with compliance, debugging, and data integrity. There are multiple ways to implement auditing:</p><ol><li><strong>Within the same table</strong> (simple but limited).</li><li><strong>In a separate table, logging all attributes</strong> (provides complete history and detailed insights).</li><li><strong>In a separate table, using JSON</strong> (more flexible but harder to query).</li></ol><p>Choosing the right approach depends on system requirements, data sensitivity, and expected query needs. Regardless of the method chosen, auditing should be consistently applied across the system to ensure reliable and maintainable data tracking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63f026717dc7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplifying Integration with OutSystems Data Fabric]]></title>
            <link>https://medium.com/@marlies.quaadgras/simplifying-integration-with-outsystems-data-fabric-ff33698414ce?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff33698414ce</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-architecture]]></category>
            <category><![CDATA[database-design]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Fri, 30 May 2025 11:57:59 GMT</pubDate>
            <atom:updated>2025-05-30T11:57:59.543Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simplifying Integration with OutSystems Data Fabric</h3><p><strong>OutSystems Data Fabric</strong> is a powerful feature available exclusively in OutSystems Developer Cloud (ODC). It streamlines the integration of complex enterprise data and is the successor to the OutSystems Integration builder.</p><h3>What Is Data Fabric?</h3><p>Data Fabric allows to create a virtual data layer within an ODC application. This layer can pull and aggregate data from multiple sources, such as Salesforce, SAP, traditional databases, or even an OutSystems 11 (O11) environment, without the complexity of directly managing each connection individually.</p><p>This unified data access model makes it easier to work with distributed systems while maintaining governance, performance, and security. The data is protected, regardless of where it resides.</p><p>One of the most powerful advantages of Data Fabric is the ability to join entities from different sources within a single aggregate or advanced query. This was not possible with Integration Builder, where data from different sources couldn’t be directly joined.</p><h3>Technical Overview</h3><p>To begin using Data Fabric, a configuration of the connection to an external database must be done through the ODC Portal.</p><p>To connect to another database, navigate to the Integrate tab in ODC and select Connections. Click the Create Connection button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*rGMnncyo_bzgVG48NaTA8Q.png" /></figure><p>Then choose from a list of supported databases / providers. This list will continue to expand over time.</p><p>Configuration Notes:</p><p>· Whitelist ODC IP addresses on the target database server to allow access through firewalls.</p><p>· ODC will only expose entities (tables) that the connected user has permission to view.</p><p>· If the target system uses multiple schemas, a separate connection must be made for each schema.</p><p>When the connection is established, browsing through the entities is possible, and then selecting the entities that need to be used. Rename them for clarity and uniqueness within the ODC app. O11 entities have difficult names, so a better name is very useful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_CYkomWW-c0eVCqcn8t5Q.png" /></figure><p>Choose only the relevant attributes to minimize data overhead.</p><h3>Practical Use Cases</h3><h3>1. Migration from Integration Builder</h3><p>All the scenario’s you previously used Integration Studio for like the integration of OutSystems with external databases.</p><p>There’s no debate, Data Fabric is the future for integrations in ODC.</p><h3>2: Connecting Directly to External Systems (SAP, Salesforce, etc.)</h3><p>Many enterprise systems, like SAP, Salesforce and others, offer rich REST APIs for integration. However, these APIs come with their own constraints: authentication overhead, rate limiting, latency, and the need to orchestrate multiple endpoints for complex queries. That’s where Data Fabric offers a powerful alternative.</p><p>Data Fabric is the successor of the SAP Connector in O11</p><p>Example Scenario:<br> An app is built that shows the real-time availability of products stored in SAP, combined with sales orders from an internal system stored in ODC.</p><p>Instead of managing two separate API integrations and complex data joins in the frontend, use Data Fabric to connect directly to the SAP-database, and model this in the ODC app.</p><p>Advantages:</p><p>· Performance: Avoid the roundtrips and latency of REST APIs. SQL-based queries can be optimized and executed faster.</p><p>· Aggregations Across Systems: Complex joins between SAP tables and OutSystems entities are used directly in the data layer.</p><p>· Unified Security and Access Control: Centralized control over what data is accessed and by whom.</p><p>· Simplified Architecture: Reduces the number of APIs and orchestration layers to maintain.</p><p>Disadvantages:</p><p>· Coupling to External Schema: Relying on the database schema of a third-party system, which may change with version upgrades.</p><p>· Upgrade Complexity: For example, upgrading SAP to a newer version may involve breaking changes in the underlying database structure, requiring you to reconfigure or rebuild the connection in Data Fabric.</p><p>· Limited Write Capability: In most use cases, Data Fabric is used for reading data. Writing back to external systems still often requires APIs due to business logic constraints.</p><p>Best Practice:</p><p>Use this approach for reporting, read-heavy scenarios, or real-time dashboards where the external system is stable and data doesn’t need to be modified frequently.</p><h3>3: Using the OutSystems 11 Database During a Migration</h3><p>One of the most practical and strategic applications of Data Fabric is bridging old and new worlds during a migration from OutSystems 11 to ODC.</p><p>Satellite systems (new modules or frontends), built in ODC. Data Fabric connects them by giving ODC apps direct, secure access to the O11 database. No need to write REST API’s or migrate data</p><p>A large OutSystems 11 environment with over 200 modules, migrating can be done gradually to ODC. Instead of duplicating data or building REST APIs to expose it, simply connect to the O11 database via Data Fabric.</p><p>Advantages:</p><p>· No Need for REST APIs: Saves significant development effort — especially for short-lived or transitional scenarios.</p><p>· No Immediate Data Migration: Use the existing O11 data as-is, reducing the risk and complexity of full migration.</p><p>· Progressive Modernization: Modernize satellite apps while leaving the core intact, replacing them piece by piece.</p><p>· Faster Time-to-Market: You can launch new apps in ODC without waiting for backend migration to finish.</p><p>Disadvantages:</p><p>· Dependency on O11 Environment: The O11 infrastructure and licence must remain active until fully migrated.</p><p>· No Schema Management in ODC: It is impossible to change entities that are managed in the O11 application from the ODC side, that still needs to be done in O11.</p><p>· Static Entities Lose static behaviour: Entities marked as “static” in O11 will act as regular entities in ODC, losing benefits like enums or UI-bound metadata.</p><p>· At one point, O11 data needs to be migrated to ODC and the ODC applications must use a new underlaying Data Core module</p><p>This is an ideal transitional approach. It allows teams to decouple development timelines from migration timelines and reduce risk. Once your data and apps are fully on ODC, the Data Fabric connection to O11 can be safely removed.</p><h3>Final Thoughts</h3><p>OutSystems Data Fabric enables a flexible, scalable, and secure approach to integrating external data into your modern ODC applications. Whether you’re planning a full migration, building satellite systems, or just looking to modernize gradually, Data Fabric is a critical enabler.</p><p>Start small, think strategically, and leverage Data Fabric to simplify your architecture and accelerate your delivery.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff33698414ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ODC Migration Highlights from the ONE Conference 2024]]></title>
            <link>https://medium.com/@marlies.quaadgras/odc-migration-highlights-from-the-one-conference-2024-6af70f59184c?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6af70f59184c</guid>
            <category><![CDATA[outsystems-odc]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[low-code-development]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Tue, 22 Oct 2024 11:17:35 GMT</pubDate>
            <atom:updated>2024-10-23T06:34:10.782Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ODC Migration Highlights from the ONE Conference: No one is left behind</strong></p><p>OutSystems continues to evolve, adapting to the needs of today’s digital landscape. From Traditional to Reactive development in OutSystems 11 (O11), the platform now moves forward with the <a href="https://www.transfer-solutions.com/outsystems-developer-cloud-odc/">OutSystems Developer Cloud (ODC)</a>. This latest advancement brings powerful AI integrations, enhanced security features, and tools to streamline business processes.</p><p>During the October 2024 OutSystems NextStep Experience (ONE) conference, a key focus was the migration from existing platforms to ODC. During a presentation at ONE, it was told that currently about 90% of OutSystems applications are built in O11. The support of O11 is extended until 2029.</p><p>The transition to ODC is inevitable, the main question is when to migrate. OutSystems provides a Migration Toolkit that will evolve in capabilities, nevertheless preparation is crucial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mWkleHCzyVHQ_lvk4Pwf3w.png" /></figure><p><strong>Migration Kit</strong></p><p>The Migration Kit is designed to facilitate a smooth transition. At this moment, it contains a limited set of features, however it will grow to fulfill all migration needs.</p><p>The kit comprises three tools: the Migration Assessment tool, the Migration Console for Code and the Data Migration. As more organizations start their migration efforts, OutSystems will improve and expand the kit based on practical experiences and evolving needs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6nAmXyBVaLYzsLGq6TL0A.png" /></figure><p><strong>No one is left behind</strong></p><p>OutSystems emphasizes that no organization will be left behind in this migration process.</p><p>As of today, the migration path is limited to a “One Shot” migration for Reactive modules hosted on a cloud environment with a SQL Server database and fewer than 300 application objects. This type of migration moves all applications and modules in an O11 environment simultaneously, including sandbox apps. While data migration isn’t yet available, future updates will address this gap.</p><p>For the organisations whose needs fall outside current capabilities, self-managed migration is possible. However, leveraging OutSystems’ expertise and the Migration Kit is recommended when it becomes fully available.</p><p><strong>Traditional vs. Reactive</strong></p><p>There are still users of the Traditional Environment. Migrating from Traditional O11 environments presents its own set of challenges. As the current Migration Kit only supports Reactive O11 environments, OutSystems is developing a tool to help transition from Traditional to Reactive. In this scenario, only the End User Layer modules will change, while the Core Layer remains intact. Once migrated to Reactive, applications can then utilize the Migration Kit to move to ODC.</p><p>It’s worth relying on OutSystems’ tools for migrating Traditional applications to avoid unnecessary complexity and effort.</p><p><strong>ODC Coexistence</strong></p><p>For the foreseeable future, many organizations will operate with both ODC and O11 platforms. Developing new applications directly in ODC makes sense, as it avoids the need for future conversion, and it allows developers to gain hands-on experience with the new platform.</p><p>When the Migration Kit is available for your organization, it’s advisable to run it on your existing applications to see the recommendations.</p><p>While Business Process Technology (BPT) isn’t supported yet, future updates will introduce this functionality. There’s no need to eliminate BPT from your applications, as it will be usable soon. In the meantime, applying the Smart ODC Migration Approach will help prepare your applications for future migration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*g3QLrGbvwZijT-gddehZoQ.png" /></figure><p><strong>The way forward</strong></p><p>Upcoming improvements to the Migration Kit include:</p><ul><li>Data migration capabilities</li><li>Progressive source-code Migration, allowing for individual app migration</li><li>Code migration for simple BPT scenarios</li><li>Migration from Traditional O11 to Reactive O11</li></ul><p>Following these updates, OutSystems will address more complex situations, such as:</p><ul><li>Self-managed and hybrid installations</li><li>Oracle database migrations</li><li>Complex BPT process migrations</li><li>Complex Traditional O11 to Reactive O11 migrations</li><li>Multi-tenant environments</li></ul><p>Over time, the Migration Kit will also support more sophisticated scenarios, ensuring more reliable and comprehensive migration outcomes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IvJLpxGCsuzJ2NdRKyMl5w.png" /></figure><p><strong>Next Steps</strong></p><p>As a tech lead and developer, it’s tempting to jump straight into migrating the applications you’re working on today. However, it’s smarter to plan based on the current capabilities of ODC. To determine the right timing approach for migration, we recommend the <a href="https://www.transfer-solutions.com/smart-odc-migration-approach/">Smart ODC Migration Approach</a>, which will guide you on the optimal timing and preparation steps for your migration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6af70f59184c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 steps to prepare your OutSystems O11 application for ODC migration.]]></title>
            <link>https://medium.com/@marlies.quaadgras/6-steps-to-prepare-your-outsystems-o11-application-for-odc-migration-9090ef9550e4?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/9090ef9550e4</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Sun, 14 Jul 2024 09:21:03 GMT</pubDate>
            <atom:updated>2024-07-14T10:29:33.783Z</atom:updated>
            <content:encoded><![CDATA[<p>For now, the migration tools of OutSystems to migrate from OutSystems 11 (O11) to OutSystems Developer Cloud (ODC) are not yet available, and every O11 developer is eager to get started. However, it is not wise to be a guinea pig, so we have to wait.</p><p>To make the migration go smoothly, here are some steps you can take in advance, which will also improve your O11 application.</p><p><strong>1 Create ODC expertise in the team</strong></p><p>Before any migration plans can be made, ODC expertise must be developed within the team. This involves training and familiarizing your development team with OutSystems Developer Cloud (ODC) concepts, tools, and best practices.</p><p>Only when a team has experience in developing with ODC can they effectively decide on the technical migration path and the steps to be taken. Consider setting up training sessions, workshops, and small pilot projects to build this expertise.</p><p><strong>2 Determine the architecture in ODC</strong></p><p>ODC applications uses cloud-native architecture and microservices, the new migrated ODC application will exists of libraries and apps.</p><p>The O11 architecture is carefully created in a 3 layer canvas architecture and a lot of modules are placed on the correct places in this canvas. It is safe to say that every module will not be converted into a single app or library in ODC, some or even a lot will be combined.</p><p>At this stage, the development team can design an architecture blueprint for the optimal ODC application, adhering to the best practices of ODC architecture design. This blueprint will guide the restructuring of modules into apps and libraries.</p><p><strong>3 Create a mapping-list</strong></p><p>Create an extensive mapping-list of each (part of a) module to the destination ODC components.</p><p>While creating this mapping-list, it will be clear that modules will be combined in one domain-app, but also that modules are split over more than one application.</p><p>Combining modules into one bigger domain-app will make less public items and a lot of functionality inside this app. It is likely that the modules “Order_CS”, “Order_BL”, “Order_CW” and probably the “OrderEntry” EndUser module will be combined in one Order-app.</p><p>However, an interface to SAP had the modules “Sap_IS“, “Sap_CS“, “Sap_Sync“. “Sap_IS“ will likely become a Sap-library while “Sap_CS“ and “Sap_Sync“ are combined in a Sap-app. But some components of the Sap-sync, where orders are created or updated, will become ServiceActions the the Order-app.</p><p><strong>4 Remove technical debt with AI Mentor</strong></p><p>Before migrating, clean up all technical debt and loose ends in your O11 application. Utilizing tools like AI Mentor can help identify and resolve these issues efficiently.</p><p>With the ODC architecture and mapping list in place, there’s no need to move entities from one module to another to avoid cyclic references if they will eventually be combined in the new ODC architecture.</p><p>Additionally, minimize or eliminate functionality behind feature toggles to ensure a clean and streamlined migration.</p><p><strong>5 Refactor public server actions to service action</strong></p><p>With the new ODC architecture and mapping list, it may be necessary to refactor some public server-actions into service-actions.</p><p>Since each service-action operates within a separate transaction, your application must handle distributed transactions appropriately.</p><p>Implement failure scenarios and ensure they align with how they will be handled in ODC.</p><p><strong>6 Refactor integrations</strong></p><p>In ODC, only REST interfaces are supported. This means any existing integrations that use different protocols, such as SOAP, must be refactored to REST.</p><p>Check if the external systems or services your application integrates with already offer RESTful APIs, it is possible that this was not the case while implementing.</p><p>If the external service does not provide a RESTful interface, you may need to implement an Enterprise Service Bus (ESB). An ESB can act as a middleware layer that transforms requests and responses between different protocols.</p><p><strong>7 Prepare for testing and create a test-set</strong></p><p>Testing is the most crucial part of the migration process. To ensure the migrated application functions exactly as the O11 application did, a comprehensive regression and end-to-end test must be performed. Prepare a complete test set in advance, including test cases for all functionalities, to streamline the testing process post-migration.</p><p><strong>Conclusion</strong></p><p>There is a lot that can be done before the actual migration starts. It is best not to wait until the migration to address these tasks but to start in advance. By following these steps, you can ensure a smoother migration process and a more robust ODC application.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9090ef9550e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ODC architecture: Shared Data Patterns while migrating to ODC.]]></title>
            <link>https://medium.com/@marlies.quaadgras/odc-architecture-shared-data-patterns-while-migrating-to-odc-3e0af96c26b6?source=rss-00c1c0669ed0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e0af96c26b6</guid>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <dc:creator><![CDATA[Marlies Quaadgras]]></dc:creator>
            <pubDate>Sun, 26 May 2024 08:05:30 GMT</pubDate>
            <atom:updated>2024-05-30T06:10:45.489Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>ODC architecture: Shared Data Patterns while migrating to ODC.</strong></p><p>When migrating from OutSystems O11 to ODC, we have to make choices how to implement the architecture of shared data patterns. This is one of the patterns we have to make choices about.</p><p>In this article I describe five practical solutions for the architecture of shared data patterns and list the advantages and disadvantages.</p><p>1. One Monolith</p><p>2. An app for each domain, reference by ID</p><p>3. An app for each domain, reference by Code</p><p>4. An app for each domain, get the referenced data via Service Action</p><p>5. An app for each domain while the data between the domains is synchronized.</p><p>Imagine there an OutSystems 11 system, which is already in production containing lots of data. The system is fairly stable, we expect changes but not very big ones. The business prefers minimal deployments to production, ideally fewer than once a month.</p><p>Now we should migrate this O11 system to ODC. Conform the domain-driven architecture, each domain will be converted into an APP, so we must choose the domains carefully.</p><p>In this document I describe the practical solutions for the architecture of shared data patterns, with in my opinion the best solution. The considerations are illustrated via a common use case involving Orders, Orderlines and Product.</p><p>In the conclusion, there will be an overview what is the best shared data pattern for migration.</p><p><strong>Situation in OutSystems 11</strong></p><p>In OutSystems 11, we have created a design for Orders, Orderlines and Products. In Order_CS we have the entities Order and Orderline and other related entities like OrderStatus, OrderType, OrderSource etc. In Product_CS we have entity Product and its related entities like ProductType, ProductGroup etc.</p><p>In the Product_CS we make the Product entity public, so that we can reference it in Order_CS in the Orderline entity. This creates foreign key with status protect.</p><p>The Datamodel would look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*I8KGVcZ6sOdIbfb8VyM0ew.png" /></figure><p>There are also screens for maintaining Products and Orders/Orderlines. In O11 those screens are in EndUser modules. We make the entities public read-only and make public server actions for the CRUD actions. There is no need for service actions, as all updates are inside one process.</p><p>Let’s discuss the five possible solutions for migrating this functionality to ODC.</p><p><strong>1 One monolith</strong></p><p>Solution 1 is to put both the Order_CS and the Product_CS modules into one monolithic OrderProduct ODC app.</p><p>This app can even include the screens with web blocks to maintain the Products and Orders/Orderlines. This will be a noticeably big monolithic app.</p><p>Advantages:</p><p>· The entities Order, Orderline and Product with their respective static entities don’t need to be public.</p><p>· The Delete Rule of the ProductId in Orderline can still be protect, therefor the consistency of the database remains intact.</p><p>· It is possible to change the entities without causing breaking changes.</p><p>· No problems with referential integrity when deploying this app to another stage.</p><p>· Easy deployment, no distributed applications</p><p>· This solution is similar to the O11 solution.</p><p>Disadvantages</p><p>· There is a lot of functionality inside one monolithic app, making the maintenance difficult when multiple developers work on it.</p><p>· Minor changes require an update of the entire monolith.</p><p><strong>2 Two apps, Order and Product, reference by ID</strong></p><p>Solution 2 involves moving entities of Order_CS into an Order app, possibly combined with the Order screens and actions. Similarly, move the entities of Product_CS into a Product app, along with the maintenance screens of the Products.</p><p>There are only weak references between apps for entities, but we need to refer the Product in the Orderline entity. Product will be a public entity, which is referenced in the Order app.</p><p>This would require a foreign key in the Orderlines entity to ProductId with Delete Rule ignore, protect is not allowed. However, there would be no updates of Products in the Order app, so there is only a weak reference with a public entity.</p><p>If we model the relation like this, we can easily create an aggregate to fetch the Orders and Orderlines with its Products:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*VLSWRJPC4Uy7Q4Gt6u22Dg.png" /></figure><p>Advantages:</p><p>· It is still possible to reference entities outside the app with their Id’s.</p><p>· Aggregates from O11 do not have to change.</p><p>· Aggregates are easy maintainable.</p><p>· There is now a domain-driven architecture, keeping the Order-related functionality in one Order app and the Product functionality in a Product app.</p><p>· Both apps are smaller.</p><p>Disadvantages</p><p>· There is a weak reference between Order and Product app. If the Product entity changes, the Order app will need to as well to avoid breaking.</p><p>There is no referential integrity between Orders and Product in the database, when creating an Orderline the developer must be sure that the correct ProductId is place in the Orderline. When deleting a Product, a check must be done to see if this Product is used in any Orderline.</p><p><strong>3 Two apps, Order and Product, reference by Code</strong></p><p>Just like solution 2, we move the entities of Order_CS into an Order app, and the entities of Product_CS into a Product app, benefiting the domain-driven architecture.</p><p>For this solution, the reference between Orderline and Product will not be the ProductId, but the ProductCode. This ProductCode is a unique code given to the product, enforced by a unique key on ProductCode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*dHGVuLCpaZwvzsmYdpS4mw.png" /></figure><p>In the Orderline, the ProductCode is added, but there is no foreign key anymore.</p><p>However, we can still create aggregates in this situation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*pjn-ZZHjtETrBrFEyttbAQ.png" /></figure><p>Advantages:</p><p>· There is no foreign key anymore outside the App. There is a perfect domain-driven architecture, keeping the Order related functionality in one Order app and the Product functionality in a Product app.</p><p>· Simple, fast, and easily maintainable aggregates can still fetch the Orderlines with their Product.</p><p>· This change can be implemented well before the actual migration to ODC</p><p>Disadvantages</p><p>· There is a weak reference between Order and Product app. If the Product entity changes, the Order app will need to update as well to avoid breaking.</p><p>· There is no referential integrity anymore if the ProductCode in Orderline exists in Products. When deleting products, it must be checked if this Product still exists in Orderlines, otherwise orphans are created.</p><p>· Migrating a OutSystems 11 system with data to this configuration, requires updating in the existing data, and changing all aggregates.</p><p>· All entities, which will be used in this way, should have an attribute that is unique. If an entity lacks a unique attribute, it must be defined and created.</p><p>· The solution is not according to the best practices of a relational database.</p><p><strong>4 Two apps, Order and Product, get data via ServiceActions</strong></p><p>As in solution 2 and 3, we move the entities of Order_CS into an Order app and the entities of Product_CS into a Product app, maintaining the domain-driven architecture.</p><p>In this situation there is no relationship at all. We do not create aggregates to fetch the data from the Product for the Orderlines, but the data is fetched via a ServiceAction</p><p>A ServiceAction in the Product app returns the desired data of Product (called GetProductByCode). The return cannot be a record of the type Product entity, so a struct must be defined.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*NsCaDeRdhIhZAZ8fXJGbOw.png" /></figure><p>In the Order app, instead of the aggregate to the Orderlines with Product, we have to make a Data Action to get the Orderlines with the Product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*_GA-b40AsKQcBLsyQfloqQ.png" /></figure><p>First the aggregate of solution 1, 2 and 3 is done without the Product entity. The result of the DataAction is a list of the Orderline with the Product name, we have to make a special Struct for that.</p><p>We can immediately see that we need to use a loop to fetch for each Orderline its ProductName via the ServiceAction. Keep in mind that we need more ServiceActions when we need to fetch more data outside the domain.</p><p>Advantages:</p><p>· There is no foreign key outside the app, ensuring a perfect domain-driven architecture, keeping Order-related functionality in one Order app and Product functionality in a Product app.</p><p>· Changes in the Product app does not necessitate updates in the Order app, as long as the ServiceAction remains unchanged. New ServiceActions can be created alongside the old ones to maintain existing functionality.</p><p>Disadvantages</p><p>· There is no referential integrity anymore if the ProductCode in Orderline exists in Products. When deleting products, it must be a check to see if this Product still exists in Orderlines, otherwise orphans are created.</p><p>· Migrating an O11 system with data to this configuration, there needs to be an update in the existing data.</p><p>· All the entities that will be used in this way, should have a unique attribute. If an entity lacks a unique attribute, it must be defined and created.</p><p>· All the aggregates need to be changed for this solution into Data Actions. Which may lead to a range of ServiceActions called inside a loop.</p><p>· ServiceActions need to be created. The output of this ServiceAction must be a struct.</p><p>. The solution is not according to the best practices of a relational database</p><p>· Performance will decrease</p><p><strong>5 Two apps, Order and Product, but data is synchronized</strong></p><p>As in solution 2 and 3, we move the entities of Order_CS into an Order app and the entities of Product_CS into a Product app, maintaining the domain-driven architecture.</p><p>In this solution we also create a Product entity with the necessary attributes in the Order_CS app. In that case we can use that new Product entity quite easy. This new Product entity can be used easily, but synchronization of data between the Product entity in the Product app and the new Product entity in the Order app is required. Synchronization will occur at predefined intervals, such as every 10 minutes or daily.</p><p>Advantages:</p><p>· There is no foreign key outside the App, there is a perfect a domain-driven architecture, keeping the Order related functionality in one Order app and the Product functionality in a Product app</p><p>· Changes in the Product app only require updates to the synchronization process, if applicable.</p><p>Disadvantages</p><p>· Product data is available in more than one place.</p><p>· Data must be synchronized, so it may be outdated.</p><p>· There is still a relation between both apps because the synchronization must use the Product entity in Product to fill the Product entity in Order.</p><p><strong>Conclusion</strong></p><p>Given that we want to migrate a fairly stable existing application with data, we need a solution with minimal impact, while still benefiting from ODC’s domain-driven architecture.</p><p>In this document, I defined 5 solutions.</p><p>1. One Monolith</p><p>2. An app for each domain, reference by ID</p><p>3. An app for each domain, reference by Code</p><p>4. An app for each domain, get the referenced data via ServiceAction</p><p>5. An app for each domain while the data is synchronized.</p><p>For maintenance issues, solution 1 is not advisable. However, the migration will be quite easy, maintaining this solution with more than one developer in this Monolithic app is not advisable.</p><p>Solutions 3 and 4 require the use of “Code-attributes” for each foreign key (such as the ProductCode attribute in the Orderline entity) and scripts to populate these “Code-attributes” into the entities. Creating and filling these new attributes and updating aggregates involves significant changes, potentially introducing errors.</p><p>Solution 4, although it fits best with the domain-driven architecture, requires major changes, including creating and populating new Code-attributes and converting all aggregates to Data Actions. Performance will also decrease. This solution is suitable for apps that are not stable and need frequent deployments, which is not our case.</p><p>Solution 5 needs a lot of work, and the used data is not real time.</p><p>So, in this case, solution 2 would be the best solution. There is no need to add extra attributes and update the data and aggregates for this. We still have domain-driven architecture. The definitions of the entities are stable and there is no need for frequent deployments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e0af96c26b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>