Beispiel #1
0
        public virtual IList<Activity> GetActivities(WorkFlowContext context, IControlAccess access = null)
        {
            var atividades = from w in GetNode().WorkFlow
                             from i in w.Transitions
                             where w.Area.Equals(context.Area)
                             && (w.SourceState.Equals(context.SourceState) || context.Match.CheckExcludeAtivity(context.SourceState, w, i))
                             && context.Match.CheckConditions(i.Condition, context)
                             select new Activity { Operation = i.Operation, Description = i.Description };

            return (access != null) ? access.checkAccessActivity(atividades.ToList()) : atividades.ToList();
        }
Beispiel #2
0
        public IList<Activity> GetActivities(string origem, string area, Dictionary<string, List<string>> parameters = null, IControlAccess access = null)
        {
            var atividades = from w in node.WorkFlow
                             from i in w.Transitions
                             where w.Area.Equals(area)
                             && (w.StatusOrigem.Equals(origem) || CheckExcludeAtivity(origem, w, i))
                             && CheckConditions(i.Condicao, parameters)
                             select new Activity { Operacao = i.Operacao, Descricao = i.Descricao };

            return (access != null) ? access.checkAccessActivity(atividades.ToList()) : atividades.ToList();
        }
Beispiel #3
0
        public IList <Activity> GetActivities(string origem, string area, Dictionary <string, List <string> > parameters = null, IControlAccess access = null)
        {
            var atividades = from w in node.WorkFlow
                             from i in w.Transitions
                             where w.Area.Equals(area) &&
                             (w.StatusOrigem.Equals(origem) || CheckExcludeAtivity(origem, w, i)) &&
                             CheckConditions(i.Condicao, parameters)
                             select new Activity {
                Operacao = i.Operacao, Descricao = i.Descricao
            };

            return((access != null) ? access.checkAccessActivity(atividades.ToList()) : atividades.ToList());
        }
Beispiel #4
0
        public virtual IList <Activity> GetActivities(WorkFlowContext context, IControlAccess access = null)
        {
            var atividades = from w in GetNode().WorkFlow
                             from i in w.Transitions
                             where w.Area.Equals(context.Area) &&
                             (w.SourceState.Equals(context.SourceState) || context.Match.CheckExcludeAtivity(context.SourceState, w, i)) &&
                             context.Match.CheckConditions(i.Condition, context)
                             select new Activity {
                Operation = i.Operation, Description = i.Description
            };

            return((access != null) ? access.checkAccessActivity(atividades.ToList()) : atividades.ToList());
        }