1818package org .apache .dolphinscheduler .service .process ;
1919
2020import org .apache .dolphinscheduler .common .enums .AuthorizationType ;
21- import org .apache .dolphinscheduler .common .enums .TaskGroupQueueStatus ;
2221import org .apache .dolphinscheduler .common .graph .DAG ;
2322import org .apache .dolphinscheduler .common .model .TaskNodeRelation ;
24- import org .apache .dolphinscheduler .dao .entity .Command ;
2523import org .apache .dolphinscheduler .dao .entity .DagData ;
2624import org .apache .dolphinscheduler .dao .entity .DataSource ;
2725import org .apache .dolphinscheduler .dao .entity .Schedule ;
28- import org .apache .dolphinscheduler .dao .entity .TaskDefinition ;
2926import org .apache .dolphinscheduler .dao .entity .TaskDefinitionLog ;
30- import org .apache .dolphinscheduler .dao .entity .TaskGroupQueue ;
3127import org .apache .dolphinscheduler .dao .entity .TaskInstance ;
3228import org .apache .dolphinscheduler .dao .entity .User ;
3329import org .apache .dolphinscheduler .dao .entity .WorkflowDefinition ;
3430import org .apache .dolphinscheduler .dao .entity .WorkflowDefinitionLog ;
3531import org .apache .dolphinscheduler .dao .entity .WorkflowInstance ;
3632import org .apache .dolphinscheduler .dao .entity .WorkflowTaskRelation ;
3733import org .apache .dolphinscheduler .dao .entity .WorkflowTaskRelationLog ;
38- import org .apache .dolphinscheduler .service .exceptions .CronParseException ;
3934import org .apache .dolphinscheduler .service .model .TaskNode ;
4035
4136import java .util .List ;
42- import java .util .Map ;
4337import java .util .Optional ;
4438
4539public interface ProcessService {
4640
47- WorkflowInstance constructWorkflowInstance (Command command ,
48- String host ) throws CronParseException ;
49-
5041 Optional <WorkflowInstance > findWorkflowInstanceDetailById (int workflowInstanceId );
5142
5243 WorkflowInstance findWorkflowInstanceById (int workflowInstanceId );
5344
5445 WorkflowDefinition findWorkflowDefinition (Long workflowDefinitionCode , int workflowDefinitionVersion );
5546
56- WorkflowDefinition findWorkflowDefinitionByCode (Long workflowDefinitionCode );
57-
5847 int deleteWorkflowInstanceById (int workflowInstanceId );
5948
60- int deleteAllSubWorkflowByParentId (int workflowInstanceId );
61-
62- void removeTaskLogFile (Integer workflowInstanceId );
63-
6449 List <Long > findAllSubWorkflowDefinitionCode (long workflowDefinitionCode );
6550
6651 String getTenantForWorkflow (String tenantCode , int userId );
6752
68- int deleteWorkflowMapByParentId (int parentWorkflowId );
69-
7053 WorkflowInstance findSubWorkflowInstance (Integer parentWorkflowInstanceId , Integer parentTaskId );
7154
7255 WorkflowInstance findParentWorkflowInstance (Integer subWorkflowInstanceId );
7356
74- void changeOutParam (TaskInstance taskInstance );
75-
76- Schedule querySchedule (int id );
77-
7857 List <Schedule > queryReleaseSchedulerListByWorkflowDefinitionCode (long workflowDefinitionCode );
7958
8059 DataSource findDataSourceById (int id );
@@ -83,16 +62,12 @@ WorkflowInstance constructWorkflowInstance(Command command,
8362
8463 User getUserById (int userId );
8564
86- String formatTaskAppId (TaskInstance taskInstance );
87-
8865 int switchVersion (WorkflowDefinition workflowDefinition , WorkflowDefinitionLog workflowDefinitionLog );
8966
9067 int switchWorkflowTaskRelationVersion (WorkflowDefinition workflowDefinition );
9168
9269 int switchTaskDefinitionVersion (long taskCode , int taskVersion );
9370
94- String getResourceIds (TaskDefinition taskDefinition );
95-
9671 int saveTaskDefine (User operator , long projectCode , List <TaskDefinitionLog > taskDefinitionLogs , Boolean syncDefine );
9772
9873 int saveWorkflowDefine (User operator , WorkflowDefinition workflowDefinition , Boolean syncDefine ,
@@ -113,16 +88,8 @@ int saveTaskRelation(User operator, long projectCode, long workflowDefinitionCod
11388 List <TaskNode > transformTask (List <WorkflowTaskRelation > taskRelationList ,
11489 List <TaskDefinitionLog > taskDefinitionLogs );
11590
116- TaskGroupQueue insertIntoTaskGroupQueue (Integer taskId ,
117- String taskName ,
118- Integer groupId ,
119- Integer workflowInstanceId ,
120- Integer priority ,
121- TaskGroupQueueStatus status );
122-
12391 String findConfigYamlByName (String clusterName );
12492
12593 void forceWorkflowInstanceSuccessByTaskInstanceId (TaskInstance taskInstance );
12694
127- void setGlobalParamIfCommanded (WorkflowDefinition workflowDefinition , Map <String , String > cmdParam );
12895}
0 commit comments