Skip to main content



Opening a RuleApplicationDef for Authoring from Catalog

Prerequisites: None
Namespaces: InRule.Repository
Classes: RuleApplicationDef, RuleAppRef, RuleCatalogConnection
See Also: Creating a RuleCatalogConnection, Opening a Rule ApplicationDef for Authoring

The RuleApplicationDef object is used to dynamically create and modify rules and schema elements in code.

Load a specific revision of a rule application from the catalog

// Get a RuleAppRef object which will contain details about the rule app we are loading 
RuleAppRef ruleAppRef = connection.GetRuleAppRef("InvoiceApp");

// Load the RuleApplicationDef from the repository, specifying the GUID and Revision
// This can be retrieved by name or GUID, with option to specify label and revision
RuleApplicationDef ruleAppDef = connection.GetSpecificRuleAppRevision(ruleAppRef.Guid,
ruleAppRef.PublicRevision);

Load the latest revision of a rule application from the catalog

// Load the RuleApplicationDef from the repository, specifying the name 
RuleApplicationDef ruleAppDef = connection.GetLatestRuleAppRevision("RuleAppName");