EricGao888 commented on code in PR #10689:
URL: https://github.com/apache/dolphinscheduler/pull/10689#discussion_r930572167


##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.

Review Comment:
   ```suggestion
   |Run Flag|Indicates whether the node is scheduled properly and turns on the 
kill switch, if not needed.
   ```
   Try to be brief and concise. 



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.

Review Comment:
   ```suggestion
   |Module Path| pick Java 9 + 's modularity feature, put all resources 
into-module-path, and require that the JDK version in your worker supports 
modularity.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.

Review Comment:
   ```suggestion
   |Script|You need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.

Review Comment:
   ```suggestion
   This node is for executing java-type tasks and supports using files and jar 
packages as program entries.
   ```
   
   Please avoid using passive tense in tech docs.



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.

Review Comment:
   ```suggestion
   |Description|Describes the functionality of the node.
   ```
   As stated above, you could either use lower case or upper case, just be 
consistent.



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.

Review Comment:
   ```suggestion
   |Worker Group|The group of machines who execute the tasks. If selecting 
`Default`, DolphinScheduler will randomly choose a worker machine to execute 
the task.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:

Review Comment:
   ```suggestion
   - Click on `Project Management` -> `Project Name` -> `Workflow Definition`, 
click on the“Create workflow” button, go to the DAG edit page:
   ```
   Please keep letter case and space usage consistent.



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.

Review Comment:
   ```suggestion
   |Task Priority|When the number of worker threads is insufficient, the worker 
executes tasks according to the priority. When the priority is the same, the 
worker executes tasks by order.



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.

Review Comment:
   ```suggestion
   |Node Name|The name of the set task. The node name in a workflow definition 
is unique.
   ```
   It doesn't matter you choose to use lower or upper case here, just keep 
things consistent.



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.

Review Comment:
   ```suggestion
   |Main Parameter|Java program main method entry parameter.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.

Review Comment:
   ```suggestion
   |Failed Retry Interval|the interval between the failure and resubmission of 
a task. You can choose the number in the drop-down menu or fill it manually.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.

Review Comment:
   ```suggestion
   |Number Of Failed Retries|Number of resubmitted tasks that failed. You can 
choose the number in the drop-down menu or fill it manually.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.

Review Comment:
   ```suggestion
   |Environment Name|Configure the environment in which the task runs.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
+|Resources|these can be external JAR packages or other resource files that are 
added to the Classpath or module path and can be easily retrieved in your JAVA 
script.

Review Comment:
   ```suggestion
   |Resources|External JAR packages or other resource files that are added to 
the classpath or module path and can be easily retrieved in your JAVA script.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.

Review Comment:
   ```suggestion
   |Java VM Parameters|JVM startup parameters.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
+|Resources|these can be external JAR packages or other resource files that are 
added to the Classpath or module path and can be easily retrieved in your JAVA 
script.
+|Custom parameter|a user-defined parameter that is part of HTTP and replaces 
the contents of the script with the ${ variable } .
+|Pre Tasks|selecting a pre-task for the current task sets the selected 
pre-task upstream of the current task.
+
+## Example
+
+Java task types have two modes of execution, which are demonstrated here as an 
example of a Java mode.

Review Comment:
   ```suggestion
   Java type tasks have two modes of execution, here is a demonstration of 
executing tasks in Java mode.
   ```
   I'm not sure what this sentence means. Could you please help make it more 
comprehensible?



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
+|Resources|these can be external JAR packages or other resource files that are 
added to the Classpath or module path and can be easily retrieved in your JAVA 
script.
+|Custom parameter|a user-defined parameter that is part of HTTP and replaces 
the contents of the script with the ${ variable } .
+|Pre Tasks|selecting a pre-task for the current task sets the selected 
pre-task upstream of the current task.

Review Comment:
   ```suggestion
   |Pre Tasks|Selects a pre-task for the current task and sets the pre-task as 
the upstream of the current task.
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
+|Resources|these can be external JAR packages or other resource files that are 
added to the Classpath or module path and can be easily retrieved in your JAVA 
script.
+|Custom parameter|a user-defined parameter that is part of HTTP and replaces 
the contents of the script with the ${ variable } .

Review Comment:
   ```suggestion
   |Custom parameter|A user-defined parameter that is part of HTTP and replaces 
`${ variable }` in the script .
   ```



##########
docs/docs/en/guide/task/java.md:
##########
@@ -0,0 +1,48 @@
+# Overview
+
+This node is used to perform java-type tasks and supports the use of single 
files and jar packages as program entries.
+
+# Create Tasks
+
+- Click on project management-> Project name-> workflow definition, click on 
the“Create workflow” button, go to the DAG edit page:
+
+- Drag the toolbar's Java task node to the palette.
+
+# Task Parameters
+| **Parameter** | **Description** |
+| ------- | ---------- |
+|Node Name|the name of the set task. The node name in a workflow definition is 
unique.
+|Run Flag|indicates whether the node is scheduled properly and, if it is not 
needed, turns on the kill switch.
+|Description|describes the functionality of the node.
+|Task Priority|when the number of worker threads is insufficient, the worker 
is executed according to the priority from high to low. When the priority is 
the same, the worker is executed according to the first in, first out principle.
+|Worker Group|The machine whose task is assigned to the Worker group executes, 
and selecting Default will randomly select a Worker machine to execute.
+|Environment Name|configure the environment in which the task runs.
+|Number Of Failed Retries|number of resubmitted tasks that failed, supported 
drop-down and hand-fill.
+|Failed Retry Interval|the interval between tasks that fail and are 
resubmitted, supported by drop-down and hand-fill.
+|Delayed Execution Time|the amount of time a task is delayed, in units.
+|Timeout Alarm|Check timeout warning, timeout failure, when the task exceeds 
the“Timeout length”, send a warning message and the task execution fails.
+|Module Path|turn on the use of Java 9 + 's modularity feature, put all 
resources into-module-path, and require that the JDK version in your worker 
support modularity.
+|Main Parameter|as a normal Java program main method entry parameter.
+|Java VM Parameters|configure startup virtual machine parameters.
+|Script|you need to write Java code if you use the Java run type. The public 
class must exist in the code without writing a package statement.
+|Resources|these can be external JAR packages or other resource files that are 
added to the Classpath or module path and can be easily retrieved in your JAVA 
script.
+|Custom parameter|a user-defined parameter that is part of HTTP and replaces 
the contents of the script with the ${ variable } .
+|Pre Tasks|selecting a pre-task for the current task sets the selected 
pre-task upstream of the current task.
+
+## Example
+
+Java task types have two modes of execution, which are demonstrated here as an 
example of a Java mode.
+
+The main configuration parameters are as follows:
+- Run Type
+- Module Path
+- Main Parameters
+- Java VM Parameters
+
+- Script 
+
+![java_task](../../../../img/tasks/demo/java_task02.png)
+
+## Note
+
+When you run a type with JAVA, the public class must exist in the code, and 
you can not write a package statement.

Review Comment:
   ```suggestion
   When you run the task in JAVA execution mode, the public class must exist in 
the code, and you could omit writing a package statement.
   ```
   I'm not quite sure what this sentence means. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to