Dynamic configurations allow you to define values that are computed at runtime based on the current context. Instead of hardcoding a value like 30 for a threshold, you can write a formula like active_job.expected_takt * 1.5 that adapts to the current job (when the config value is evaluated).
This is useful when:
ArchFX Cloud formulas are basically like Notion formulas.
Formulas use a Python-like syntax. They are evaluated safely with only allowed operations.
| Operation | Syntax | Example |
|---|---|---|
| Addition | + |
a + b |
| Subtraction | - |
a - b |
| Multiplication | * |
a * 1.5 |
| Division | / |
total / count |
| Comparison | >, >=, <, <=, ==, != |
value > 10 |
| Boolean | and, or, not |
a > 5 and b < 10 |
| Conditional | X if condition else Y |
'high' if count > 100 else 'low' |
Use dot notation to access nested attribute:
active_job.expected_takt
entity.properties["Machine Type"]
step.attributes["unit_cycle_time"]
Use bracket notation for property names with spaces or special characters:
entity.properties["My Property Name"]
Important: if an attribute does not exist, an error is returned and so the formula evaluation fails. In this case, it is often considered like if the formula would return null.