OnThreshold fires when a watched numeric variable crosses a threshold.
| 26 | const crossingOutID = "output" |
| 27 | |
| 28 | // OnThreshold fires when a watched numeric variable crosses a threshold. |
| 29 | type OnThreshold struct { |
| 30 | engine.TriggerNode |
| 31 | variable workflowapi.Reference |
| 32 | threshold float64 |
| 33 | direction Direction |
| 34 | deadband float64 // Hysteresis, signal must move past threshold±deadband to flip side. |
| 35 | binding *workflowapi.OutputBinding |
| 36 | updates <-chan expr.Value |
| 37 | wasAbove bool |
| 38 | seeded bool |
| 39 | } |
| 40 | |
| 41 | func NewOnThreshold( |
nothing calls this directly
no outgoing calls
no test coverage detected