Show xPath details of activities in microflows or nanoflows - Mendix Forum

Show xPath details of activities in microflows or nanoflows

0

 When we configure object activities, sometimes Mendix, or ourselves, put in xpath definitions to control what the object activity retrieves.

Much like the CSS button in the page viewer, can you add an XPath button in the Domain Viewer? If we click on it, Mendix pops up (in tooltips or annotations) the XPath statements that are present. The setting should behave like a pin, we click it in, it shows the xpaths, and they remain, we click it again, the tooltips/annotations disappear.

This would help significantly in figuring out what is going on in a flow, and we lose less time in development by having to manually add static annotations, or maintain those in cases of changes, during development.

asked
1 answers

Idea: Add XPath Toggle Button in Domain Model / Microflow View

Description

When configuring Retrieve or Object Activities in Mendix, developers often use XPath constraints. Currently, these XPath expressions are hidden within the activity configuration, making it difficult to understand the data retrieval logic at a glance.

Proposal

Introduce a toggle button, similar to the existing CSS toggle in the Page Editor, that:

  • Acts like a pin — click once to show all XPath constraints as tooltips or inline annotations, and click again to hide them.

  • Highlights XPath expressions used in:

    • Retrieve activities

    • Associations

    • Object activities

Benefits

  • Improves development efficiency and reduces time spent searching for logic behind data retrievals

  • Enhances readability and maintainability of microflows and domain models

  • Eliminates the need to manually add or update static annotations

  • Assists with onboarding new developers into existing applications

Reference

Similar concept to the CSS toggle in the Page Editor:https://docs.mendix.com/refguide/style-tab/#custom-css

Created