From 75544025df7c1225abf602982224fc3f99c7f94f Mon Sep 17 00:00:00 2001 From: Bingchang Chen <19990626.love@163.com> Date: Thu, 9 Feb 2023 12:13:36 +0800 Subject: [PATCH] [Improvement] Fix typos in tools for demo (#13538) --- .../tools/demo/{DemoContants.java => DemoConstants.java} | 2 +- .../tools/demo/ProcessDefinitionDemo.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/{DemoContants.java => DemoConstants.java} (98%) diff --git a/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoContants.java b/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoConstants.java similarity index 98% rename from dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoContants.java rename to dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoConstants.java index 8cb308c00b..418a52d30b 100644 --- a/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoContants.java +++ b/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoConstants.java @@ -17,7 +17,7 @@ package org.apache.dolphinscheduler.tools.demo; -public class DemoContants { +public class DemoConstants { public static final String PARAMETER_CONTEXT_PARAMS = "[{\"prop\":\"output\",\"value\":\"100\",\"direct\":\"IN\",\"type\":\"VARCHAR\"},{\"prop\":\"value\",\"value\":\"99\",\"direct\":\"IN\",\"type\":\"VARCHAR\"}]"; diff --git a/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java b/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java index f32ee4a6f7..fb1cfab637 100644 --- a/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java +++ b/dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java @@ -108,7 +108,7 @@ public class ProcessDefinitionDemo { } // generate access token - String expireTime = DemoContants.Expire_Time; + String expireTime = DemoConstants.Expire_Time; String token = EncryptionUtils.getMd5(1 + expireTime + System.currentTimeMillis()); AccessToken accessToken = new AccessToken(); accessToken.setUserId(1); @@ -345,7 +345,7 @@ public class ProcessDefinitionDemo { ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); processDefinitionLog.setName("demo_parameter_context"); processDefinitionLog.setDescription("Upstream and downstream task node parameter transfer"); - processDefinitionLog.setGlobalParams(DemoContants.PARAMETER_CONTEXT_PARAMS); + processDefinitionLog.setGlobalParams(DemoConstants.PARAMETER_CONTEXT_PARAMS); processDefinitionLog.setLocations(null); processDefinitionLog.setTimeout(0); @@ -550,7 +550,7 @@ public class ProcessDefinitionDemo { ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); processDefinitionLog.setName("demo_switch"); processDefinitionLog.setDescription("Determine which task to perform based on conditions"); - processDefinitionLog.setGlobalParams(DemoContants.SWITCH_GLOBAL_PARAMS); + processDefinitionLog.setGlobalParams(DemoConstants.SWITCH_GLOBAL_PARAMS); processDefinitionLog.setLocations(null); processDefinitionLog.setTimeout(0); @@ -668,7 +668,7 @@ public class ProcessDefinitionDemo { ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); processDefinitionLog.setName("demo_shell"); processDefinitionLog.setDescription("Production, processing and sales of a series of processes"); - processDefinitionLog.setGlobalParams(DemoContants.SHELL_GLOBAL_PARAMS); + processDefinitionLog.setGlobalParams(DemoConstants.SHELL_GLOBAL_PARAMS); processDefinitionLog.setLocations(null); processDefinitionLog.setTimeout(0);