Browse Source

[Feature-9978][UI] add node dependency type feature (#11235)

* add only current node only,preceding nodes,later nodes options to execute process instance

Co-authored-by: sheldonliu <sheldonliu>
Sheldon 2 years ago
parent
commit
c1c6d5921c

+ 4 - 0
dolphinscheduler-ui/src/locales/en_US/project.ts

@@ -90,6 +90,10 @@ export default {
     next_five_execution_times: 'Next five execution times',
     execute_time: 'Execute time',
     failure_strategy: 'Failure Strategy',
+    node_execution: 'Node Execution',
+    backward_execution: 'Backward execution',
+    forward_execution: 'Forward execution',
+    current_node_execution: 'Execute only the current node',
     notification_strategy: 'Notification Strategy',
     workflow_priority: 'Workflow Priority',
     worker_group: 'Worker Group',

+ 4 - 0
dolphinscheduler-ui/src/locales/zh_CN/project.ts

@@ -92,6 +92,10 @@ export default {
     next_five_execution_times: '接下来五次执行时间',
     execute_time: '执行时间',
     failure_strategy: '失败策略',
+    node_execution: '节点执行',
+    backward_execution: '向后执行',
+    forward_execution: '向前执行',
+    current_node_execution: '仅执行当前节点',
     notification_strategy: '通知策略',
     workflow_priority: '流程优先级',
     worker_group: 'Worker分组',

+ 12 - 0
dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx

@@ -255,6 +255,18 @@ export default defineComponent({
               </NSpace>
             </NRadioGroup>
           </NFormItem>
+          <NFormItem
+            label={t('project.workflow.node_execution')}
+            path='taskDependType'
+          >
+            <NRadioGroup v-model:value={this.startForm.taskDependType}>
+              <NSpace>
+                <NRadio value='TASK_POST'>{t('project.workflow.backward_execution')}</NRadio>
+                <NRadio value='TASK_PRE'>{t('project.workflow.forward_execution')}</NRadio>
+                <NRadio value='TASK_ONLY'>{t('project.workflow.current_node_execution')}</NRadio>
+              </NSpace>
+            </NRadioGroup>
+          </NFormItem>
           <NFormItem
             label={t('project.workflow.notification_strategy')}
             path='warningType'