Exemple #1
0
        public void Visit(BeginMappedProperty instruction, Func <ClarifyGenericMapEntry, ClarifyDataRow, bool> condition)
        {
            executeInstruction(() =>
            {
                var parentClarifyGenericMap = _genericStack.Peek();
                var key = instruction.Key.Resolve(_services).ToString();

                var childModel = new ModelInformation
                {
                    ModelName      = key,
                    ParentProperty = key,
                    AllowEmpty     = instruction.AllowEmpty
                };

                var clarifyGenericMap = new ClarifyGenericMapEntry
                {
                    ClarifyGeneric = parentClarifyGenericMap.ClarifyGeneric,
                    Model          = childModel,
                    Condition      = condition
                };

                parentClarifyGenericMap.AddChildGenericMap(clarifyGenericMap);
                _genericStack.Push(clarifyGenericMap);

                _modelStack.Push(childModel);
            });
        }
Exemple #2
0
 public void Visit(BeginMappedProperty instruction)
 {
     executeInstruction(() =>
     {
         Visit(instruction, null);
     });
 }
Exemple #3
0
        public void Visit(BeginActEntry instruction)
        {
            executeInstruction(() =>
            {
                _configurations.Add(instruction);
                _entries.Push(instruction);

                var begin = new BeginMappedProperty
                {
                    Key        = new DynamicValue("details"),
                    AllowEmpty = true,
                };

                Visit(begin, (entry, row) => _workflowObject.Type.EqualsIgnoreCase(entry.Entity) && row.AsInt("act_code") == instruction.Code);
            });
        }
        public void Visit(BeginMappedProperty instruction)
        {
            var parentClarifyGenericMap = _genericStack.Peek();
            var key = instruction.Key.Resolve(_services).ToString();

            var childModel = new ModelInformation
            {
                ModelName      = key,
                ParentProperty = key,
                AllowEmpty     = instruction.AllowEmpty
            };

            var clarifyGenericMap = new ClarifyGenericMapEntry
            {
                ClarifyGeneric = parentClarifyGenericMap.ClarifyGeneric,
                Model          = childModel
            };

            parentClarifyGenericMap.AddChildGenericMap(clarifyGenericMap);
            _genericStack.Push(clarifyGenericMap);

            _modelStack.Push(childModel);
        }
Exemple #5
0
 public void Visit(BeginMappedProperty instruction)
 {
 }
 public void Visit(BeginMappedProperty instruction)
 {
     _instructions.Add(instruction);
 }