You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/engine.md
+2
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ condition reference that cannot be resolved an exception is thrown. Turning
50
50
this option on will cause the engine to treat unresolvable condition references
51
51
as failed conditions. (default: false)
52
52
53
+
`replaceFactsInEventParams` - By default when rules succeed or fail the events emitted are clones of the event in the rule declaration. When setting this option to true the parameters on the events will be have any fact references resolved. (default: false)
54
+
53
55
`pathResolver` - Allows a custom object path resolution library to be used. (default: `json-path` syntax). See [custom path resolver](./rules.md#condition-helpers-custom-path-resolver) docs.
54
56
55
57
### engine.addFact(String id, Function [definitionFunc], Object [options])
With the engine option [`replaceFactsInEventParams`](./engine.md#options) the parameters of the event may include references to facts in the same form as [Comparing Facts](#comparing-facts). These references will be replaced with the value of the fact before the event is emitted.
0 commit comments