|
@@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
|
|
|
*
|
|
|
* @author Bryan.Zhang
|
|
|
*/
|
|
|
-public class Node implements Executable, Cloneable {
|
|
|
+public class Node implements Executable, Cloneable{
|
|
|
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(Node.class);
|
|
|
|
|
@@ -56,9 +56,9 @@ public class Node implements Executable, Cloneable {
|
|
|
|
|
|
private String currChainId;
|
|
|
|
|
|
- private TransmittableThreadLocal<Integer> loopIndexTL = new TransmittableThreadLocal<>();
|
|
|
+ private final TransmittableThreadLocal<Integer> loopIndexTL = new TransmittableThreadLocal<>();
|
|
|
|
|
|
- private TransmittableThreadLocal<Object> currLoopObject = new TransmittableThreadLocal<>();
|
|
|
+ private final TransmittableThreadLocal<Object> currLoopObject = new TransmittableThreadLocal<>();
|
|
|
|
|
|
public Node() {
|
|
|
|
|
@@ -72,6 +72,7 @@ public class Node implements Executable, Cloneable {
|
|
|
this.clazz = instance.getClass().getName();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
public String getId() {
|
|
|
return id;
|
|
|
}
|
|
@@ -80,6 +81,14 @@ public class Node implements Executable, Cloneable {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
+ public String getTag() {
|
|
|
+ return tag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTag(String tag) {
|
|
|
+ this.tag = tag;
|
|
|
+ }
|
|
|
+
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
@@ -183,33 +192,11 @@ public class Node implements Executable, Cloneable {
|
|
|
return instance.isAccess();
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- protected Object clone() throws CloneNotSupportedException {
|
|
|
- return super.clone();
|
|
|
- }
|
|
|
-
|
|
|
- public Node copy() throws Exception {
|
|
|
- return (Node) this.clone();
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public ExecuteTypeEnum getExecuteType() {
|
|
|
return ExecuteTypeEnum.NODE;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public String getExecuteId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTag() {
|
|
|
- return tag;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTag(String tag) {
|
|
|
- this.tag = tag;
|
|
|
- }
|
|
|
-
|
|
|
public String getScript() {
|
|
|
return script;
|
|
|
}
|
|
@@ -279,4 +266,13 @@ public class Node implements Executable, Cloneable {
|
|
|
public <T> T getItemResultMetaValue(Integer slotIndex) {
|
|
|
return instance.getItemResultMetaValue(slotIndex);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ protected Object clone() throws CloneNotSupportedException {
|
|
|
+ return super.clone();
|
|
|
+ }
|
|
|
+
|
|
|
+ public Node copy() throws Exception {
|
|
|
+ return (Node)this.clone();
|
|
|
+ }
|
|
|
}
|