samuelwillyanto1 commented on code in PR #8778:
URL: https://github.com/apache/hop/pull/8778#discussion_r4231977835


##########
plugins/actions/truncatetables/src/main/java/org/apache/hop/workflow/actions/truncatetables/ActionTruncateTables.java:
##########
@@ -266,4 +270,28 @@ public boolean isArgFromPrevious() {
   public void setArgFromPrevious(boolean argFromPrevious) {
     this.argFromPrevious = argFromPrevious;
   }
+
+  @Override
+  public void check(
+      List<ICheckResult> remarks,
+      WorkflowMeta workflowMeta,
+      IVariables variables,
+      IHopMetadataProvider metadataProvider) {
+
+    if (!argFromPrevious) {

Review Comment:
   Done. Updated check() to validate both empty connection and non-existent 
connection in workflowMeta, showing a warning dialog with NoDbConnection 
regardless of argFromPrevious.



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