You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by wa...@apache.org on 2022/08/09 06:03:31 UTC

[dolphinscheduler] branch dev updated: [Feature-9978][UI] add node dependency type feature (#11235)

This is an automated email from the ASF dual-hosted git repository.

wanggenhua pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new c1c6d5921c [Feature-9978][UI] add node dependency type feature (#11235)
c1c6d5921c is described below

commit c1c6d5921c46f7ccc6c81ef286ed5b090a53de98
Author: Sheldon <39...@users.noreply.github.com>
AuthorDate: Tue Aug 9 14:03:26 2022 +0800

    [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>
---
 dolphinscheduler-ui/src/locales/en_US/project.ts             |  4 ++++
 dolphinscheduler-ui/src/locales/zh_CN/project.ts             |  4 ++++
 .../projects/workflow/definition/components/start-modal.tsx  | 12 ++++++++++++
 3 files changed, 20 insertions(+)

diff --git a/dolphinscheduler-ui/src/locales/en_US/project.ts b/dolphinscheduler-ui/src/locales/en_US/project.ts
index 918b49e592..599366ff91 100644
--- a/dolphinscheduler-ui/src/locales/en_US/project.ts
+++ b/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',
diff --git a/dolphinscheduler-ui/src/locales/zh_CN/project.ts b/dolphinscheduler-ui/src/locales/zh_CN/project.ts
index fd4ed8e624..5658bb827e 100644
--- a/dolphinscheduler-ui/src/locales/zh_CN/project.ts
+++ b/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分组',
diff --git a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx b/dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx
index 32e0765526..aa6bcc9e4e 100644
--- a/dolphinscheduler-ui/src/views/projects/workflow/definition/components/start-modal.tsx
+++ b/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'