Exemplo n.º 1
0
        /// <summary>
        /// Check if the scope is doable
        /// </summary>
        /// <param name="proposedScope"></param>
        /// <returns></returns>
        public override string ScopeCheck(string proposedScope)
        {
            if (proposedScope == SMFlowContainer.NOSCOPE || string.IsNullOrEmpty(ConditionID) || ConditionID[0] == '(')
            {
                return(proposedScope);
            }
            int lastPeriod = ConditionID.LastIndexOf('.');

            if (lastPeriod < 0)
            {
                U.LogPopup("Expected a period. {0}", ConditionID);
                return(proposedScope);
            }
            string propPath = ConditionID.Substring(0, lastPeriod);

            return(SMFlowContainer.DetermineScope(proposedScope, propPath));
        }