1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
This directory contains GRL rule files for backward chaining examples.
Business rules for e-commerce order approval system:
- ----
**Used by:** `examples/09-backward-chaining/ecommerce_approval_demo.rs`
Backward chaining queries for order approval:
- ----
**Used by:** `examples/09-backward-chaining/ecommerce_approval_demo.rs`
Business rules for purchasing and reorder system:
- ------
**Used by:** `examples/09-backward-chaining/purchasing_flow_demo.rs`
Backward chaining queries for purchasing decisions:
- -----
**Used by:** `examples/09-backward-chaining/purchasing_flow_demo.rs`
These rule files are loaded by the backward chaining examples:
```rust
let rules = load_rules_from_file("ecommerce_approval.grl");
let query = load_query_from_file("ecommerce_queries.grl", "CheckAutoApproval");
```
⚠️ **ALPHA VERSION**: These rules are part of the backward chaining feature which is currently in alpha stage and not production-ready.