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

com.yomahub.liteflow.core.NodeBooleanComponent Maven / Gradle / Ivy

The newest version!
package com.yomahub.liteflow.core;

import com.yomahub.liteflow.slot.DataBus;

/**
 * BOOLEAN类型的抽象节点
 *
 * @author Bryan.Zhang
 * @since 2.12.0
 */
public abstract class NodeBooleanComponent extends NodeComponent {

	@Override
	public void process() throws Exception {
		boolean result = this.processBoolean();
		this.getSlot().setIfResult(this.getMetaValueKey(), result);
	}

	public abstract boolean processBoolean() throws Exception;

	@Override
	@SuppressWarnings("unchecked")
	public Boolean getItemResultMetaValue(Integer slotIndex) {
		return DataBus.getSlot(slotIndex).getIfResult(this.getMetaValueKey());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy