Ejemplo n.º 1
0
 public TransitionInstance(Transition t)
 {
     transition = t;
 }
Ejemplo n.º 2
0
        private XElement writeTransition(Transition transition)
        {
            if (transition == null) { return null; }

            XElement transitionElement = new XElement(
                xN + TRANSITION,
                new XAttribute(ID, transition.Id),
                new XAttribute(FROM, transition.FromNode.Id),
                new XAttribute(TO, transition.ToNode.Id),
                new XAttribute(NAME, transition.Name),
                new XAttribute(DISPLAY_NAME, transition.DisplayName),
                new XElement(xN + CONDITION, transition.Condition),
                writeExtendedAttributes(transition.ExtendedAttributes)
                );
            return transitionElement;
        }