示例#1
0
        public override bool IsOriginStateNotNeeded(Node node, string sourceState)
        {
            if (string.IsNullOrEmpty(sourceState))
                return true;

            return (node.SourceState.Equals(sourceState) || node.SourceState.Equals("All"));
        }
示例#2
0
        private bool IsOriginStateNotNeeded(Node node, string statusOrigem)
        {
            if (string.IsNullOrEmpty(statusOrigem))
                return true;

            return (node.StatusOrigem.Equals(statusOrigem) || node.StatusOrigem.Equals("All"));
        }
示例#3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="origem"></param>
        /// <param name="trans"></param>
        /// <returns></returns>
        public bool CheckExcludeAtivity(string origem, Node node, Transition trans)
        {
            if (node.StatusOrigem.Equals("All") && trans.But == null)
            {
                return true;
            }

            return (node.StatusOrigem.Equals("All") && !trans.But.Any(x => x.Equals(origem)));
        }
示例#4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="origem"></param>
        /// <param name="trans"></param>
        /// <returns></returns>
        public override bool CheckExcludeAtivity(string sourceState, Node node, Transition trans)
        {
            if (node.SourceState.Equals("All") && trans.But == null)
            {
                return true;
            }

            return (node.SourceState.Equals("All") && !trans.But.Any(x => x.Equals(sourceState)));
        }
示例#5
0
 public abstract bool IsOriginStateNotNeeded(Node node, string sourceState);