Пример #1
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            //UserRoles[1:n]
            this.usrGroups.Clear();
            List <string> groups = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "BelongTo");

            foreach (string group in groups)
            {
                this.usrGroups.Add(dataset.GetGroupItem(group));
            }
            List <string> tasks;

            //SubmitTasks[1:n]
            this.taskSubmit.Clear();
            tasks = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Submit");
            foreach (string taskname in tasks)
            {
                this.taskSubmit.Add(dataset.GetTaskItem(taskname));
            }
            //HandleTasks[1:n]
            this.taskHandle.Clear();
            tasks = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Handle");
            foreach (string taskname in tasks)
            {
                this.taskHandle.Add(dataset.GetTaskItem(taskname));
            }
        }
Пример #2
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            Record record;

            //Procedure
            record         = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "BelongTo");
            this.procedure = dataset.GetProcedureItem(record.Name);
            //NextStep
            record        = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Next");
            this.nextStep = dataset.GetStepItem(record.Name);
            //PreviousStep
            record       = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Previous");
            this.preStep = dataset.GetStepItem(record.Name);
            if (this.IsFeedback == true)
            {
                return;
            }
            //HandleRole
            record          = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "HandleBy");
            this.handleRole = dataset.GetGroupItem(record.Name);
        }