public override bool IsOriginStateNotNeeded(Node node, string sourceState)
        {
            if (string.IsNullOrEmpty(sourceState))
                return true;

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

            return (node.StatusOrigem.Equals(statusOrigem) || node.StatusOrigem.Equals("All"));
        }
Example #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)));
        }
        /// <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)));
        }
Example #5
0
 public abstract bool IsOriginStateNotNeeded(Node node, string sourceState);