Browse Source

[Improvement] Fix typos in tools for demo (#13538)

3.2.0-release
Bingchang Chen 2 years ago committed by GitHub
parent
commit
75544025df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoConstants.java
  2. 8
      dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java

2
dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoContants.java → dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/DemoConstants.java

@ -17,7 +17,7 @@
package org.apache.dolphinscheduler.tools.demo; package org.apache.dolphinscheduler.tools.demo;
public class DemoContants { public class DemoConstants {
public static final String PARAMETER_CONTEXT_PARAMS = public static final String PARAMETER_CONTEXT_PARAMS =
"[{\"prop\":\"output\",\"value\":\"100\",\"direct\":\"IN\",\"type\":\"VARCHAR\"},{\"prop\":\"value\",\"value\":\"99\",\"direct\":\"IN\",\"type\":\"VARCHAR\"}]"; "[{\"prop\":\"output\",\"value\":\"100\",\"direct\":\"IN\",\"type\":\"VARCHAR\"},{\"prop\":\"value\",\"value\":\"99\",\"direct\":\"IN\",\"type\":\"VARCHAR\"}]";

8
dolphinscheduler-tools/src/main/java/org/apache/dolphinscheduler/tools/demo/ProcessDefinitionDemo.java

@ -108,7 +108,7 @@ public class ProcessDefinitionDemo {
} }
// generate access token // generate access token
String expireTime = DemoContants.Expire_Time; String expireTime = DemoConstants.Expire_Time;
String token = EncryptionUtils.getMd5(1 + expireTime + System.currentTimeMillis()); String token = EncryptionUtils.getMd5(1 + expireTime + System.currentTimeMillis());
AccessToken accessToken = new AccessToken(); AccessToken accessToken = new AccessToken();
accessToken.setUserId(1); accessToken.setUserId(1);
@ -345,7 +345,7 @@ public class ProcessDefinitionDemo {
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog();
processDefinitionLog.setName("demo_parameter_context"); processDefinitionLog.setName("demo_parameter_context");
processDefinitionLog.setDescription("Upstream and downstream task node parameter transfer"); 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.setLocations(null);
processDefinitionLog.setTimeout(0); processDefinitionLog.setTimeout(0);
@ -550,7 +550,7 @@ public class ProcessDefinitionDemo {
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog();
processDefinitionLog.setName("demo_switch"); processDefinitionLog.setName("demo_switch");
processDefinitionLog.setDescription("Determine which task to perform based on conditions"); 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.setLocations(null);
processDefinitionLog.setTimeout(0); processDefinitionLog.setTimeout(0);
@ -668,7 +668,7 @@ public class ProcessDefinitionDemo {
ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog(); ProcessDefinitionLog processDefinitionLog = new ProcessDefinitionLog();
processDefinitionLog.setName("demo_shell"); processDefinitionLog.setName("demo_shell");
processDefinitionLog.setDescription("Production, processing and sales of a series of processes"); 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.setLocations(null);
processDefinitionLog.setTimeout(0); processDefinitionLog.setTimeout(0);

Loading…
Cancel
Save