Article Type: Concept / Integration Package Overview
Audience: Application Designers, Solution Architects, Technical Writers, DevOps Engineers
Module: Documentation / Confluence
Applies to Versions: 2023.10.0+
The Confluence Data Model Documentation package enables automatic generation and synchronization of technical documentation from Fuuz data models directly into Atlassian Confluence. This package exemplifies the principle of self-documenting solutions — where the system itself generates and maintains its own documentation, ensuring accuracy and eliminating the manual burden of keeping documentation in sync with application changes.
By integrating Fuuz with Confluence, organizations can maintain a living documentation system that automatically reflects the current state of their industrial applications. Documentation is created under a structured hierarchy with a parent "Data Models" page, and each data model receives its own child page prefixed with "Data Model:" for consistent organization.
| Component Type | Count | Description |
|---|---|---|
| Screens | 1 | Data Model Documenter interface for selecting models to document |
| Data Flows | 2 | Page retrieval and documentation generation flows |
| Module Group | 1 | Documentation module group for organizing related screens |
| Module | 1 | Confluence module for categorizing documentation features |
| Application Configuration | 1 | Settings for Confluence connection and space configuration |
| Data Flow | Nodes | Description |
|---|---|---|
| Get Pages in Confluence Space | 8 | Retrieves existing pages from Confluence space with pagination support |
| Generate Confluence Data Model Documentation | 21 | Main flow that queries data models and creates/updates Confluence pages |
The primary use case is automatic generation of data model documentation. Each documented page includes field names, data types, descriptions, validation rules, and relationships to other models. This ensures developers and stakeholders always have access to current schema information without manual documentation maintenance.
Manufacturing environments often require documented system specifications for regulatory compliance (FDA 21 CFR Part 11, ISO standards). Automated documentation generation provides traceable, versioned records of system configuration that can be referenced during audits. Schedule the documentation flow to run after deployments to capture configuration changes.
New team members can quickly understand the application's data architecture by browsing the automatically generated Confluence pages. The structured hierarchy (Data Models → Individual Models) provides an intuitive navigation experience for learning the system.
When data models are modified, running the documentation flow updates Confluence pages automatically. Combined with Confluence's built-in version history, this creates an audit trail of schema changes over time without any manual effort.
This package demonstrates a foundational pattern for self-documenting solutions. The same approach can be extended to document screens, data flows, integrations, and more. Below are strategies for building comprehensive self-documenting Fuuz applications.
The pattern used for Data Models can be replicated for other Fuuz components:
| Component | Documentation Content | Query Source |
|---|---|---|
| Screens | Route paths, components, user permissions, linked data models | Screen, ScreenVersion, Route |
| Data Flows | Node sequences, triggers, integrations, business logic descriptions | DataFlow, DataFlowVersion |
| Data Mappings | Source/target systems, field mappings, transformation rules | DataMapping, DataMappingVersion |
| Connections | Connector types, endpoint configurations, credential references | Connection, Connector |
| Roles & Permissions | Access control policies, role definitions, screen/data access | Role, AccessControlPolicy |
| Schedules | Cron expressions, triggered flows, shift configurations | Schedule, DataFlowSchedule |
Organize your Confluence space with a consistent structure for comprehensive solution documentation:
[Application Name] Space
├── Overview
│ ├── Application Description
│ ├── Architecture Diagram
│ └── Getting Started Guide
├── Data Models
│ ├── Data Model: Product
│ ├── Data Model: Workcenter
│ └── Data Model: ProductionRun
├── Screens
│ ├── Screen: Plant Dashboard
│ ├── Screen: Workcenter Control Panel
│ └── Screen: Production History
├── Data Flows
│ ├── Flow: Calculate OEE
│ ├── Flow: IOT Tag Handler
│ └── Flow: Record Production
├── Integrations
│ ├── Integration: Plex ODBC
│ ├── Integration: SAP RFC
│ └── Integration: OPC-UA Gateway
├── Work Instructions
│ ├── WI: Starting a Production Run
│ ├── WI: Recording Downtime
│ └── WI: Shift Handoff Procedure
├── Troubleshooting Guides
│ ├── TS: Connection Failures
│ ├── TS: Data Flow Errors
│ └── TS: Missing Production Data
└── Deployment Guide
├── Prerequisites
├── Installation Steps
└── Configuration Checklist
For advanced documentation scenarios, Fuuz's integration capabilities can be combined with Model Context Protocol (MCP) servers and Large Language Models (LLMs) to generate intelligent, context-aware documentation that goes beyond simple metadata extraction.
The Model Context Protocol (MCP) enables bidirectional communication between Fuuz and AI systems. Using MCP servers like the Atlassian MCP connector, you can create sophisticated documentation workflows:
Generate comprehensive work instructions by combining screen metadata with LLM capabilities:
Sample LLM Prompt Template:
Generate a work instruction document for the following Fuuz screen:
Screen Name: {{screenName}}
Route: {{routePath}}
Purpose: {{screenDescription}}
Form Fields:
{{#each formFields}}
- {{name}} ({{type}}): {{description}}
Required: {{required}}
Validation: {{validation}}
{{/each}}
Actions Available:
{{#each actions}}
- {{title}}: {{description}}
{{/each}}
Please create:
1. A brief overview of when to use this screen
2. Step-by-step instructions for completing the workflow
3. Field-by-field guidance with expected values
4. Common mistakes to avoid
5. Related screens or next steps
Generate intelligent troubleshooting documentation by analyzing data flow configurations and error patterns:
Sample LLM Prompt Template:
Generate a troubleshooting guide for the following Fuuz data flow:
Flow Name: {{flowName}}
Type: {{flowType}}
Description: {{flowDescription}}
Integration Nodes:
{{#each integrationNodes}}
- {{name}}: Connects to {{connectionType}}
Retry Config: {{retryConfig}}
Error Handling: {{errorHandling}}
{{/each}}
Recent Error Patterns (from execution logs):
{{#each errorPatterns}}
- Error: {{errorMessage}}
Frequency: {{count}} occurrences
Last Seen: {{lastOccurrence}}
{{/each}}
Please create a troubleshooting guide with:
1. Common issues table (Issue | Possible Cause | Resolution)
2. Diagnostic steps for each integration point
3. Log locations and what to look for
4. Escalation procedures
5. Preventive measures and monitoring recommendations
Generate deployment documentation by analyzing package contents and dependencies:
Sample LLM Prompt Template:
Generate a deployment guide for the following Fuuz package:
Package Name: {{packageName}}
Version: {{version}}
Platform Version Required: {{platformVersion}}
Components Included:
- Data Models: {{dataModelCount}} ({{dataModelNames}})
- Screens: {{screenCount}} ({{screenNames}})
- Data Flows: {{flowCount}} ({{flowNames}})
- Configurations: {{configCount}}
Dependencies:
{{#each dependencies}}
- {{packageName}}: {{versionRequired}}
{{/each}}
Required Connections:
{{#each requiredConnections}}
- {{connectorType}}: {{purpose}}
{{/each}}
Please create a deployment guide with:
1. Prerequisites checklist (platform version, dependencies, connections)
2. Pre-installation verification steps
3. Step-by-step installation procedure
4. Post-installation configuration (connections, application settings)
5. Verification/testing checklist
6. Rollback procedure
| Approach | Implementation | Best For |
|---|---|---|
| Fuuz Data Flow + OpenAI/Anthropic API | Create a data flow with integrateV2 node calling LLM API, then Confluence API | Scheduled batch documentation generation |
| Claude + Atlassian MCP | Use Claude with connected Atlassian MCP server to query Fuuz and create Confluence pages | Interactive documentation sessions, ad-hoc requests |
| Claude + Fuuz Project Knowledge | Load Fuuz metadata files into Claude project, generate documentation on demand | Development-time documentation, package KB articles |
| Hybrid: Fuuz Flow + Claude Artifacts | Flow extracts metadata, Claude generates rich HTML, flow publishes to Confluence | High-quality formatted documentation with diagrams |
Route: /system/confluence/documentation/dataModels
Module: Documentation → Confluence
This screen provides an interface for selecting data models and triggering documentation generation. Users can filter by ID or Module to find specific models, select multiple models for batch documentation, and execute the generation flow.
Screen Components:
Table Columns:
| Column | Description |
|---|---|
| ID | Unique identifier of the data model |
| Name | Display name of the data model |
| Description | Brief description of the data model's purpose |
| Module | The module group the data model belongs to |
The package includes an Application Configuration record (confluenceDocumentationIntegration) with the following configurable settings:
| Setting | Type | Required | Description |
|---|---|---|---|
| Confluence Connection | Combobox | Yes | Select from configured Confluence connections |
| Space ID | Integer | Yes | Numeric ID of the Confluence space for documentation |
| Application Description | Markdown | No | Optional description included on the Data Models parent page |
The package uses the Confluence REST API v2 with the following operations:
Confluence requires unique page names within a space. The package uses the following conventions:
The Confluence Data Model Documentation package provides a foundation that can be significantly extended:
| Issue | Possible Cause | Resolution |
|---|---|---|
| No connections in configuration | Confluence connection not created | Create a Confluence connection in Connection management |
| Authentication error | Invalid API token or expired credentials | Generate a new API token in Atlassian account settings |
| Space not found error | Incorrect Space ID configured | Verify Space ID in Confluence space settings or API |
| Page name conflict | Page with same name exists outside hierarchy | Rename or delete conflicting pages in Confluence |
| No data models displayed | Filter criteria too restrictive | Clear filters or broaden search criteria |
| Flow execution timeout | Too many models selected at once | Process models in smaller batches or schedule flow |
| Permission denied | API token lacks space edit permissions | Verify API token user has edit access to target space |
| Version | Date | Editor | Description |
|---|---|---|---|
| 1.0 | 2025-01-24 | Fuuz Documentation | Initial release documenting Confluence Data Model Documentation v1.0.0 with expanded self-documenting solutions guidance and MCP/LLM integration patterns |