Utility Bundles - Core, Dynamic and Test
Author:
Holger Lierse
Changed on:
1 Sept 2025
Target release date: | 2025-09-01 |
---|---|
Release status: | Released |
Description
Fluent Commerce announces the release of the Fluent Commerce Utility Bundles, a major step forward in making Rule development faster, cleaner, and more consistent.
These new bundles give developers a powerful set of ready-to-use tools for building Rules, handling Events, working with GraphQL, and writing reliable tests - all while reducing repetitive code and improving maintainability.
The Utility Bundles support the development of both simple Rules and complex Workflows, enabling faster delivery, minimizing common pitfalls, and maintaining a clean codebase.
The following three Utility Bundles are now available and should be adopted in Rule development:
Essential tools for day-to-day rule development, including:
- Event Utilities: Create and manipulate Fluent events effectively
- Rule Utilities: Common logic for building and evaluating rules
- Query Utilities: Simplified construction of GraphQL queries
- Settings Utilities: Access and manage settings consistently
- JSON Utilities: Safe and reliable JSON processing
- GraphQL Date Utilities: Robust handling of date formatting in GraphQL
- Log Utilities: Standardized logging for easier debugging
Benefit:
- Eliminates repetitive, error-prone code
- Keeps rules clean and focused
- Speeds up development by providing ready-to-use functions
Streamlines dynamic GraphQL interactions, including:
- Dynamic Queries: Generate flexible, parameterized queries at runtime
- Dynamic Mutations: Build complex mutations without boilerplate
- Dynamic Pagination: Simplifies handling of paginated responses
Benefit:
- Reduces complexity for advanced rule scenarios
- Improves maintainability for rules that depend on dynamic data
- Keeps business logic flexible without sacrificing code clarity
Tools to make rule testing fast and reliable:
- RuleExecutor: Simulate rule execution in isolation
- WorkflowExecutor: Test entire workflows end-to-end
- MockApiClient: Mock API interactions for safe, controlled testing
- RuleContextGenerator: Set up consistent test contexts efficiently
Benefit:
- Accelerates unit and integration testing
- Reduces the risk of bugs reaching production
- Makes test setup straightforward, even for complex rules
Changelog
Initial release
Packages
Released capability depth: | New capability |
---|---|
Release bundle / Capability type: | Tool |