Skip to content

Commit

Permalink
0003168: Create CSV Router to route data from a CSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jul 2, 2017
1 parent a76dac8 commit a64a044
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -1882,13 +1882,14 @@ public CsvData next() {
TriggerHistory triggerHistory = data.getTriggerHistory();
Trigger trigger = triggerRouterService.getTriggerById(
triggerHistory.getTriggerId(), false);
if (trigger != null || triggerHistory.getTriggerId().equals(AbstractFileParsingRouter.TRIGGER_ID_FILE_PARSER)) {
boolean isFileParserRouter = triggerHistory.getTriggerId().equals(AbstractFileParsingRouter.TRIGGER_ID_FILE_PARSER);
if (trigger != null || isFileParserRouter) {
if (lastTriggerHistory == null || lastTriggerHistory
.getTriggerHistoryId() != triggerHistory.getTriggerHistoryId() ||
lastRouterId == null || !lastRouterId.equals(routerId)) {

this.sourceTable = columnsAccordingToTriggerHistory.lookup(
routerId, triggerHistory, false, false);
routerId, triggerHistory, false, !isFileParserRouter);

this.targetTable = columnsAccordingToTriggerHistory.lookup(
routerId, triggerHistory, true, false);
Expand Down

0 comments on commit a64a044

Please sign in to comment.