What are Reusable UI Templates?
Reusable UI Templates are self-contained UI component hierarchies that you design once and instantiate multiple times throughout your application. They solve common UI development challenges:- Repetitive styling: No more redoing component styles and properties for similar UI patterns
- Manual updates: Reduce the need to manually change components across multiple locations
- Template management: Centralized configuration and management of UI templates

Reusable UI Templates focus on visual components and layout. They cannot include reusable business rules or complex business logic.
Key benefits
Consistency
Ensure uniform UI patterns across your entire application
Efficiency
Design once and use many times - no more recreating similar patterns
Maintainability
Update templates in one place to affect all instances automatically
Omnichannel support
Templates work across different platforms and channels
Template structure
A reusable template consists of:- Root component: A single container (Card, Container, or Custom Component)
- UI hierarchy: Child components arranged in a hierarchical structure
- UI actions: Interactive elements that can trigger process actions
- Data model: Input and output parameters for template configuration
- Configuration: Name, description, and resource metadata

Before you begin
Make sure you have:- Access to FlowX.AI Designer
- Appropriate permissions to create and manage reusable resources
- A clear understanding of the UI pattern you want to standardize
Create a reusable template
1
Access template management
- In FlowX.AI Designer, go to your project
- Navigate to Reusable Resources > Templates
- Click + New Reusable Template
2
Configure basic settings
- Enter a descriptive name for your template (required)
- Example: βPersonal Details Cardβ for user information display

- Add an optional description explaining the templateβs purpose
- Choose your root component type:
- Card: Best for content needing visual separation and styling
- Container: Ideal for layout and grouping without visual styling
- Configure the data model with input and output parameters
3
Design the UI hierarchy
Use the template UI designer to build your component structure:
The template UI designer focuses on screen parts without navigation concepts or process-related navigation.
4
Configure UI actions (optional)
Define interactive elements within your template:
- Template-defined actions
- Form-centric actions
- Define UI actions within the reusable template
- Assign node actions when instantiated in User Tasks
- Use for standard actions like βSaveβ, βSubmitβ, or βCancelβ
5
Test your template
- Use Preview Mode to see how your template renders
- Verify component hierarchy and basic functionality
- Test with different themes and configurations
- Save your template when testing is successful
Use templates in User Tasks
After creating a reusable template, you can add it to your User Task interfaces.Add a template to a User Task
- Open the UI Designer for a User Task
- In the component panel, locate Reusable Templates
- Drag and drop your desired template into the UI hierarchy
- Configure instance-specific properties as needed
Runtime behavior
At runtime, the process engine expands reusable templates by:- Replacing the
REUSABLE_TEMPLATE
placeholder with the actual component hierarchy - Maintaining proper parent-child relationships
- Ensuring unique identifiers for each instance
- Preserving configured UI actions and data bindings
Manage templates
View template usage
To see where a template is used:- Go to Reusable Resources > Templates
- Select your template
- Click the Usages tab
- Review all processes and User Tasks using the template
Update templates
When you modify a reusable template:- Changes automatically propagate to all instances
- Existing process instances may need to restart for updates
- Instance-specific configurations are preserved
- The system validates changes to prevent breaking existing implementations
Template updates affect all instances immediately. Test changes thoroughly before saving to avoid disrupting active processes.
Template dependencies
Reusable templates can reference these project resources:Enumerations
Enumerations
Use for dropdown menus and selection components within your templates
Media items
Media items
Include images, documents, and other media assets in your templates
Substitution tags
Substitution tags
Themes
Themes
Apply consistent styling across all template instances
UI actions in templates
Current capabilities
UI actions in reusable templates support basic interactive functionality. The system handles:- Action context management: Unique identification for template instances
- Form submission: Automatic identification of form elements within template context
- Data mapping: Proper mapping of data keys to process variables
- Validation preservation: Template validation rules are maintained across instances
Planned scenarios
- Template-defined actions
- Form-centric actions
How it works:
- Define a UI action within the reusable template
- Assign the node action when instantiated in a User Task
- Use for standard actions needing different backend connections
Current limitations
- Data model: Input/output parameters are not yet fully available
- Complex validation: Advanced data validation scenarios are limited
- Cross-template actions: Actions cannot span multiple template instances
- Template nesting: Cannot use reusable templates inside other reusable templates
Troubleshooting
Template not displaying
Template not displaying
Possible causes:
- Invalid template hierarchy
- Missing dependencies (enumerations, media, themes)
- Insufficient permissions
- Invalid component configurations
- Verify template structure in the designer
- Check all referenced resources exist
- Confirm user permissions for template access
- Validate component property settings
UI actions not working
UI actions not working
Possible causes:
- Incorrect action context configuration
- Invalid form submission setup
- Data model compatibility issues
- Missing action permissions
- Verify action context is properly set
- Check form submission configuration
- Ensure data models match between template and process
- Review user permissions for action execution
Data binding issues
Data binding issues
Possible causes:
- Invalid key mappings in template instances
- Mismatched process data model structure
- Data type incompatibilities
- Incorrect substitution tag usage
- Validate key mappings match expected data structure
- Check process data model compatibility
- Ensure data types align between components and data sources
- Review substitution tag configurations
Debugging tools
The FlowX.AI platform provides several debugging capabilities:- Template Inspector: Examine template structure and properties in detail
- Action Debugger: Trace UI action execution and identify issues
- Data Viewer: Monitor data flow and binding between templates and processes
- Error Console: View template-related errors and warnings with detailed messages
Reusable UI Templates vs. Reusable Functions
Understanding the difference between these two reusable components is crucial:- Reusable UI Templates
- Reusable Functions
Purpose: UI Designer components for creating reusable interface elementsScope:
- Visual components and layout
- Styling and basic UI interactions
- Form structure and input patterns
Advanced features
Planned enhancements
Template nesting
Future support for using templates within other templates for enhanced modularity
Enhanced data model
Input and output parameters with function-like behavior and type safety
Advanced testing
Mock data testing and interactive validation capabilities
Cross-project sharing
Export/import templates and library dependency management