Skip to content

Commit

Permalink
Issue #48: Add the ability to include executeForEachEntryOf entry values
Browse files Browse the repository at this point in the history
* Removed main method from the SourceUpdaterProcessor.
  • Loading branch information
NassimBtk committed Mar 21, 2024
1 parent d370796 commit 8ad0874
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ private void concatEntryResult(
final String rawData = sourceTableToConcat.getRawData();

if (iEntryConcatMethod instanceof CustomConcatMethod customConcatMethod) {
appendCustomEntryResult(source, customConcatMethod, currentResult, row, rawData);
appendCustomEntryResult(customConcatMethod, currentResult, row, rawData);
} else {
final EntryConcatMethod entryConcatMethod = iEntryConcatMethod != null
? (EntryConcatMethod) iEntryConcatMethod
Expand Down Expand Up @@ -584,22 +584,15 @@ private void concatEntryResult(
}
}

public static void main(String[] args) {
IEntryConcatMethod iEntryConcatMethod = null;
System.out.println(iEntryConcatMethod instanceof CustomConcatMethod customConcatMethod);
}

/**
* Append the custom entry result <em>rawData</em> to the given <em>currentResult</em> {@link SourceTable}.
*
* @param source The source defining the <em>entryConcatStart</em> and <em>entryConcatEnd</em> properties
* @param customConcatMethod The {@link CustomConcatMethod} instance
* @param currentResult The {@link SourceTable} result to update
* @param row The row to concatenate in case we have the JSON_ARRAY_EXTENDED concatenation method
* @param rawData The rawData to append
* @param customConcatMethod The {@link CustomConcatMethod} instance.
* @param currentResult The {@link SourceTable} result to update.
* @param row The row to concatenate in case we have the JSON_ARRAY_EXTENDED concatenation method.
* @param rawData The rawData to append.
*/
private void appendCustomEntryResult(
final Source source,
final CustomConcatMethod customConcatMethod,
final SourceTable currentResult,
final List<String> row,
Expand Down

0 comments on commit 8ad0874

Please sign in to comment.