001 /**
002 * Copyright 2005-2013 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.kew.routemanager;
017
018 import java.util.List;
019 import java.util.Map;
020
021 import org.kuali.rice.core.api.uif.RemotableAttributeError;
022 import org.kuali.rice.kew.routeheader.DocumentContent;
023 import org.kuali.rice.kew.rule.WorkflowRuleAttribute;
024
025
026 public class ExplodingRuleAttribute implements WorkflowRuleAttribute {
027
028 public static boolean dontExplode = false;
029
030 public boolean isMatch(DocumentContent docContent, List ruleExtensions) {
031 if (dontExplode) {
032 return true;
033 }
034 throw new RuntimeException("I'm the exploder");
035 }
036
037 public List getRuleRows() {
038 return null;
039 }
040
041 public List getRoutingDataRows() {
042 return null;
043 }
044
045 public String getDocContent() {
046 return null;
047 }
048
049 public List getRuleExtensionValues() {
050 return null;
051 }
052
053 public List<RemotableAttributeError> validateRoutingData(Map paramMap) {
054 return null;
055 }
056
057 public List<RemotableAttributeError> validateRuleData(Map paramMap) {
058 return null;
059 }
060
061 public void setRequired(boolean required) {
062 }
063
064 public boolean isRequired() {
065 return false;
066 }
067 }