Search in sources :

Example 6 with BatchTaskTask

use of com.dtstack.taier.dao.domain.BatchTaskTask in project Taier by DTStack.

the class BatchTaskTaskService method getTaskTasksByTaskIdAndTasks.

/**
 * 根据taskId和List<BatchTask>生成List<BatchTaskTask>
 * @param taskId
 * @param tasks
 * @return
 */
private List<BatchTaskTask> getTaskTasksByTaskIdAndTasks(Long taskId, List<BatchTask> tasks) {
    List<BatchTaskTask> taskTasks = Lists.newArrayList();
    for (BatchTask task : tasks) {
        BatchTaskTask taskTask = new BatchTaskTask();
        taskTask.setParentTaskId(task.getId());
        taskTask.setTenantId(task.getTenantId());
        taskTask.setTaskId(taskId);
        taskTasks.add(taskTask);
    }
    return taskTasks;
}
Also used : BatchTaskTask(com.dtstack.taier.dao.domain.BatchTaskTask) BatchTask(com.dtstack.taier.dao.domain.BatchTask)

Aggregations

BatchTaskTask (com.dtstack.taier.dao.domain.BatchTaskTask)6 JSON (com.alibaba.fastjson.JSON)2 JSONArray (com.alibaba.fastjson.JSONArray)2 JSONObject (com.alibaba.fastjson.JSONObject)2 JSONPath (com.alibaba.fastjson.JSONPath)2 TypeReference (com.alibaba.fastjson.TypeReference)2 ClientCache (com.dtstack.dtcenter.loader.client.ClientCache)2 IClient (com.dtstack.dtcenter.loader.client.IClient)2 IKerberos (com.dtstack.dtcenter.loader.client.IKerberos)2 ColumnMetaDTO (com.dtstack.dtcenter.loader.dto.ColumnMetaDTO)2 SqlQueryDTO (com.dtstack.dtcenter.loader.dto.SqlQueryDTO)2 ISourceDTO (com.dtstack.dtcenter.loader.dto.source.ISourceDTO)2 DataSourceType (com.dtstack.dtcenter.loader.source.DataSourceType)2 PatternConstant (com.dtstack.taier.common.constant.PatternConstant)2 CatalogueType (com.dtstack.taier.common.enums.CatalogueType)2 Deleted (com.dtstack.taier.common.enums.Deleted)2 DependencyType (com.dtstack.taier.common.enums.DependencyType)2 DictType (com.dtstack.taier.common.enums.DictType)2 EComponentType (com.dtstack.taier.common.enums.EComponentType)2 EDeployType (com.dtstack.taier.common.enums.EDeployType)2