protected void FeedCasePlanItem(BaseCasePlanItemInstance elt)
 {
     elt.NbOccurrence    = NbOccurrence;
     elt.RepetitionRule  = (RepetitionRule)RepetitionRule?.Clone();
     elt.EntryCriterions = EntryCriterions.Select(_ => (Criteria)_.Clone()).ToList();
     elt.ExitCriterions  = ExitCriterions.Select(_ => (Criteria)_.Clone()).ToList();
 }
 public object Clone()
 {
     return(new CaseEltInstance
     {
         Children = Children.Select(_ => (CaseEltInstance)_.Clone()).ToList(),
         EltId = EltId,
         Id = Id,
         Name = Name,
         TransitionHistories = TransitionHistories.Select(_ => (CaseEltInstanceTransitionHistory)_.Clone()).ToList(),
         Type = Type,
         Criterias = Criterias.Select(_ => (Criteria)_.Clone()).ToList(),
         FileState = FileState,
         IsBlocking = IsBlocking,
         ManualActivationRule = (ManualActivationRule)ManualActivationRule?.Clone(),
         MilestoneState = MilestoneState,
         NbOccurrence = NbOccurrence,
         Properties = Properties.Select(_ => (CaseEltInstanceProperty)_.Clone()).ToList(),
         RepetitionRule = (RepetitionRule)RepetitionRule?.Clone(),
         TakeStageState = TakeStageState
     });
 }