org.jetlinks.rule.engine.api.scheduler.ScheduleJob Maven / Gradle / Ivy
package org.jetlinks.rule.engine.api.scheduler;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.jetlinks.rule.engine.api.model.Condition;
import javax.annotation.Nonnull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* 调度任务
*
* @author zhouhao
* @since 1.0
*/
@Getter
@Setter
public class ScheduleJob implements Serializable {
private static final long serialVersionUID = -1L;
/**
* 规则实例ID
*/
@Nonnull
private String instanceId;
/**
* 规则ID
*/
@Nonnull
private String ruleId;
/**
* 节点ID
*/
@Nonnull
private String nodeId;
/**
* 任务名称
*/
private String name;
/**
* 执行器
*/
@Nonnull
private String executor;
/**
* 执行器配置信息
*/
private Map configuration;
/**
* 输入节点
*/
private List inputs = new ArrayList<>();
/**
* 监听事件输入
*/
private List events = new ArrayList<>();
/**
* 监听事件输出
*/
private List eventOutputs = new ArrayList<>();
/**
* 输出节点
*/
private List