コード例 #1
0
        public virtual IProcessInstanceQuery EndOr()
        {
            if (!inOrStatement)
            {
                throw new ActivitiException("endOr() can only be called after calling or()");
            }

            inOrStatement        = false;
            currentOrQueryObject = null;
            return(this);
        }
コード例 #2
0
        public virtual IProcessInstanceQuery Or()
        {
            if (inOrStatement)
            {
                throw new ActivitiException("the query is already in an or statement");
            }

            inOrStatement        = true;
            currentOrQueryObject = new ProcessInstanceQueryImpl();
            orQueryObjects.Add(currentOrQueryObject);
            return(this);
        }