🗃️ Other Runtime API Examples
9 items
📄️ Runtime API Examples
The InRule Runtime API's objects and methods for loading data, executing rules, processing results, and rule application metadata.
📄️ Calling the Rules Engine: In Process
A basic in-process example of calling the rule engine using FileSystemRuleApplicationReference, RuleSession, and Entity.
📄️ Calling the Rules Engine as a Service
Call the irServer Rule Execution Service REST interface synchronously with WebRequest or asynchronously using JSON.
📄️ Retrieving and Setting Fields and Entities
Retrieve an Entity from a RuleSession and read or set its field values.
📄️ Working with Collections
Loop through a collection at runtime; you may change an individual member's values but not the collection itself.
📄️ Executing Rules
Apply rules against a RuleSession's Entity, and handle a thrown RuleException.
📄️ Working with the Rule Application Cache
Add items to, manage, and iterate the rule application cache, and control compilation and cache retention behavior.
📄️ Working with Rule Application Metadata
Iterate a rule application's entities and retrieve definition objects at runtime using the RuleApplicationDef object.