Package org.alfresco.service.cmr.rule

Examples of org.alfresco.service.cmr.rule.RuleServiceException


      if (parameterMapping.isMandatory() && value == null) {
        /*
         * We throw RuleServiceException just as ParameterizedItemAbstractBase does when it encounters a missing
         * value for a mandatory property.
         */
        throw new RuleServiceException(String.format("Parameter '%s' is mandatory, but no value was given.",
            parameterMapping.getName()));
      }
      /* Single values for a multi-valued property are wrapped in an ArrayList automatically. */
      if (parameterMapping.isMultivalued() && (value instanceof Collection) == false) {
        value = new ArrayList<Serializable>(Arrays.asList(value));
View Full Code Here

TOP

Related Classes of org.alfresco.service.cmr.rule.RuleServiceException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.