/// <inheritdoc /> protected override void InitializeLeftPath() { if (Entity.LeftPath != null) { LeftPath = DataModelConditionEvent.EventArgumentType != null ? new DataModelPath(EventPredicateWrapperDataModel.Create(DataModelConditionEvent.EventArgumentType), Entity.LeftPath) : null; } }
/// <inheritdoc /> public void Save() { // Do not save an invalid state if (!IsValid) { return; } Entity.Path = Path; Entity.DataModelId = DataModelId; Entity.WrapperType = Target switch { ListPredicateWrapperDataModel _ => PathWrapperType.List, EventPredicateWrapperDataModel _ => PathWrapperType.Event, _ => PathWrapperType.None }; }
/// <inheritdoc /> protected override void InitializeRightPath() { if (PredicateType == ProfileRightSideType.Dynamic && Entity.RightPath != null) { // Right side dynamic using event arguments if (Entity.RightPath.WrapperType == PathWrapperType.Event) { RightPath = DataModelConditionEvent.EventArgumentType != null ? new DataModelPath(EventPredicateWrapperDataModel.Create(DataModelConditionEvent.EventArgumentType), Entity.RightPath) : null; } // Right side dynamic else { RightPath = new DataModelPath(null, Entity.RightPath); } } }