use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class TransactionStep method stepMoved.
@Override
public void stepMoved(StepEvent stepEvent) {
super.stepMoved(stepEvent);
StepSource source = new StepSource(this, connectionStringDefinition);
if (source != null && !source.isEmpty()) {
source.updateTargetStep((Step) stepEvent.getSource(), (String) stepEvent.data);
}
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLSortStep method getTargetXPath.
@Override
protected String getTargetXPath() throws EngineException {
String xpath = "";
StepSource source = getSource();
if (!source.isEmpty()) {
Step sourceStep = source.getStep();
if (sourceStep instanceof IteratorStep) {
xpath = source.getXpath().substring(1);
}
}
return xpath;
}
use of com.twinsoft.convertigo.beans.core.StepSource in project convertigo by convertigo.
the class XMLConcatStep method getActionValue.
@Override
protected String getActionValue() throws EngineException {
String nodeValue = super.getActionValue();
XMLVector<XMLVector<Object>> sourcesDefinition = getSourcesDefinition();
if (sourcesDefinition.size() > 0) {
StepSource source = null;
NodeList list = null;
for (int i = 0; i < sourcesDefinition.size(); i++) {
nodeValue += nodeValue.equals("") ? "" : separator;
source = getDefinitionsSource(i);
if (source != null) {
list = source.getContextValues();
if (list != null) {
int len = list.getLength();
for (int j = 0; j < len; j++) {
String text = getNodeValue(list.item(j));
nodeValue += ((text == null) ? getDefinitionsDefaultValue(i) : text);
nodeValue += ((j < len - 1) ? separator : "");
}
} else {
nodeValue += getDefinitionsDefaultValue(i);
}
} else {
nodeValue += getDefinitionsDefaultValue(i);
}
}
}
return nodeValue;
}
Aggregations