Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/samagra-comms/orches…
Browse files Browse the repository at this point in the history
…trator into prod-development
  • Loading branch information
pankajjangid05 committed May 24, 2023
2 parents 9fa745b + 006b580 commit 1de47db
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ public void accept(XMessage msg) {
// msg.setFrom(from);
try {
if (firstTransformer.findValue("type") != null && firstTransformer.findValue("type").asText().equals(BotUtil.transformerTypeBroadcast)) {
/* Switch From & To */
switchFromTo(msg);
Integer chunkSize = null;
try {
chunkSize = Integer.parseInt(broadcastNotificationChunkSize);
Expand Down Expand Up @@ -164,7 +166,7 @@ public void accept(XMessage msg) {
kafkaProducer.send(broadcastTransformerTopic, msg.toXML());
}
notificationProcessedCount++;
log.info("Notification processed : " + notificationProcessedCount);
logTimeTaken(startTime, 0, "Notification processed : " + notificationProcessedCount + " :: process-end: %d ms");
} else {
getLastMessageID(msg)
.doOnNext(lastMessageID -> {
Expand Down Expand Up @@ -260,6 +262,7 @@ private XMessage setXMessageTransformers(XMessage xMessage, JsonNode botNode) {
: "");
if (transformerMeta.get("type") != null && transformerMeta.get("type").asText().equals(BotUtil.transformerTypeBroadcast)) {
if(xMessage != null && xMessage.getFrom() != null && xMessage.getFrom().getMeta() != null && xMessage.getFrom().getMeta().containsKey("page")){
log.info("page number orch : "+ xMessage.getFrom().getMeta().get("page"));
metaData.put("federatedUsers", getFederatedUsersMeta(botNode, transformer, xMessage.getFrom().getMeta().get("page")));
} else{
metaData.put("federatedUsers", getFederatedUsersMeta(botNode, transformer, null));
Expand Down

0 comments on commit 1de47db

Please sign in to comment.