示例#1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void setUp()
        {
            humanTask = createElement(casePlanModel, "aHumanTask", typeof(HumanTask));

            planningTable = createElement(casePlanModel, "aPlanningTable", typeof(PlanningTable));

            discretionaryItem            = createElement(planningTable, "DI_aHumanTask", typeof(DiscretionaryItem));
            discretionaryItem.Definition = humanTask;
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void setUp()
        {
            milestone = createElement(casePlanModel, "aMilestone", typeof(Milestone));

            planningTable = createElement(casePlanModel, "aPlanningTable", typeof(PlanningTable));

            discretionaryItem            = createElement(planningTable, "DI_aMilestone", typeof(DiscretionaryItem));
            discretionaryItem.Definition = milestone;
        }
示例#3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUp()
        public virtual void setUp()
        {
            stage = createElement(casePlanModel, "aStage", typeof(Stage));

            planningTable = createElement(casePlanModel, "aPlanningTable", typeof(PlanningTable));

            discretionaryItem            = createElement(planningTable, "DI_aStage", typeof(DiscretionaryItem));
            discretionaryItem.Definition = stage;
        }
示例#4
0
        protected internal virtual PlanItemDefinition getDefinition(CmmnElement element)
        {
            if (isPlanItem(element))
            {
                PlanItem planItem = (PlanItem)element;
                return(planItem.Definition);
            }
            else
            {
                if (isDiscretionaryItem(element))
                {
                    DiscretionaryItem discretionaryItem = (DiscretionaryItem)element;
                    return(discretionaryItem.Definition);
                }
            }

            return(null);
        }
示例#5
0
        protected internal virtual PlanItemControl getItemControl(CmmnElement element)
        {
            if (isPlanItem(element))
            {
                PlanItem planItem = (PlanItem)element;
                return(planItem.ItemControl);
            }
            else
            {
                if (isDiscretionaryItem(element))
                {
                    DiscretionaryItem discretionaryItem = (DiscretionaryItem)element;
                    return(discretionaryItem.ItemControl);
                }
            }

            return(null);
        }