ILOG JRules User Guide > Customizing JRules > Concepts > Rule Model > Rule Model API

To customize Rule Studio or Rule Team Server, you need to manipulate artifacts handled by these two environments. You can do the customization once for both environments with a common interface that lets you access and query the properties of artifacts.

The Eclipse Modeling Framework (EMF) is used in both Rule Studio and Rule Team Server to define the rule model. All artifacts are instances of an EMF class that is defined by the EClass interface.

All rule artifacts are instances of the IlrElement interface.

The IlrElement interface provides methods that allow you to manipulate the artifacts. The method eClass returns the EMF class of which the artifact is an instance.

In EMF, properties are represented by the EStructuralFeature interface. The methods getPropertyValue(String) and getPropertyValue(EStructuralFeature) let you retrieve the property values of an artifact based on the name of the property, or on the property object itself.

The method getPropertyValue returns a collection when the property cardinality is greater than 1. The method getPropertyValue boxes the return value when the property type is a primitive type.

The method isInstanceOf(String className) specifies if an artifact is an instance of an EClass whose fully qualified name is className.

You can access the API specific to Rule Studio or Rule Team Server by casting IlrElement to a specific type. Your code then becomes platform-specific.

Related Concepts

Rule Model
Rule Model API for Rule Studio

Related Tasks

Customizing Rule Studio
Customizing Rule Team Server

Related Reference

ilog.rules.commonbrm.model
IlrElement
Rule Team Server Database Schema

Related Samples and Tutorials

Rule Studio Business Rule Management Extensions
Rule Team Server Business Rule Management Extensions