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

org.yaoqiang.bpmn.model.elements.events.ConditionalEventDefinition Maven / Gradle / Ivy

package org.yaoqiang.bpmn.model.elements.events;

import org.yaoqiang.bpmn.model.elements.XMLElement;
import org.yaoqiang.bpmn.model.elements.core.common.Expression;

/**
 * ConditionalEventDefinition
 * 
 * @author Shi Yaoqiang([email protected])
 */
public class ConditionalEventDefinition extends EventDefinition {

	private static final long serialVersionUID = -1330595032707835365L;

	public ConditionalEventDefinition(XMLElement parent) {
		super(parent, "conditionalEventDefinition");
	}

	protected void fillStructure() {
		Expression refExpression = new Expression(this, "condition");

		super.fillStructure();
		add(refExpression);
	}
	
	public final String getConditionString() {
		return getConditionExpression().toValue();
	}
	
	public final Expression getConditionExpression() {
		return (Expression) get("condition");
	}
	
	public final void setConditionExpression(String expression) {
		getConditionExpression().setValue(expression);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy