Rank: Newbie
Joined: 1/18/2009 Posts: 4
|
I created a rule base with 2 concepts - Student and Grade and with two rulesets, each bound to a different concept. When I export to WFRules, the created C# code contains just one BusinessModel file - Subject.cs (and not the name of any of my concepts). And the code generated in this file contains the class representation of just one of the concepts in the rule base.
|
Rank: Advanced Member
Joined: 2/13/2007 Posts: 69 Location: Los Angeles
|
The generated Subject.cs file does contain one of your specified concepts. It's just that the name of the file is called Subject.cs. But the generated class itself is correct. The second concept is indeed missing.
Note that both rulesets are properly generated in the root of your exported solution: GradeRules.rules and StudentRules.rules
The limitation you run into is that currently we only export one Rule Policy (ruleset) as an executable example. But we assume that you will have to do some integration of the generated code with your current system. The 'Engine' project example should make this straightforward.
Note that if you use the SchemaImport adapter you will reference your own imported class in the Engine project. The binding to the rule policy is in that case to an instance of an object from the class you imported.
|