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

chufenggao 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 75544025df [Improvement] Fix typos in tools for demo (#13538)
75544025df is described below

commit 75544025df7c1225abf602982224fc3f99c7f94f
Author: Bingchang Chen <[email protected]>
AuthorDate: Thu Feb 9 12:13:36 2023 +0800

    [Improvement] Fix typos in tools for demo (#13538)
---
 .../tools/demo/{DemoContants.java => DemoConstants.java}          | 2 +-
 .../apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

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);
 

Reply via email to