Rule Structure
Topic
Author:
Fluent Commerce
Changed on:
21 Apr 2026
Author:
Fluent Commerce
Changed on:
21 Apr 2026
Author:
Fluent Commerce
Changed on:
21 Apr 2026
`com.fluentretail.rubix.v2.rule.Rule` interface`@RuleInfo` Annotation describing the metadata for the Rule1package com.example.rule;
2
3import com.fluentretail.rubix.rule.meta.RuleInfo;
4import com.fluentretail.rubix.v2.context.Context;
5import com.fluentretail.rubix.v2.rule.Rule;
6
7@RuleInfo(
8 name = "ExampleRule"
9 , description = "This is the description of the Example Rule, which should include all parameters declared below like this: {ParamString1}"
10)
11@ParamString(name = "ParamString1", description = "Parameter String 1", defaultValue = "PS1")
12@EventAttribute(name = "EventAttribute1", type = "STRING")
13public class ExampleRule implements Rule {
14
15 @Override
16 public <C extends Context> void run(C context) {
17 // ...
18 }
19}