snaker-core/src/main/java/org/snaker/engine/model/ProcessModel.java
public List<TaskModel> getTaskModels() {
        if(taskModels.isEmpty()) {
            synchronized (lock) {
                if(taskModels.isEmpty())
                    buildModels(taskModels, getStart().getNextModels(TaskModel.class), TaskModel.class);
            }
        }
        return taskModels;
    }
public List<TaskModel> getTaskModels() {
        if(taskModels.isEmpty()) {
            synchronized (lock) {
                if(taskModels.isEmpty())
                    buildModels(taskModels, getStart().getNextModels(TaskModel.class), TaskModel.class);
            }
        }
        return taskModels;
    }
public List < TaskModel > getTaskModels ( ) { if ( taskModels . isEmpty ( ) ) { synchronized ( lock ) { if ( taskModels . isEmpty ( ) ) buildModels ( taskModels , getStart ( ) . getNextModels ( TaskModel . class ) , TaskModel . class ) ; } } return taskModels ; }
获取所有的有序任务模型集合
@return List<TaskModel> 任务模型集合
获取所有的有序任务模型集合