Runtime API Examples
The InRule Runtime API contains all of the objects and methods used to load data, execute rules, process results, and work with rule application metadata.
Calling the Rules Engine - In Process
- Basic Example of Calling the Rule Engine
- Opening a Rule Application for Execution
- Creating a RuleSession
- Creating a RuleSession with Cache Retention
- Creating Entities
- Alternate ways to Load State for Entities
- Retrieving Entity State
- Working with RuleSessionState
Calling the Rules Engine as a Service
- Sychronously calling the REST Service
- Asychronously calling the REST Service with JSON
- Asychronously calling the REST Service with XML
- Calling the SOAP EndPoint using a Service Reference
Retrieving and Setting Fields and Entities
Working with Collections
Executing Rules
- Applying Rules
- Applying Rules with an Activation Model
- Executing Decisions
- Executing an Independent Rule Set or Rule Flow
- Checking For Notifications & Validations
- Handling Exceptions
- Runtime Settings
- Retrieving and Processing the RuleExecutionLog
- Retrieve the Performance Statistics Report
- Retrieve the Performance Log
Working with the Rule Application Cache
- Adding Items into the Cache
- Managing the Cache
- Controlling Compilation and Cache Retention
- Iterating Items in the Cache
Working with Rule Application Metadata
- Using the RuleApplicationDef Object
- Retrieving Definition Objects at Runtime
- Using Element Metadata
- Working with Attributes
- Working with Value Lists
Other