public override bool IsOriginStateNotNeeded(Node node, string sourceState) { if (string.IsNullOrEmpty(sourceState)) return true; return (node.SourceState.Equals(sourceState) || node.SourceState.Equals("All")); }
private bool IsOriginStateNotNeeded(Node node, string statusOrigem) { if (string.IsNullOrEmpty(statusOrigem)) return true; return (node.StatusOrigem.Equals(statusOrigem) || node.StatusOrigem.Equals("All")); }
/// <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))); }
public abstract bool IsOriginStateNotNeeded(Node node, string sourceState);