| RuntimeFactConceptExtensionsRunConcept Method |
Runs Fact Concept model against fact values to ensure consistency of values using the defined constraints
Namespace: FlexRuleAssembly: FlexRule.Engine (in FlexRule.Engine.dll) Version: 0.0.0.0 (0.0.0.0)
Syntaxpublic static RuntimeResult RunConcept(
this IRuntimeEngine runtime,
string factName,
Object factValue,
Object model = null
)
Parameters
- runtime
- Type: FlexRuleIRuntimeEngine
Instance of engine from a Concept model - factName
- Type: SystemString
Name of the fact to be validated - factValue
- Type: SystemObject
Value of the fact to run against defined constraints - model (Optional)
- Type: SystemObject
A value that can be used as '$model' in the constraints' expression as a reference value
Return Value
Type:
RuntimeResultUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRuntimeEngine. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also