Skip to content

Commit 64eec86

Browse files
Renamed the zeebe variable duplicatxnfile to failedTxnFile (#129)
1 parent 274a5d4 commit 64eec86

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/main/java/org/mifos/processor/bulk/camel/routes/DeDuplicationRoute.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import static org.mifos.processor.bulk.camel.config.CamelProperties.TRANSACTION_LIST;
99
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DE_DUPLICATION_FAILED;
1010
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DUPLICATE_TRANSACTION_COUNT;
11-
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DUPLICATE_TRANSACTION_FILE;
11+
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.FAILED_TRANSACTION_FILE;
1212

1313
import java.util.ArrayList;
1414
import java.util.HashMap;
@@ -67,10 +67,10 @@ public void configure() throws Exception {
6767
String originalFileServerName = exchange.getProperty(SERVER_FILE_NAME, String.class);
6868
String duplicateFileName = "duplicate_transaction_" + originalFileServerName;
6969

70-
exchange.setProperty(DUPLICATE_TRANSACTION_FILE, duplicateFileName);
70+
exchange.setProperty(FAILED_TRANSACTION_FILE, duplicateFileName);
7171
}).log("Updating duplicate transaction list")
7272
.setProperty(TRANSACTION_LIST, simple("${exchangeProperty." + DUPLICATE_TRANSACTION_LIST + "}"))
73-
.setProperty(LOCAL_FILE_PATH, simple("${exchangeProperty." + DUPLICATE_TRANSACTION_FILE + "}"))
73+
.setProperty(LOCAL_FILE_PATH, simple("${exchangeProperty." + FAILED_TRANSACTION_FILE + "}"))
7474
.setProperty(OVERRIDE_HEADER, constant(true)).to("direct:update-file").to("direct:upload-file").process(exchange -> {
7575
// checking if file upload was success or
7676
String serverFileName = exchange.getProperty(SERVER_FILE_NAME, String.class);

src/main/java/org/mifos/processor/bulk/zeebe/ZeebeVariables.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private ZeebeVariables() {}
160160

161161
public static final String AUTHORIZATION_RESPONSE = "authorizationResponse";
162162

163-
public static final String DUPLICATE_TRANSACTION_FILE = "duplicateTransactionFile";
163+
public static final String FAILED_TRANSACTION_FILE = "failedTransactionFile";
164164

165165
public static final String DUPLICATE_TRANSACTION_COUNT = "duplicateTransactionCount";
166166

src/main/java/org/mifos/processor/bulk/zeebe/worker/DeDuplicationWorker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DE_DUPLICATION_ENABLE;
55
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DE_DUPLICATION_FAILED;
66
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DUPLICATE_TRANSACTION_COUNT;
7-
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.DUPLICATE_TRANSACTION_FILE;
7+
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.FAILED_TRANSACTION_FILE;
88
import static org.mifos.processor.bulk.zeebe.ZeebeVariables.FILE_NAME;
99

1010
import java.util.Map;
@@ -41,7 +41,7 @@ public void setup() {
4141
int duplicateTransactionCount = exchange.getProperty(DUPLICATE_TRANSACTION_COUNT, Integer.class);
4242
if (duplicateTransactionCount > 0) {
4343
// if duplicate txn exist
44-
variables.put(DUPLICATE_TRANSACTION_FILE, exchange.getProperty(DUPLICATE_TRANSACTION_FILE, String.class));
44+
variables.put(FAILED_TRANSACTION_FILE, exchange.getProperty(FAILED_TRANSACTION_FILE, String.class));
4545
}
4646
variables.put(DE_DUPLICATION_FAILED, deDuplicationFailed);
4747
variables.put(DUPLICATE_TRANSACTION_COUNT, duplicateTransactionCount);

0 commit comments

Comments
 (0)