1

I'm trying to develop a completely separate Front-End, with a Rule Editor.

When I try to declare de rule editor in my MVC, the RuleEditor Builder needs the Rule Object, but I don't have access to this, because is declared in the API.

Is it possible to render the RuleEditor without direct reference to the Rule Model?

Fengyang Wang
  • 11,901
  • 2
  • 38
  • 67

1 Answers1

0

Instead of referencing a declared type as your CodeEffects source object you can use Source XML to describe your type. This is more common and convenient way of controlling which of your properties, fields and methods/actions the rule editor should use. Details can be found here.

Alex
  • 566
  • 1
  • 6
  • 14
  • ¿The Source XML, in the element source, needs to reference the .net class and assembly? If i try to reference a class that is in the backend and not in the frontend, the editor is not rendering. Thanks! – Jonathan Schein Nov 03 '16 at 14:44
  • You can set the value of "persisted" attribute to False and value of "type" attribute to an empty string in order to tell Source XML to work with only properties and methods that this doc declares without reflecting any type as its source. For example: This functionality belongs to the SourceAttribute.PersistTypeNameInRuleXml property. Details are here: http://codeeffects.com/Doc/Business-Rule-Fact-Source-Attribute – Alex Nov 03 '16 at 20:11
  • @JonathanSchein Please consider marking this post as answered. Thanks. – Alex Nov 07 '16 at 18:54