All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spin.eca59.concept.DefaultRuleResult Maven / Gradle / Ivy

There is a newer version: 1.1.7
Show newest version
/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * This program is free software; you can redistribute it and/or modify it    *
 * under the terms version 2 or later of the                                  *
 * GNU General Public License as published                                    *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program; if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * Copyright (C) 2003-2019 E.R.P. Consultores y Asociados, C.A.               *
 * All Rights Reserved.                                                       *
 * Contributor(s): Yamel Senih www.erpya.com                                  *
 *****************************************************************************/
package org.spin.eca59.concept;

/**
 * 	Default Result Implementation
 *	@author Yamel Senih, [email protected], ERPCyA http://www.erpya.com
 */
public class DefaultRuleResult implements RuleResult {
	
	private Object result;
	private String description;
	
	public DefaultRuleResult(Object result, Object description) {
		this.result = result;
		if(description != null) {
			this.description = (String) description;
		}
	}
	
	/**
	 * Get description from rule
	 * @return
	 */
	public String getDescription() {
		return description;
	}
	
	/**
	 * Get result from execution
	 * @return
	 */
	public Object getResult() {
		return result;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy