pub trait ExternalConditionProvider: Send + Sync {
// Required method
fn evaluate(&self, condition_name: &str) -> ConditionResult;
}Expand description
Provider for external conditions that depend on context outside the EDIFACT message.
External conditions are things like:
- [1] “Wenn Aufteilung vorhanden” (message splitting status)
- [14] “Wenn Datum bekannt” (whether a date is known)
- [30] “Wenn Antwort auf Aktivierung” (response to activation)
These cannot be determined from the EDIFACT content alone and require business context from the calling system.
Required Methods§
Sourcefn evaluate(&self, condition_name: &str) -> ConditionResult
fn evaluate(&self, condition_name: &str) -> ConditionResult
Evaluate an external condition by name.
The condition_name corresponds to the speaking name from the
generated external conditions constants (e.g., “MessageSplitting”,
“DateKnown”).