You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by R1Dev February 28, 2024
Hello!
I added the classes to ef as herited classes like https://github.com/alexreich/RulesEngineEditor did.
When I Get the WorkflowData object, I get 2 Rules Properties and Rules Engine wants to have data in (RulesEngine) one
How to proceed to get a single propertie?
public class WorkflowData : RulesEngine.Models.Workflow
{
public long Id { get; set; }
public Guid TenantId { get; set; }
public new IEnumerable<RuleData> Rules { get; set; }
public new IEnumerable<ScopedParamData> GlobalParams { get; set; }
public int Seq { get; set; }
}
The text was updated successfully, but these errors were encountered:
If I remove
public new IEnumerable Rules { get; set; }
public new IEnumerable GlobalParams { get; set; }
I get following error in migration :
Unable to determine the relationship represented by navigation 'Rule.Actions' of type 'RuleActions'. Either manually configure the relationship, or ignore this property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
your workflow could contain multiple Rules and ChildRules. This is by default. in your example your Include will get all parent Rules in that workflow, ThenInclude gets all of the child rules for each parent rule. it does not go deeper.
Discussed in #587
Originally posted by R1Dev February 28, 2024
Hello!
I added the classes to ef as herited classes like https://github.com/alexreich/RulesEngineEditor did.
When I Get the WorkflowData object, I get 2 Rules Properties and Rules Engine wants to have data in (RulesEngine) one
How to proceed to get a single propertie?
The text was updated successfully, but these errors were encountered: