001/* 002 * Copyright 2024-2025, Warm-Flow (290631660@qq.com). 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.dromara.warm.flow.core.entity; 017 018import org.dromara.warm.flow.core.FlowFactory; 019 020import java.util.Date; 021 022/** 023 * 节点跳转关联对象 flow_skip 024 * 025 * @author warm 026 * @since 2023-03-29 027 */ 028public interface Skip extends RootEntity { 029 030 public Long getId(); 031 032 public Skip setId(Long id); 033 034 public Date getCreateTime(); 035 036 public Skip setCreateTime(Date createTime); 037 038 public Date getUpdateTime(); 039 040 public Skip setUpdateTime(Date updateTime); 041 042 public String getTenantId(); 043 044 public Skip setTenantId(String tenantId); 045 046 public String getDelFlag(); 047 048 public Skip setDelFlag(String delFlag); 049 050 public Long getDefinitionId(); 051 052 public Skip setDefinitionId(Long definitionId); 053 054 public Long getNodeId(); 055 056 public Skip setNodeId(Long nodeId); 057 058 public String getNowNodeCode(); 059 060 public Skip setNowNodeCode(String nowNodeCode); 061 062 public Integer getNowNodeType(); 063 064 public Skip setNowNodeType(Integer nowNodeType); 065 066 public String getNextNodeCode(); 067 068 public Skip setNextNodeCode(String nextNodeCode); 069 070 public Integer getNextNodeType(); 071 072 public Skip setNextNodeType(Integer nextNodeType); 073 074 public String getSkipName(); 075 076 public Skip setSkipName(String skipName); 077 078 public String getSkipType(); 079 080 public Skip setSkipType(String skipType); 081 082 public String getSkipCondition(); 083 084 public Skip setSkipCondition(String skipCondition); 085 086 public String getCoordinate(); 087 088 public Skip setCoordinate(String coordinate); 089 default Skip copy() { 090 return FlowFactory.newSkip() 091 .setId(getId()) 092 .setCreateTime(getCreateTime()) 093 .setUpdateTime(getUpdateTime()) 094 .setTenantId(getTenantId()) 095 .setDelFlag(getDelFlag()) 096 .setDefinitionId(getDefinitionId()) 097 .setNowNodeCode(getNowNodeCode()) 098 .setNowNodeType(getNowNodeType()) 099 .setNextNodeCode(getNextNodeCode()) 100 .setNextNodeType(getNextNodeType()) 101 .setSkipName(getSkipName()) 102 .setSkipType(getSkipType()) 103 .setSkipCondition(getSkipCondition()) 104 .setCoordinate(getCoordinate()); 105 } 106 107}