Promote a Rule Application from Catalog to Catalog

  • Updated

Prerequisites: Valid RuleCatalogConnection to both Source and Target Catalog
Namespaces: InRule.Repository
Classes: RuleApplicationDef, RuleAppRef, RuleCatalogConnection
See Also: Creating a RuleCatalogConnection

// Get a reference to the rule application from the source Catalog (doing by name here, label and revision
could be used as well)
RuleAppRef ruleAppRef = sourceConn.GetRuleAppRef("AutoDepreciation");

// Get the rule application from the Source Catalog
RuleApplicationDef sourceRuleAppDef = sourceCo
n.GetSpecificRuleAppRevision(ruleAppRef.Guid, ruleAppRef.PublicRevision);

// Promote the rule application to the Target Catalog
RuleApplicationDef targetRuleAppDef = targetConn.PromoteRuleApplication(sourceRuleAppDef,
"Description", "Comments");

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.