Skip to content

Commit

Permalink
Merge pull request #4491 from hansva/1987
Browse files Browse the repository at this point in the history
Cleanup XML of action Repeat/End Repeat, fixes #1987
  • Loading branch information
hansva authored Oct 28, 2024
2 parents 3d64ec7 + 6a615b9 commit c77da04
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 372 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@
import org.apache.hop.core.Result;
import org.apache.hop.core.annotations.Action;
import org.apache.hop.core.exception.HopException;
import org.apache.hop.core.exception.HopXmlException;
import org.apache.hop.core.variables.IVariables;
import org.apache.hop.metadata.api.IHopMetadataProvider;
import org.apache.hop.workflow.action.ActionBase;
import org.apache.hop.workflow.action.IAction;
import org.w3c.dom.Node;

@Action(
id = "EndRepeat",
Expand Down Expand Up @@ -80,21 +76,4 @@ public boolean isEvaluation() {
public boolean isUnconditional() {
return false;
}

@Override
public String getXml() {
StringBuilder xml = new StringBuilder();
xml.append(super.getXml());
return xml.toString();
}

@Override
public void loadXml(Node actionNode, IHopMetadataProvider metadataProvider, IVariables variables)
throws HopXmlException {
try {
super.loadXml(actionNode);
} catch (Exception e) {
throw new HopXmlException("Unable to load End Repeat workflow entry metadata from XML", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@

package org.apache.hop.workflow.actions.repeat;

import lombok.Getter;
import lombok.Setter;
import org.apache.hop.metadata.api.HopMetadataProperty;

@Getter
@Setter
public class ParameterDetails {

@HopMetadataProperty(key = "name")
private String name;

@HopMetadataProperty(key = "value")
private String field;

public ParameterDetails() {}
Expand All @@ -27,36 +37,4 @@ public ParameterDetails(String name, String field) {
this.name = name;
this.field = field;
}

/**
* Gets name
*
* @return value of name
*/
public String getName() {
return name;
}

/**
* @param name The name to set
*/
public void setName(String name) {
this.name = name;
}

/**
* Gets field
*
* @return value of field
*/
public String getField() {
return field;
}

/**
* @param field The field to set
*/
public void setField(String field) {
this.field = field;
}
}
Loading

0 comments on commit c77da04

Please sign in to comment.