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.dto;
017
018
019import org.dromara.warm.flow.core.FlowFactory;
020import org.dromara.warm.flow.core.entity.Definition;
021import org.dromara.warm.flow.core.entity.Node;
022import org.dromara.warm.flow.core.entity.Skip;
023
024import java.util.ArrayList;
025import java.util.List;
026
027
028/**
029 * 流程初始化数据集合
030 *
031 * @author warm
032 * @since 2023/3/30 14:27
033 */
034public class FlowCombine {
035    /**
036     * 所有的流程定义
037     */
038    private Definition definition = FlowFactory.newDef();
039
040    /**
041     * 所有的流程节点
042     */
043    private List<Node> allNodes = new ArrayList<>();
044
045    /**
046     * 所有的流程节点跳转关联
047     */
048    private List<Skip> allSkips = new ArrayList<>();
049
050    public Definition getDefinition() {
051        return definition;
052    }
053
054    public void setDefinition(Definition definition) {
055        this.definition = definition;
056    }
057
058    public List<Node> getAllNodes() {
059        return allNodes;
060    }
061
062    public void setAllNodes(List<Node> allNodes) {
063        this.allNodes = allNodes;
064    }
065
066    public List<Skip> getAllSkips() {
067        return allSkips;
068    }
069
070    public void setAllSkips(List<Skip> allSkips) {
071        this.allSkips = allSkips;
072    }
073}